Appendix C Using the CompactFlash Disk

Working with a CompactFlash Disk

Disk on another router before you format the new CompactFlash Disk. A CompactFlash Disk that was shipped as part of a configured system contains a CompactFlash 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.

Note If you order a spare CompactFlash Disk, it is shipped blank; therefore, you must format it before you can use it.

Use the following procedure to format a new CompactFlash Disk using the format command. (The procedure assumes you have already booted your system.)

Step 1 Insert the CompactFlash Disk into slot 0 using the procedures in the “Installing and Removing the CompactFlash Disk” section on page 1-7.

Step 2 Use the format disk0: command to format the CompactFlash Disk in slot 0 as follows:

Router# format disk0

Format operation may take a while. Continue? [confirm]

Format operation will destroy all data in "disk0". Continue? [confirm]

Format: Drive communication & 1st Sector Write OK

Writing Monlib

sectors...................................................................................

..........................................................................................

............................................

Monlib write complete

Format: All system sectors written. OK...

Format: Total sectors in formatted partition: 125152

format: Total bytes in formatted partition: 64077824

Format: Operation completed successfully.

Format of disk0: complete

Note A 64-MB CompactFlash Disk was formatted in this example.

The new CompactFlash Disk is now formatted and ready to use in the system on which you formatted it. (For specific formatting and compatibility requirements, see the “Compatibility Requirements” section on page C-3.)

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 in slot 0, 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

 

 

 

Cisco 7401ASR Installation and Configuration Guide

 

 

 

 

 

 

 

 

C-10

 

 

 

 

OL-5419-01 B0

 

 

 

 

 

 

 

Page 134
Image 134
Cisco Systems 7401ASR manual Using the mkdir Command, Router# format disk0, System# mkdir disk0dailydir