cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
626
Views
0
Helpful
5
Replies

Flash Memory Math

Sighclops
Level 1
Level 1

My Catalyst 2950 switch is showing this when I do a dir flash:

Directory of flash:/

2 -rwx 2980731 Mar 01 1993 00:03:17 c2950-i6q4l2-mz.121-19.EA1c.bin

3 -rwx 273 Jan 01 1970 00:01:25 env_vars

4 -rwx 676 Mar 01 1993 00:00:18 vlan.dat

5 -rwx 4226 Jan 04 2007 20:34:13 config.text

6 -rwx 47 Jan 04 2007 20:34:13 private-config.text

7 -rwx 110 Mar 01 1993 00:01:44 info

8 drwx 2432 Mar 01 1993 00:04:46 html

85 -rwx 110 Mar 01 1993 00:04:49 info.ver

7741440 bytes total (1754624 bytes free)

Where is my missing free bytes gone? When i add the list of files that are shown it adds up to 2988605 bytes. When i subtract this from the total available I come up with 4752835 bytes that should be free. Where is my missing free bytes (2998211)?

2 Accepted Solutions

Accepted Solutions

etamminga
Spotlight
Spotlight

Entry # 8 is a directory. If you add the size of the files in this directory to the size of the bytes listed here you might get the correct number of bytes used.

dir flash:/html

Regards,

Erik Tamminga

View solution in original post

Yes, you can delete the folder. iirc the rmdir or delete statement will do this for you. Consult "?" in the root-mode of the switch for details on how to delete files/folders.

Regards,

Erik Tamminga

View solution in original post

5 Replies 5

etamminga
Spotlight
Spotlight

Entry # 8 is a directory. If you add the size of the files in this directory to the size of the bytes listed here you might get the correct number of bytes used.

dir flash:/html

Regards,

Erik Tamminga

I do see that now! Thanks

Can this directory be deleted? I only connect to my switch through telnet or SSH.

Yes, you can delete the folder. iirc the rmdir or delete statement will do this for you. Consult "?" in the root-mode of the switch for details on how to delete files/folders.

Regards,

Erik Tamminga

You'll loose http:// access to the switch if you delete these files. Backup the files to tftp before you delete them if you ever need them again. You can also download these files from CCO if you loose them (you need download permissions though).

Regards,

Erik Tamminga

Excellent! Thanks for the info Erik. I am looking to upgrade IOS and I currently do not have room to leave the existing image file as a backup in case things go bad with the upgrade. By getting rid of this html directory I should be able to now have both images on the switch until I am sure the new one is stable.

Thanks again

Review Cisco Networking products for a $25 gift card