Datasheet

18
Using the Flash Disk
OL-6452-04
Working with a Flash Disk
Using Software Commands
This section provides examples of some of the basic software commands you can use with the
Flash Disk. See Table 5 for optional arguments you can use with some of the following commands:
Using the show Command, page 19
Using the pwd Command, page 19
Using the cd Command, page 20
Using the dir Command, page 20
Using the format Command, page 20
Using the copy Command, page 21
Using the mkdir Command, page 22
Using the rmdir Command, page 23
Using the delete Command, page 23
format [flash: | bootflash: | disk0: | disk1:]
Formats a file system.
Allows you to format a linear Flash memory card (flash:), onboard
Flash memory (bootflash:), or a new Flash Disk (disk0: or disk1:).
This command also allows you to reformat a linear Flash memory
card or Flash Disk that was formatted on another type of system.
Note This command destroys all data currently in Flash memory;
therefore, we strongly recommend that you use the format
command with caution to prevent irretrievable loss of data.
mkdir [disk0: | disk1:]directory-name
Creates a new directory.
Allows you to create directories on a Flash Disk, where
directory-name is the name you assign to this directory.
pwd
Displays current working directory.
Allows you to display the name of the Flash Disk directory in which
you are currently working.
rename [disk0: | disk1:]filename
[disk0: | disk1:]filename
Renames a file.
Allows you to rename a file that is located on one Flash Disk and
assign to that file another (or the same) file system path and
filename. The first group of arguments defines the source (current)
file system path and filename, and the second set of arguments
defines the destination file system path and filename.
rmdir [disk0: | disk1:]directory-name
Removes an existing directory.
Allows you to remove a directory that currently exists on a Flash
Disk, where directory-name is the name of the directory you want
to remove.
show [disk0: | disk1:]
Lists information about Flash Disk format and geometry.
Table 5 Flash Disk-Related Software Commands (continued)
Command and Arguments Purpose