Flash Memory Math

Answered Question
Feb 8th, 2007

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)?

I have this problem too.
0 votes
Correct Answer by etamminga about 9 years 7 months ago

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

Correct Answer by etamminga about 9 years 7 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
etamminga Thu, 02/08/2007 - 09:49

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

Sighclops Thu, 02/08/2007 - 10:22

I do see that now! Thanks

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

Correct Answer
etamminga Thu, 02/08/2007 - 10:24

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

etamminga Thu, 02/08/2007 - 10:26

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

Sighclops Thu, 02/08/2007 - 10:33

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

Actions

This Discussion