File and Directory Operations
709 bytes copied in 0.72 secs
Displaying the Contents of Flash Memory
To display the contents (directories and files) of flash memory formatted with a Class B flash file
system, enter the dir {flash: | slot0:} command or the show {flash: | slot0:} command.
The following example shows sample output for displaying the contents of an internal flash memory
using the dir flash: command:
Router# dir flash:
Directory of flash:/
1
2
3
128450560 bytes total (100266024 bytes free)
The following example shows sample output for displaying the contents of external flash memory using
the show slot0: command:
Router# show slot0:
System Flash directory:
File
1
2
3
[28184536 bytes used, 100266024 available, 128450560 total]
125440K bytes of ATA System Flash (Read/Write)
Delete Files from Flash Memory
To delete a file from flash memory, enter the delete {flash: | slot0:} command, followed by the squeeze
{flash: | slot0:} command.
Note
slot0 is not supported on the IAD2435 IAD.
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: | slot0:} 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: | slot0:} command.
The dir {flash: | slot0:} command does not show deleted files; the show {flash: | slot0:} command
Note
shows all files, including any deleted files if the squeeze {flash: | slot0:} command has not been entered.
The following example shows sample output for deleting a Cisco IOS file from external flash memory,
and then releasing the memory space originally occupied by the file:
Router# dir slot0:
Directory of slot0:/
1
2
16056320 bytes total (3139776 bytes free)
Cisco IAD2430 Series Integrated Access Devices Software Configuration Guide
B-6
-rw-
5190020
-rw-
6458584
-rw-
16535740
Length
Name/status
5190020
c2430-is-mz
6458584
c2430-is-mz
16535740
c2430-telcoent-mz
-rw-
6458208
-rw-
6458208
Appendix B
<no date>
c2430-is-mz
<no date>
c2430-is-mz
<no date>
c2430-telcoent-mz
<no date>
c2430-is-mz.tmp
<no date>
c2430-is-mz
Formatting the Flash Memory
OL-4306-03