cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
18118
Views
10
Helpful
6
Replies

Deleting Old bin file...

bob.mckinley
Level 1
Level 1

I'm updating my Flash with the latest IOS. I've TFTP'ed the new bin to the flash directory and I've updated the boot path to point to this new bin file. However I want to remove the old bin file but it's in a directory and when I attempt to delete it I get the message the file doesn't exist. The command I'm typing is below. The switch I'm working on is a 2960 Series

del flash:\c2960-lanbase-mz.122-25.SEE2\c2960-lanbase-mz.122-25.SEE2.bin

When I do a dir command I get the following:

Directory of flash:/

2 -rwx 5209436 Mar 1 1993 00:06:57 +00:00 c2960-lanbase-mz.122-35.SE1.bin

3 -rwx 1919 Mar 1 1993 00:21:25 +00:00 config.text

4 -rwx 5 Mar 1 1993 00:21:25 +00:00 private-config.text

6 drwx 192 Mar 1 1993 00:06:34 +00:00 c2960-lanbase-mz.122-25.SEE2

Any suggestions?

Thanks,

Bob

1 Accepted Solution

Accepted Solutions

glen.grant
VIP Alumni
VIP Alumni

Use "delete /force /recursive flash:c2960-lanbase-mz.122-25.SEE2" command. This will get rid of everything in that directory.

View solution in original post

6 Replies 6

chris.lepa
Level 1
Level 1

Did the image for the 2960 come in a tar file?

If so, you should have done a:

#archive download-sw /overwrite tftp://

/

That command automatically updates the image and html directory, and overwrites the old one. That's how you're supposed to update the 2960s.

-Chris

I don't recall having the option for a tar file but I can go back and check. But even I do I don't see a .tar file on my 2960.

Here is the results of another dir command:

dir all

Directory of flash:/

2 -rwx 5209436 Mar 1 1993 00:06:57 +00:00 c2960-lanbase-mz.122-35.SE1.bin

5 -rwx 5 Mar 1 1993 00:01:23 +00:00 private-config.text

6 drwx 192 Mar 1 1993 00:06:34 +00:00 c2960-lanbase-mz.122-25.SEE2

621 -rwx 804 Mar 1 1993 00:07:59 +00:00 vlan.dat

622 -rwx 5787 Mar 1 1993 00:01:23 +00:00 config.text

32514048 bytes total (19587584 bytes free)

Directory of system:/

3 dr-x 0 memory

1 -rw- 5787 running-config

2 dr-x 0 vfiles

No space information available

Directory of nvram:/

57 -rw- 5787 startup-config

58 ---- 5 private-config

Bob

glen.grant
VIP Alumni
VIP Alumni

Use "delete /force /recursive flash:c2960-lanbase-mz.122-25.SEE2" command. This will get rid of everything in that directory.

I went back and I did find that there are .tar files for me to use.

Can someone tell me the pros and/or cons of doing it one way or the other?

Obviously doing the archive way take less effort, but is there other reasons for doing it that way?

Thanks,

Bob

Bob,

If you have the Tar files, they are in a compressed format and the only way you can load it on the switch is by using the " archieve " command.Tar file contains both the image file sand the SDM files to manage the switch via GUI, it has some other files for CMS as well. By using the " archieve " command all these files will be extracted and loaded on the switch flash. There is not other way to load the Tar file.

On the other hand, if you only load the .bin image file using the " Copy " command it will have only the image file. You will not get the CMS and SDM files on the switch.

HTH,

-amit singh

See previous post you don't need the tar file unless you plan on using the gui interface , use the delete command posted previosly to get rid of your file .

Review Cisco Networking products for a $25 gift card