Datasheet

20
Using the Flash Disk
OL-6452-04
Working with a Flash Disk
Using the cd Command
To move back and forth between installed Flash Disks, use the cd command by defining a specific path
name. Then to verify your working directory, use the pwd command:
System# cd disk1:
System# pwd
disk1:/
System# cd disk0:
System# pwd
disk0:/
You can also move up (or back) one level in the Flash Disk directory hierarchy using the cd .. command,
and then verify your working directory with the pwd command:
System# pwd
disk1:daily_dir/
System# cd ..
System# pwd
disk1:/
System#
Using the dir Command
To list the directory structure and contents of the Flash Disk from which you are currently working, use
the dir command with no arguments:
System# dir
Directory of disk1:/
1 drw- 0 Jul 25 1998 10:23:11 daily_dir
2 drw- 0 Jul 25 1998 10:28:37 access_lists
48755200 bytes total (48742912 bytes free)
System#
Note that the size of the Flash Disk is shown in the output of the dir command. (A 48-MB Flash Disk is
shown in this example.) You can also view the contents of other directories and file systems using
specific optional arguments with the dir command. (See Table 4.)
Using the format Command
To format a new Flash Disk, use the format [disk0: | disk1:] command.
Note You must format a new Flash Disk before you can use it. If you plan to use a Flash Disk that was
formatted and used on another type of system, see the “Compatibility Requirements” section on page 4
to determine if you need to reformat the Flash Disk first.
Caution The formatting procedure erases all information on the Flash Disk. To prevent the loss of important data
that might be stored on a Flash Disk, proceed carefully. If you want to save data that is currently on your
Flash Disk, copy the data to a TFTP server or to another Flash Disk before you format the new Flash
Disk. A Flash Disk that was shipped as part of a configured system contains a Flash Disk-compatible
Cisco IOS software image; therefore, you do not need to format it to use it in the system in which it was
shipped.