02-08-2007 09:43 AM - edited 03-05-2019 02:14 PM
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)?
Solved! Go to Solution.
02-08-2007 09:49 AM
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
02-08-2007 10:24 AM
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
02-08-2007 09:49 AM
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
02-08-2007 10:22 AM
I do see that now! Thanks
Can this directory be deleted? I only connect to my switch through telnet or SSH.
02-08-2007 10:24 AM
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
02-08-2007 10:26 AM
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
02-08-2007 10:33 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide