06-05-2007 07:23 AM - edited 03-05-2019 04:29 PM
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
Solved! Go to Solution.
06-05-2007 11:40 AM
Use "delete /force /recursive flash:c2960-lanbase-mz.122-25.SEE2" command. This will get rid of everything in that directory.
06-05-2007 07:36 AM
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
06-05-2007 07:43 AM
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
1 -rw- 5787
2 dr-x 0
No space information available
Directory of nvram:/
57 -rw- 5787
58 ---- 5
Bob
06-05-2007 11:40 AM
Use "delete /force /recursive flash:c2960-lanbase-mz.122-25.SEE2" command. This will get rid of everything in that directory.
06-06-2007 04:44 AM
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
06-06-2007 04:51 AM
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
06-06-2007 05:51 AM
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 .
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide