tftp failed, no space left

Answered Question
Jun 24th, 2008

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?

I have this problem too.
0 votes
Correct Answer by glen.grant about 8 years 5 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
ciscocow Tue, 06/24/2008 - 09:34

it is more than likely hiding something in the html directory.

kerryjcox Tue, 06/24/2008 - 09:38

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?

Edison Ortiz Tue, 06/24/2008 - 09:45

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.

kerryjcox Tue, 06/24/2008 - 10:09

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.

Edison Ortiz Tue, 06/24/2008 - 10:24

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

Correct Answer
glen.grant Tue, 06/24/2008 - 10:09

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.

michael.leblanc Tue, 06/24/2008 - 10:51

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.

Actions

This Discussion