squeeze command

Answered Question
Dec 27th, 2008
User Badges:

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

Correct Answer by Edison Ortiz about 8 years 3 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Edison Ortiz Sat, 12/27/2008 - 18:53
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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.

richard.m.gilbert Sat, 12/27/2008 - 20:20
User Badges:

Edison,

Does that mean I need to erase flash ... then run the squeeze command ... and then reload the IOS back into flash?

Richard

Edison Ortiz Sat, 12/27/2008 - 21:17
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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.

richard.m.gilbert Sat, 12/27/2008 - 21:32
User Badges:

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.

glen.grant Sun, 12/28/2008 - 09:20
User Badges:
  • Purple, 4500 points or more

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.

richard.m.gilbert Sun, 12/28/2008 - 10:13
User Badges:

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

Edison Ortiz Sun, 12/28/2008 - 10:45
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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.

richard.m.gilbert Sun, 12/28/2008 - 11:11
User Badges:

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

Actions

This Discussion