How can I delet file from a 4948 switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2011 10:38 AM - edited 03-07-2019 12:42 AM
I cannot upload a new image to one of our 4948 switch because there is no space. See the output that I checked with different commands:
lhcb1r91-4948tg-124#dir
Directory of bootflash:/
3 -rwx 15728568 Mar 23 2009 15:08:54 -04:00 cat4500-ipbasek9-mz.122-50.SG1.bin
4 -rw- 1553 Dec 8 2009 22:20:00 -05:00 post-2009.12.09.03.20.00-failed.txt
5 -rw- 1553 Dec 8 2009 23:28:00 -05:00 post-2009.12.09.04.28.00-passed.txt
61341696 bytes total (15311656 bytes free)
lhcb1r91-4948tg-124#dir /all
Directory of bootflash:/
1 -rwx 14569696 Dec 24 2008 01:20:26 -05:00 [cat4500-ipbase-mz.122-46.SG.bin]
2 -rwx 15728024 Mar 23 2009 05:26:09 -04:00 [cat4500-ipbasek9-mz.122-50.SG.bin]
3 -rwx 15728568 Mar 23 2009 15:08:54 -04:00 cat4500-ipbasek9-mz.122-50.SG1.bin
4 -rw- 1553 Dec 8 2009 22:20:00 -05:00 post-2009.12.09.03.20.00-failed.txt
5 -rw- 1553 Dec 8 2009 23:28:00 -05:00 post-2009.12.09.04.28.00-passed.txt
61341696 bytes total (15311656 bytes free)
How can I delete those two files with [ ]? Thanks.
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2011 10:58 AM
You can use the delete flash:cat4500-ipbase-mz.122-46.SG.bin command, be sure to upload the new image and set the boot variable before reloading the switch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2011 01:13 PM
Hi,
You can get rid of these files by issuing the command "squeeze bootflash:". Please note that there is no way to recover these deleted files after you issue this command.
Best regards,
Antonin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2011 12:28 PM
Great. That's the command I am looking for. See the space released after the process.
lhcb1r91-4948tg-124#squeeze bootflash:
All deleted files will be removed. Continue? [confirm]
Squeeze operation may take a while. Continue? [confirm]
Squeeze of bootflash complete
lhcb1r91-4948tg-124#dir
Directory of bootflash:/
1 -rwx 15728568 Mar 23 2009 15:08:54 -04:00 cat4500-ipbasek9-mz.122-50.SG1.bin
2 -rw- 1553 Dec 8 2009 22:20:00 -05:00 post-2009.12.09.03.20.00-failed.txt
3 -rw- 1553 Dec 8 2009 23:28:00 -05:00 post-2009.12.09.04.28.00-passed.txt
61341696 bytes total (45609632 bytes free)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2014 07:18 AM
Hi Amikat,
I would like to say thank to you as your post helped me in solving my issue... thanks once again.
Regards
Surya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2014 08:26 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
BTW, newer IOS disk formats no longer need to "squeeze". Just doing a delete will recover the space. Depending on the vintage of the device, and its IOS, you may need to reformat the flash to get the newer format.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2018 02:20 AM
thanks
