Link to home
Start Free TrialLog in
Avatar of FreshExpress
FreshExpress

asked on

CISCO 3750 IOS UPGRADE ISSUES.

I need to delete a flash file(upgrading IOS on Cisco 3750) but there isn't enough space for the new IOS.  I tried del  /force  /recursive flash1:filename, but didn't work.  It doesn't give an error, but the file is still in the folder.   I can still see it, and the space isn't released. If I remove the options(force /recursive), then it tells me that the file doesn't exist.    However, I can still see it, and the space isn't released(%Error deleting flash1:c3750-ipbase-mz.122-35.SE5.bin (No such file or directory).   I really need to upgrade the IOS from the base IOS.   Can you get me through this?
^
Avatar of Don Johnston
Don Johnston
Flag of United States of America image

You're probably missing a "." or an "-" in the filename.

Please post the output of a "show flash:" and paste the output of when you type in the delete command.
Avatar of SJCA
SJCA

I usually overwrite the new IOS to the current IOS instead of delete then load the new IOS.

copy tftp://10.15.5.1/c3750-ipservicesk9-mz.122-50.SE1.bin flash:/c3750-ipbase-mz.122-25.SEB4.bin/c3750-ipbase-mz.122-25.SEB4.bin

boot system flash:/c3750-ipservicesk9-mz.122-50.SE1.bin
write mem
reload

FYI, use notepad to put your command there first, check them and then cut/past to the CLI.
Avatar of FreshExpress

ASKER

Sage,
   Here is what I attempted.   I'll try your way.

Directory of flash:/

    2  -rwx         616  Feb 28 1993 19:39:51 -05:00  vlan.dat
    3  -rwx       34506   Mar 1 1993 21:15:06 -05:00  config.text
    4  -rwx           5   Mar 1 1993 21:15:06 -05:00  private-config.text
    5  drwx         192  Feb 28 1993 19:06:56 -05:00  c3750-ipbase-mz.122-35.SE5

15998976 bytes total (6334976 bytes free)
USDEWISW01#del flash1:c3750-ipbase-mz.122-35.SE5
Delete filename [c3750-ipbase-mz.122-35.SE5]?
Delete flash1:c3750-ipbase-mz.122-35.SE5? [confirm]
%Error deleting flash1:c3750-ipbase-mz.122-35.SE5 (Is a directory)
There's no IOS in your flash. That's a directory. Notice the "d" on the left? Also note the filesize; it's only 192 bytes. It even tells you it's a directory in the error message (Is a directory).

You can use the "rmdir" to remove a directory.

ASKER CERTIFIED SOLUTION
Avatar of Istvan Kalmar
Istvan Kalmar
Flag of Hungary image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
here is command that you need to issue from rommn mode.


#delete /force /recursive flash:<image>
this will help you remove old IOS.
But keep old IOS handy, Just in case, Also after the removal of the ios you will need to send old ios VIA console cable using Xmodem- this will take about 3hours
Try this:

go download the image with the tar format.

Then issue this command:

archive download-sw /overwrite /reload tftp://x.x.x.x/c3750-ipbase-mz.122-25.SEB4.tar

That will take care of overwrite any existing ios that was on there.
yes you have the web enababled image so you can manage the switch through a web page..

Kenboonejr has the correct command to update this image, but you will need the tar version to do this.

you can if you wish use Bsohn method which is to delete the web based ios and install a Bin version. He is incorrect you do not need to send the ios via consol cable. the switch will carry on runing happily with out a IOS file in flash (cisco switcsh / routers copy the entire ios to dram memery and run it from there, the IOS is flash is only access at bootup). so before rebooting it (which will casue you major problems as you will have to send a ios via consol) simple send the new IOS via tftp / ftp now that you flash is empty)  and set you boot system to use the new ios. Also do a copy run start to back up you config to flash (incase you have deleted that as well. )

Reboot and you will be runnign the new IOS with you current config. about 2 min downtime and you IOS is upgraded....


funcanatiliy wise both are identical (assuming you have the same feature set) the only difference between a .tar image and a .bin image is the web interface.

Also Bsohn changing the console port speed to 15200 will allow you to send an ios much quicker to a switch / router than the 3 hours you suggest.
you can also send the ios to the router in  romm (recovery) mode, via TFTP.  which is much quicker.
I was actually attempting to remove the old image directory.  I had to go into the directory, them apply the del/ force / recursive command.   I was then able to complete the TFTP to upload the new IOS.