GENERAL: Running out of space in your IOS flash?

It's been a while since I had to do this but I pulled my 2621XM out of the attic today for some CME4.1 work. I was trying to load the latest firmware onto the router for a 7911 but I ran out of space in the flash. The deal here is that unlike a hard disk with a file allocation table where the OS will makr a segment as back in use when the file is removed....IOS doesn't sometimes do that. So every so often its good practice to do some housekeeping on your flash to bring the free psace back into use. Sometimes a SQUEEZE is what you need!

So here is the error I got extracting the files - the file is not important - the Error is ;-)

extracting phone/7906-7911/cvm11sccp.8-2-2ES1.sbn (2146813 bytes)!!!!!!!!
%Error writing flash:/phone/7906-7911/cvm11sccp.8-2-2ES1.sbn (Device in exclusive use)


'Squeeze' is the IOS way or reclaiming the space which has been allocated on your flash but you never harvested back in when you deleted the files.

BEFORE
------------

49807356 bytes total (3432100 bytes free)

atp-asx-vg0# squeeze flash:
Squeeze operation may take a while. Continue? [confirm]
squeeze in progress... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Rebuild file system directory...
Squeeze of flash complete

AFTER
--------

49807356 bytes total (4363508 bytes free)

© 2011 defaultrouteuk.com

Cisco, IOS, CCNA, CCNP, CCIE are trademarks of Cisco Systems Inc.
JunOS, JNCIA, JNCIP, JNCIE are registered trademark of Juniper Networks Inc.