IOS File Name in Flash

Unanswered Question
Jun 4th, 2004

By mistake I had copied IOS of 2600 in 3640 but Thanx God I had space in Flash that is why it did'nt deleted my 3640 IOS. I have deleted the IOS of 2600 by command delete flash : file name. Problem is that when I am giving the command show flash it is also showing the file name of IOS of 2600 but it is written (deleted) beside its file name. I have reloaded the router also but it is showing again.

Help me pls as my Boss ...............

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Richard Burts Fri, 06/04/2004 - 04:51

Some of the file systems implemented in IOS on some platforms retain the file after it is deleted and mark its status as "deleted". The file can not be used when it is in this state, but it does give you the option to undelete the file and make it usable again.

To get the file out of flash after it has been deleted use the command squeeze flash:

This will completely remove files that have been deleted and free up the space that they have occupied.

md_ani Sat, 06/05/2004 - 07:02

Pls see the error message I am recieving

Router#squeeze flash: c2600-i-mz.122-10a.bin


% Invalid input detected at '^' marker

I am confirm the file name is correct

I am not sure of giving the command

Router#squeeze flash:

only becoz it may delete my actual IOS file also

Pls help me

steve.busby Sat, 06/05/2004 - 13:51

Router#squeeze flash:

Is the correct command, it will only delete IOS versions marked as "deleted".

md_ani Sat, 06/05/2004 - 22:49

Dear Steve,

Pls see the error I am receiving after giving the command.

Router#squeeze flash:

Squeeze operation may take a while. Continue? [confirm]

first create squeeze log by erasing the entire device

%Error squeezing flash (Bad file number)



Richard Burts Sun, 06/06/2004 - 04:53

I encountered this situation a while back. As I remember what we did was to make sure that we had a copy on our tftp server of the good file in flash (if you do not have a good copy locally, use the copy flash: tftp: command to make a copy on an available machine). Then we erased flash (which will get rid of the bad file and the good file). Then we copied the good file back into flash. I suggest that you follow this procedure to resolve your issue with flash.

md_ani Sun, 06/06/2004 - 21:39

Dear rburts,

Deleting the ectual IOS also will took me in rommon mode and there it'll take 1 hr to copy the IOS using xmodem command as my BootStartp does'nt support tftpdnld command. Boss will kill me if I'll dowm the router for 1 hr.


This Discussion