IOS delete and upgrade problem

Answered Question
Mar 20th, 2009
User Badges:

I have made two attempts to delete the following images and upgrade to the newest image. The current running boot image is called "flash". The image release is in the Show Version. I get the following error when i try to delete the 2 cat4000 files. Of course i'm out of disk space to put the newest image on the switch. Thanks in advance for the help.



Library_4510#sh bootflash:

-#- ED ----type---- --crc--- -seek-- nlen -length- ---------date/time--------- name

1 .D image 64CD0875 C53B3C 31 12401340 Dec 7 2007 10:25:23 +00:00 cat4000-i9s-mz.122-25.EWA11.bin

2 .. config 1C0F5C98 C57044 2 13448 Feb 18 2008 06:11:25 +00:00 no

3 .. image 8B70D372 182B344 5 12403328 Feb 19 2008 13:55:33 +00:00 flash

4 .D image A3D3B363 24F4664 31 13406880 Feb 20 2008 06:36:45 +00:00 cat4500-ipbase-mz.122-40.SG.bin

5 .. config 5A083253 24FB734 5 28751 Apr 10 2008 05:12:21 +00:00 rtftp

6 .D image 4D2777C4 30D021C 31 12405352 Mar 13 2009 08:21:48 +00:00 cat4000-i5s-mz.122-25.EWA14.bin


8584676 bytes available (50659868 bytes used)





Library_4510#delete bootflash:cat4000-i9s-mz.122-25.EWA11.bin

Delete filename [cat4000-i9s-mz.122-25.EWA11.bin]?

Delete bootflash:cat4000-i9s-mz.122-25.EWA11.bin? [confirm]

%Error deleting bootflash:cat4000-i9s-mz.122-25.EWA11.bin (File not found)






Library_4510#sh ver

Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I5S-M), Version 12.2(25)EWA12, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2007 by Cisco Systems, Inc.

Compiled Thu 15-Nov-07 18:21 by kellythw

Image text-base: 0x10000000, data-base: 0x114BC884


ROM: 12.2(20r)EW1

Dagobah Revision 226, Swamp Revision 34


Library_4510 uptime is 3 hours, 44 minutes

Uptime for this control processor is 3 hours, 44 minutes

System returned to ROM by reload

Running default software


cisco WS-C4510R (MPC8245) processor (revision 4) with 524288K bytes of memory.

Processor board ID FOX114102E1

MPC8245 CPU at 400Mhz, Supervisor V

Last reset from Reload

9 Virtual Ethernet interfaces

296 Gigabit Ethernet interfaces

511K bytes of non-volatile configuration memory.


Configuration register is 0x2102 (will be 0x2101 at next reload)//////////////I changed it back in case of a power outage. with 0x2102 it would boot to ROMMON because the cat4500 image wouldn't load. See the following Boot maker command. This wouldn't take. In ROMMON i'd issue BOOT and it would bootup the file name FLASH.






boot-start-marker

boot system flash bootflash:cat4500-ipbase-mz.122-40.SG.bin

boot-end-marker

Correct Answer by Jerry Ye about 8 years 2 months ago

The images are deleted but you need to do a squeeze command to free up the space.


squeeze bootflash:


You can try dir bootflash: and show bootflash: after execute the squeeze command.


HTH,

jerry

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Jerry Ye Fri, 03/20/2009 - 09:06
User Badges:
  • Cisco Employee,

Hi,


You can try this:


delete bootflash:/cat4000-i9s-mz.122-25.EWA11.bin


HTH,

jerry


cowetacoit Fri, 03/20/2009 - 09:07
User Badges:

Library_4510#delete bootflash:/cat4000-i9s-mz.122-25.EWA11.bin

Delete filename [cat4000-i9s-mz.122-25.EWA11.bin]?

Delete bootflash:/cat4000-i9s-mz.122-25.EWA11.bin? [confirm]

%Error deleting bootflash:/cat4000-i9s-mz.122-25.EWA11.bin (File not found)

Library_4510#



:/

Jerry Ye Fri, 03/20/2009 - 09:09
User Badges:
  • Cisco Employee,

Can you provide the output of the following command


show file system


Regards,

jerry

cowetacoit Fri, 03/20/2009 - 09:11
User Badges:

Yes. Thanks again. I'm stumped.


Library_4510#show file systems

File Systems:


Size(b) Free(b) Type Flags Prefixes

* 59244544 8584676 flash rw bootflash:

- - flash rw slot0:

- - opaque rw system:

- - opaque ro crashinfo:

524280 522704 flash rw cat4000_flash:

524280 511824 nvram rw nvram:

- - nvram rw slavenvram:

- - flash rw slavebootflash:

- - flash rw slavecat4000_flash:

- - flash rw slaveslot0:

- - opaque ro slavecrashinfo:

- - unknown rw slavercsf:

- - opaque rw null:

- - opaque ro profiler:

- - network rw tftp:

- - network rw rcp:

- - network rw http:

- - network rw ftp:

- - opaque ro cns:

Jerry Ye Fri, 03/20/2009 - 09:12
User Badges:
  • Cisco Employee,

Not a problem. Can you provide the output of the following command


dir bootflash:/

cowetacoit Fri, 03/20/2009 - 09:15
User Badges:

Library_4510#dir bootflash:/

Directory of bootflash:/


2 -rw- 13448 Feb 18 2008 06:11:25 +00:00 no

3 -rwx 12403328 Feb 19 2008 13:55:33 +00:00 flash

5 -rw- 28751 Apr 10 2008 05:12:21 +00:00 rtftp


59244544 bytes total (8584676 bytes free)

Correct Answer
Jerry Ye Fri, 03/20/2009 - 09:18
User Badges:
  • Cisco Employee,

The images are deleted but you need to do a squeeze command to free up the space.


squeeze bootflash:


You can try dir bootflash: and show bootflash: after execute the squeeze command.


HTH,

jerry

cowetacoit Fri, 03/20/2009 - 09:19
User Badges:

No problems during production?


SQUEEZE command is invalid

Jerry Ye Fri, 03/20/2009 - 09:22
User Badges:
  • Cisco Employee,

It is doing I/O on the disk, just like copying image into the disk, no reboot is required. I've done it during production before. If you company's change management policy is tight, then you should ask for a change window.


HTH,

jerry

cowetacoit Fri, 03/20/2009 - 09:25
User Badges:

AHH....Hidden command. It is "squeezing" now.


Thanks guys!



Now, i wonder why it didn't accept the boot marker command?

Jerry Ye Fri, 03/20/2009 - 09:38
User Badges:
  • Cisco Employee,

The boot system command doesn't check for the software on disk. You can put whatever you want, but during boot up, if the image is not on disk, it will go into ROMMON if there isn't valid secondary boot statement.


HTH,

jerry

Mohamad Qayoom Fri, 03/20/2009 - 09:12
User Badges:
  • Bronze, 100 points or more

Try adding or removing space after bootflash:/cat4000-i9s-mz.122-25.EWA11.bin.

Mohamad

cowetacoit Fri, 03/20/2009 - 09:14
User Badges:

There were no spaces after the image name. I added a space and still got "file not found". The switch has been rebooted a couple times just to make sure it wasn't already deleted and needed a reboot.

cowetacoit Fri, 03/20/2009 - 09:24
User Badges:

AHH....Hidden command. It is "squeezing" now.


Thanks guys!

Actions

This Discussion