B-9
Software Configuration Guide For Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
OL-1957-03
Appendix B Formatting the Compact Flash Memory Cards
File and Directory Operations
Sectors Per Cluster 8
Number of Clusters 7796
Number of Data Sectors 62560
Base Root Sector 155
Base FAT Sector 93
Base Data Sector 187
Delete Files from Compact Flash Memory
To delete a file from a compact Flash memory card, use the delete {flash: | slot0:} command.
The following example shows output for deleting a Cisco IOS file from an internal compact Flash
memory card:
Router# delete flash:c3725-i-mz.tmp
Delete filename [c3725-i-mz.tmp]?
Delete flash:c3725-i-mz.tmp? [confirm]
Router# dir flash:
Directory of flash:/
No files in directory
128094208 bytes total (128094208 bytes free)
Rename a File
To rename a file in a compact Flash memory card, use the rename {flash: | slot0:} command.
The following example shows output for renaming a Cisco IOS file in an internal compact Flash memory
card:
Router# dir flash:
Directory of flash:/
3 -rw- 6458388 Mar 01 1993 00:00:58 c3725-i-mz.tmp
1580 -rw- 6462268 Mar 06 1993 06:14:02 c3725-i-mz.3600ata
63930368 bytes total (51007488 bytes free)
Router# rename flash:c3725-i-mz.tmp flash:c3725-i-mz
Destination filename [c3725-i-mz]?
Router# dir flash:
Directory of flash:/
1580 -rw- 6462268 Mar 06 1993 06:14:02 c3725-i-mz.3600ata
3 -rw- 6458388 Mar 01 1993 00:01:24 c3725-i-mz
63930368 bytes total (51007488 bytes free)
Display File Content
To display the content of a file in a compact Flash memory card, use the more {flash: | slot0:} command.
The following example shows output from the more {flash: | slot0:} command on an internal
Compact Flash card:
Router# more flash:c3725-i-mz.tmp
00000000: 7F454C46 01020100 00000000 00000000 .ELF .... .... ....
00000010: 00020061 00000001 80008000 00000034 ...a .... .... ...4
00000020: 00000054 20000001 00340020 00010028 ...T ... .4. ...(
00000030: 00050008 00000001 0000011C 80008000 .... .... .... ....