09-22-2008 05:45 AM - edited 03-03-2019 11:38 PM
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!
Solved! Go to Solution.
09-22-2008 02:05 PM
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.
09-22-2008 05:49 AM
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
09-22-2008 06:49 AM
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.
09-22-2008 09:17 AM
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
09-22-2008 11:18 AM
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.
09-22-2008 02:05 PM
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.
09-23-2008 02:14 AM
Thanks to everyone. Now it works...
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