cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2813
Views
1
Helpful
7
Replies

delete /force /recursive flash:/

NetAdmin17
Level 1
Level 1

I accidentally deleted the whole flash in this command instead of adding an image name at the end. 

delete /force /recursive flash:/

 I’m now able to boot from usb but copying the image to the flash: is not working. 

- is there anyway I can recover the flash that was deleted? 
- if not, how can I copy to the flash from usb? 

7 Replies 7

Leo Laohoo
Hall of Fame
Hall of Fame

What is the model of the switch?

2960x

Download the TAR file into the USB flash and use the following command to put the IOS back into the switch:  archive download-sw usbflash0:filename.tar

archive command is not available in switch:

If the BIN file is in the USB flash, then use the ROMMON command:  boot usbflash0:IOS_filename.bin

Joseph W. Doherty
Hall of Fame
Hall of Fame

Copy .bin to flash should work.  Did you update/check bootvar?

That aside, what @Leo Laohoo suggests should set everything correctly for booting.