Datasheet

22
Using the Flash Disk
OL-6452-04
Working with a Flash Disk
The following assumptions are made for this command:
You have a system processor with a Flash Disk-compatible Cisco IOS software image in the onboard
Flash memory—called boot flash memory—so you can start the system.
Your system is running Cisco IOS Release 12.0(2) or later.
The bootable image you want to copy to the Flash Disk exists in another file system or on a TFTP
server to which you have access (meaning you know its name and have connectivity to it), and at
least one interface is available over which you can access this server through Telnet. To ensure
access to a TFTP server, you need to configure at least one interface. To configure an interface, you
can use the setup command or use the configuration editor.
An Ethernet interface is used in the examples that follow.
You know the filename of the image you want to copy to the Flash Disk.
Note See Table 5 for a list of destination file system arguments.
Note You might need to copy a new image to a Flash Disk whenever a new Cisco IOS software release or a
new Cisco IOS software maintenance release becomes available. You can use the copy command for this
purpose.
Use the following procedure to copy a file (called new.image in this example) located on a
Flash Disk—called disk1:—in PC Card slot 1 to the Flash Disk—called disk0:—in PC Card slot 0:
Step 1 If the Flash Disk is unformatted or has been formatted on another, possibly incompatible system, format
it now using the procedure in the “Using the format Command” section on page 20, as appropriate.
Step 2 To copy the image new.image to Flash Disk disk0:, use the following series of commands:
System> enable
Password:
System# copy disk1:new.image disk0:new.image
3393 bytes copied in 0.548 secs#
System#
In the preceding example, the 3393-byte file new.image was copied to the Flash Disk in PC Card slot 0
in approximately one-half second.
Step 3 Verify that the file new.image is now on the Flash Disk in PC Card slot 0:
System# pwd
disk0:/
System# dir
Directory of disk0:/
1 -rw- 3393 Jul 26 1998 17:44:47 new.image
48755200 bytes total (48747008 bytes free)
System#
Using the mkdir Command
To create a directory on the Flash Disk, use the mkdir command. The following example shows how to
create a directory called daily_dir on the Flash Disk in PC Card slot 1, and then verify that it was created: