cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7695
Views
8
Helpful
6
Replies

Upgrading IOS on CIsco 1841

CNTSYSNETAG
Level 1
Level 1

Hello,

I try to flash a new image on a Cisco 1841 via TFTP:

#copy tftp: flash:

Address or name of remote host []? 192.168.4.2

Source filename []? c1841-spservicesk9-mz.124-11.XJ.bin

Destination filename [c1841-spservicesk9-mz.124-11.XJ.bin]?

Accessing tftp://192.168.4.2/c1841-spservicesk9-mz.124-11.XJ.bin...

Loading c1841-spservicesk9-mz.124-11.XJ.bin .from 192.168.4.2 (via FastEthernet0/1): !

%Error copying tftp://192.168.4.2/c1841-spservicesk9-mz.124-11.XJ.bin (Not enough space on device)

THe problem is that I don't get any prompt for erasing the flash. When I try:

#copy /erase tftp flash

Address or name of remote host [192.168.4.2]?

Source filename [c1841-spservicesk9-mz.124-11.XJ.bin]?

Destination filename [c1841-spservicesk9-mz.124-11.XJ.bin]?

Accessing tftp://192.168.4.2/c1841-spservicesk9-mz.124-11.XJ.bin...

%Warning:Filesystem <flash> does not support erase operation

Loading c1841-spservicesk9-mz.124-11.XJ.bin .from 192.168.4.2 (via FastEthernet0/1): !

%Error copying tftp://192.168.4.2/c1841-spservicesk9-mz.124-11.XJ.bin (Not enough space on device)

What do I have to do to flash the image to the Cisco 1841? Could I just delete the current file on the flash before transferring the new image file to the Cisco 1841?

Thank you!

1 Accepted Solution

Accepted Solutions

Also, don't answer Y when prompted.

#del c1841-ipbase-mz.124-1c.bin

Delete filename [c1841-ipbase-mz.124-1c.bin]? y

Delete flash:y? [confirm]y

%Error deleting flash:y (File not found)

Do this:

delete /recur /force flash:c1841-ipbase-mz.124-1c.bin

If prompted w/:

Delete filename [c1841-ipbase-mz.124-1c.bin]?

Simply press

If prompted w/:

Delete flash:? [confirm]

Press Ctrl-C.

Do a show flash to verify free space, then proceed to 'copy tftp://x.x.x.x/file.bin flash:/'

Good luck.

View solution in original post

6 Replies 6

Mark Yeates
Level 7
Level 7

You may need to perform a squeeze on the flash to permanently remove the old files from flash.

first delete the old file

squeeze flash: <- this is the command

copy new IOS file over.

HTH,

Mark

Hello,

thank you! But the command 'squeeze flash:' is not known an even the remove of the file is not possible:

#del c1841-ipbase-mz.124-1c.bin

Delete filename [c1841-ipbase-mz.124-1c.bin]? y

Delete flash:y? [confirm]y

%Error deleting flash:y (File not found)

And the squeeze command:

#squeeze flash:

^

% Invalid input detected at '^' marker.

Johan

Mark's suggestion about using squeeze would be a reasonable suggestion on certain platforms (such as the 1700 series of routers). But as you discovered it is not a supported command on the 1800 series of routers.

You could erase the existing image and then load a new image. But before you do that I would suggest that you check the output of show flash on the router and see what is taking up space and see if there are things that you might delete without having to remove the active image.

The good news is that once the image is loaded in the 1841 the router will run it without needing it is flash any more. So if you delete the image in flash the router will continue to run just fine while you load a new image. The risk is that if something causes the router to reboot before you complete getting the new image into flash (or if there is some problem with the new image) then you have no fallback.

HTH

Rick

HTH

Rick

use "sh flash" to find out the existing image name. Then use "delete flash"filename" to delete the image. After doing this do not reboot the router until you load the new image. If you do it will boot into rommon. If that happens you can still load the image via TFTP in rommon.

Also, don't answer Y when prompted.

#del c1841-ipbase-mz.124-1c.bin

Delete filename [c1841-ipbase-mz.124-1c.bin]? y

Delete flash:y? [confirm]y

%Error deleting flash:y (File not found)

Do this:

delete /recur /force flash:c1841-ipbase-mz.124-1c.bin

If prompted w/:

Delete filename [c1841-ipbase-mz.124-1c.bin]?

Simply press

If prompted w/:

Delete flash:? [confirm]

Press Ctrl-C.

Do a show flash to verify free space, then proceed to 'copy tftp://x.x.x.x/file.bin flash:/'

Good luck.

Thanks to everyone. Now it works...

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco