6-7
Cisco 7304 Network Service Engine Installation and Configuration
OL-3967-01
Chapter 6 Working with a CompactFlash Disk
Using Software Commands
Note
You might need to copy a new image to a CompactFlash 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
CompactFlash Disk—called
disk0
:—to the CompactFlash Disk—called
bootdisk
:
Step 1
If the CompactFlash 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 6-5
, as
appropriate.
Step 2
To copy the image
new.image
to CompactFlash Disk
disk0:
, use the following series of commands:
System>
enable
Password:
System#
copy disk0:new.image bootdisk:new.image
3393 bytes copied in 0.548 secs#
System#
In the preceding example, the 3393-byte file
new.image
was copied to the CompactFlash Disk in
approximately one-half second.
Step 3
Verify that the file
new.image
is now on the CompactFlash Disk:
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 CompactFlash Disk, use the
mkdir
command. The following example shows
how to create a directory called
daily_dir
on the CompactFlash Disk, and then verify that it was created:
System#
mkdir disk0:daily_dir
Created dir disk0:daily_dir
System#
dir
Directory of disk0:/
1 drw- 0 Jul 25 1998 10:15:43 daily_dir
48755200 bytes total (48751104 bytes free)
System#
Note
If you create a directory and place a file in it that you plan to access or use later, be sure to define the
entire directory path to the file as you enter the appropriate software commands.