Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting from flash

Status
Not open for further replies.

mccullrr

Technical User
Mar 6, 2006
71
I want to upgrade my IOS on a 2950. What can I successfully delete from the flash directory without doing any harm? Here is what is in the directory now:

Directory of flash:/

2 -rwx 269 Jan 01 1970 00:01:24 env_vars
4 -rwx 1436 Jan 24 2007 14:25:05 config.text
5 -rwx 47 Jan 24 2007 14:25:05 private-config.text
7 -rwx 110 Mar 01 1993 00:01:39 info
8 -rwx 2958970 Mar 01 1993 00:03:13 c2950-i6q4l2-mz.121-14.EA1a.bin
9 drwx 2304 Mar 01 1993 00:04:21 html
84 -rwx 110 Mar 01 1993 00:04:32 info.ver

Thanks,
Becky
 
I would flash the new IOS before deleting the old.
If there is a corruption in flashing the new after deleting the old, you will be left working with sending the flash via the serial interface.
 
If you are not using the html function you can delete the html directory without any problems . If you know you have a good stable connection you can delete the existing .bin image if space is short given the caveat if the switch hangs (very rare) you won't have an image to boot and you would have to go thru the corrupted image process to recover which would take like 1 and half hours because you have to put the image on the switch via a 9600 console connection.
 
Thanks guys. I can't flash the new IOS because there is not enough space. Does anyone know what the env_vars, config.text, private-config.text, info, and info.ver files are??

Thanks!
Becky
 
Just to add to this, you are likely to save little space by deleting these files, in my experience I would just delete the existing IOS and replace it from there. If there is a Web upgrade too that shoudl delete the HTML files.

AJ

===

Fatman Superstar (Andrew James)

CCNA
 
Thanks FatmanSuperstar. I think I'll try that!

Becky
 
Good luck :p Ive always done it that way, less u have the newer switches/routers where u are lucky enough to have larger flash memories. Just to add if the copy fails u can still delete it, might also be a good idea to TFTP off the existing IOS. Just remember, touch wood, long as it doesnt crash or reload, you are fine. (Sorry if that jinkxed it) :p

AJ

===

Fatman Superstar (Andrew James)

CCNA
 
OK. What am I doing wrong here...

Error deleting flash:/c2940-i6q4l2-mz.121-22.EA3/c2940-i6q4l2-mz.121-22.EA3.bin
(No such file or directory)

------
sh ver
System image file is "flash:/c2940-i6q4l2-mz.121-22.EA3/c2940-i6q4l2-mz.121-22.EA3.bin
--------
CISCO65134#dir flash:
Directory of flash:/

2 -rwx 271 Mar 01 1993 00:01:41 +00:00 info

4 -rwx 983 Mar 05 1993 10:46:53 +00:00 config.text

5 -rwx 25 Mar 05 1993 10:46:53 +00:00 private-config.text

6 drwx 128 Mar 01 1993 00:09:18 +00:00 c2940-i6q4l2-mz.121-22.EA3

352 -rwx 271 Mar 01 1993 00:04:08 +00:00 info.ver

353 -rwx 1048 Mar 05 1993 10:46:53 +00:00 multiple-fs
--------




 
Try issuing the cd command to get into the directory

AJ

===

Fatman Superstar (Andrew James)

CCNA
 
I'll try that on another switch. I ended up using Cisco Network Assistant to delete it.

Thanks!!
Becky
 
He he, the good old GUI always helps :p Enjoy

===

Fatman Superstar (Andrew James)

CCNA
 
The image file is in a directory , to get rid of the image file "delete /force /recursive flash:c2940-i6q4l2-mz.121-22.EA3.
 
The safest thing to do during an IOS upgrade is to push the current up to a TFTP server and then delete the .bin file. After issuing the "squeeze" command you then can copy down the new image file from the TFTP server, configure the switch to boot from the new image and then reload.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top