12-27-2008 06:40 PM - edited 03-06-2019 03:09 AM
Hello,
I am unsure how to clear files out of my flash. After I delete a file it has the [deleted] tag next to it when a show flash: is performed. I thought all I had to do was squeeze the flash to get rid of it but it keeps giving me the following:
Router#squeeze flash:
Squeeze operation may take a while. Continue? [confirm]
first create squeeze log by erasing the entire device
%Error squeezing flash (Unknown error 0)
Router#
Guidance?
Thanks,
Richard
Solved! Go to Solution.
12-27-2008 06:53 PM
Richard,
On Cisco 2600 or Cisco 3600 series routers, the entire file system has to be erased once before the squeeze command can be used. After being erased once, the squeeze command should operate properly on the flash file system for the rest of the flash file system's history.
Please follow the instructions on this page on how to erase the flash:
http://www.cisco.com/en/US/docs/ios/fundamentals/command/reference/cf_s3.html#wp1023203
HTH,
__
Edison.
12-27-2008 06:53 PM
Richard,
On Cisco 2600 or Cisco 3600 series routers, the entire file system has to be erased once before the squeeze command can be used. After being erased once, the squeeze command should operate properly on the flash file system for the rest of the flash file system's history.
Please follow the instructions on this page on how to erase the flash:
http://www.cisco.com/en/US/docs/ios/fundamentals/command/reference/cf_s3.html#wp1023203
HTH,
__
Edison.
12-27-2008 08:20 PM
Edison,
Does that mean I need to erase flash ... then run the squeeze command ... and then reload the IOS back into flash?
Richard
12-27-2008 09:17 PM
Richard,
Once you erase flash, you don't need to run the squeeze command as all files will be gone.
By doing the erase flash command once, you are conditioning the file system for future squeeze commands.
__
Edison.
12-27-2008 09:32 PM
Edison,
Understood. But, just want to make sure that once I erase the flash, I will then have to put the IOS back in. Basically, the steps will be ...
1. erase flash
2. copy tftp flash:WORD
Then future flash deletes will be able to be squeezed.
12-28-2008 09:20 AM
That is correct , you have erase the entire flash then load IOS back on . This is not a big deal as long as you don't have a power outage before you get the image loaded back on .
:-) Not sure why they did it this way or why this wasn't handled at the factory initially.
12-28-2008 10:13 AM
Glen,
Thanks. I was wondering if that was the case why they just don't do that before it leaves the factory. Oh well ... something for me to do I guess.
Richard
12-28-2008 10:45 AM
Richard,
Originally, those router models did not support the squeeze command at all.
If you look at the link I posted, the command was introduced on 12.2(1) on those routers.
Here is more information from 12.2's Release Notes:
http://www.cisco.com/en/US/docs/ios/12_2/release/notes/122newf.html#wp49244
Many of these routers left the factory with releases older than 12.2, thus it couldn't be done in the factory.
HTH,
__
Edison.
12-28-2008 11:11 AM
Edison,
Gotcha. I read what you linked before (and found it useful) but just didn't put 2 and 2 together with respect to the steps involved. That makes more sense. Again, thanks for the spot on information.
Richard
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