06-24-2008 09:27 AM - edited 03-05-2019 11:47 PM
I attempted to upload a new IOS image to my 2924. However, the upload failed and now I have no space left in flash. But the existing IOS image is not taking up the space and yet I cannot see the failed files or what is taking up the space...
test_switch#dir flash:
Directory of flash:/
2 -rwx 1803795 Apr 05 2004 16:56:42 c2900xl-c3h2s-mz.120-5.WC9.bin
3 -rwx 105970 Jul 17 2000 18:26:29 c2900XL-diag-mz-120.5.2-XU
4 drwx 704 May 30 2002 14:08:37 html
6 -rwx 676 Feb 28 1993 17:11:51 vlan.dat
17 -rwx 1838 Mar 05 1993 17:27:06 config.text
18 -rwx 1838 Feb 28 1993 17:22:04 config2.text
3612672 bytes total (295424 bytes free)
It says over 3.6 megs are in use, and only 295k is free. Yet the existing image is only 1.8 megs.
Where can I delete the hidden files?
Solved! Go to Solution.
06-24-2008 10:09 AM
You delete that diag file also . We usually just delete the existing , as long as no one kills power to the switch you will be fine.
06-24-2008 09:34 AM
it is more than likely hiding something in the html directory.
06-24-2008 09:38 AM
Hmmm... checked there, but it did not seem like the culprit.
test_switch#dir flash:/html
Directory of flash:/html/
5 drwx 0 Jul 17 2000 18:26:29 Snmp
7 -rwx 3994 May 30 2002 14:07:20 homepage.htm
8 -rwx 1392 May 30 2002 14:07:20 not_supported.html
9 -rwx 9111 May 30 2002 14:07:20 common.js
10 -rwx 22062 May 30 2002 14:07:21 cms_splash.gif
11 -rwx 911 May 30 2002 14:07:21 cms_12.html
12 -rwx 1010 May 30 2002 14:07:21 cms_13.html
13 -rwx 2823 May 30 2002 14:07:22 cluster.html
14 -rwx 1280829 May 30 2002 14:08:27 CMS.jar
15 -rwx 74146 May 30 2002 14:08:37 CiscoChartPanel.jar
16 -rwx 1958 May 30 2002 14:08:37 Redirect.jar
3612672 bytes total (295424 bytes free)
test_switch#dir flash:/
Directory of flash:/
2 -rwx 1803795 Apr 05 2004 16:56:42 c2900xl-c3h2s-mz.120-5.WC9.bin
3 -rwx 105970 Jul 17 2000 18:26:29 c2900XL-diag-mz-120.5.2-XU
4 drwx 704 May 30 2002 14:08:37 html
6 -rwx 676 Feb 28 1993 17:11:51 vlan.dat
17 -rwx 1838 Mar 05 1993 17:27:06 config.text
18 -rwx 1838 Feb 28 1993 17:22:04 config2.text
3612672 bytes total (295424 bytes free)
Can I safely delete the html/ directory or its contents? Or should I delete the running IOS image?
06-24-2008 09:45 AM
You can nuke the entire HTML directory. It's totally useless unless you plan to administer the switch via HTML (I don't recommend doing so, learn your CLI :)).
By looking at all the JAR files, you should have enough space after deleting HTML contents for both images.
You can also delete your current running IOS image and copy the new one. As long as you don't reboot in the interim, you should be fine as the IOS is loaded in RAM.
HTH,
__
Edison.
06-24-2008 10:09 AM
I am definitely a CLI guy. Hate HTML. It's just been too long since I last administered a Cisco switch.
What is the best way to nuke this entire directory? Again, my CLI is still rusty.
Thanks for the info.
06-24-2008 10:24 AM
Delete the files one at the time, for instance:
delete flash:/html/CiscoChartPanel.jar
Then after the HTML folder is empty, delete the directory.
HTH,
__
Edison.
Please rate helpful posts
06-24-2008 10:09 AM
You delete that diag file also . We usually just delete the existing , as long as no one kills power to the switch you will be fine.
06-24-2008 10:51 AM
Perhaps you've overlooked that the CMS.jar file in the HTML directory is 1.2 MB.
Combine that with the 1.8 MB IOS, and you're at ~ 3 MB.
The remaining files make up the rest.
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