B-27
Cisco 2600 Series Routers Hardware Installation Guide
OL-2171-02
Appendix B Maintaining the Router
Installing and Formatting Compact Flash Memory Cards in Cisco 2691 Routers
Destination filename [running-config]?
709 bytes copied in 0.72 secs
Router#
Display the Contents of a Compact Flash Memory Card
To display the contents (directories and files) of a compact Flash memory card formatted with a Class B
Flash file system, use the dir flash: command or the show flash: command.
The following example shows output for displaying the contents of a compact Flash memory card using
the dir flash: command.
Router# dir flash:
Directory of flash:/
1 -rw- 14221136 <no date> c2691-i-mz.122-7.6.T1
2 -rw- 9169616 <no date> c2691-i-mz.122-7.4.T1
128188416 bytes total (104797536 bytes free)
The following example shows output for displaying the contents of a compact Flash memory card using
the show flash: command.
Router# show flash:
System CompactFlash directory:
File Length Name/status
1 14221136 c2691-i-mz.122-7.6.T1
2 9169616 c2691-i-mz.122-7.4.T1
[23390880 bytes used, 104797536 available, 128188416 total]
125184K bytes of ATA System CompactFlash (Read/Write)
Delete Files from Compact Flash Memory
To delete a file from compact Flash memory, use the delete flash: command, followed by the
squeeze flash: command.
When a file is deleted in the Class B Flash file system, the memory space occupied by the deleted file is
not released until you enter the squeeze flash: command. Although the memory space once occupied by
the deleted file remains, the deleted file cannot be recovered. To release the memory space occupied by
a deleted file, enter the squeeze flash: command.
Note
The dir command does not show deleted files; the show command shows all files, including any
deleted files if the squeeze command has not been entered.
The following example shows output for deleting a Cisco IOS file from compact Flash memory, and then
releasing the memory space originally occupied by the file:
Router# dir flash:
Directory of flash:/
1 -rw- 14221136 <no date> c2691-i-mz.122-7.6.T1
2 -rw- 9169616 <no date> c2691-i-mz.122-7.4.T1
128188416 bytes total (104797536 bytes free)
Router# delete flash:c2691-i-mz.122-7.6.T1
Delete filename [c2691-i-mz.122-7.6.T1]?
Delete flash:c2691-i-mz.122-7.6.T1? [confirm]