B-9
Cisco IAD2430 Series Integrated Access Devices Software Configuration Guide
OL-4306-03
Appendix B Formatting the Flash Memory
File and Directory Operations
3 -rw- 6455048 Mar 01 2001 00:04:06 c2430-is-mz
1579 -rw- 6458584 Mar 01 2001 00:24:38 c2430-is-mz.new
15912960 bytes total (2998272 bytes free)
Router#
show slot0:
-#- --length-- -----date/time------ path
1 6658376 Mar 01 1993 00:29:52 c2430-is-mz
2 2124 Mar 01 1993 00:34:38 running-config
3 2622 Mar 01 1993 00:34:44 startup-config
25260032 bytes available (6672384 bytes used)
Displaying Geometry and Format Information
To display the geometry and format information of flash memory formatted with a Class C flash file
system, use the
show
{
flash:
|
slot0:
}
filesys
command.
The following example shows sample output for displaying the geometry and format information of
external Cisco flash memory:
Router#
show slot0: filesys
******** ATA Flash Card Geometry/Format Info ********
ATA CARD GEOMETRY
Number of Heads: 4
Number of Cylinders 490
Sectors per Cylinder 32
Sector Size 512
Total Sectors 62720
ATA CARD FORMAT
Number of FAT Sectors 31
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 Flash Memory
To delete a file from flash memory, use the
delete
{
flash: | slot0:
}
command.
The following example shows sample output for deleting a Cisco IOS file from internal flash memory:
Router#
delete flash:c2430-is-mz.tmp
Delete filename [c2430-is-mz.tmp]?
Delete flash:c2430-is-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 flash memory, use the
rename
{
flash: | slot0:
}
command.