First, enter rommon mode by unplugging and plugging the power cable back and press the mode button for few seconds. Also, keep in mind to set the BUAD rate as high as possible to speed up the downloading process.
Once you are in rommon mode, type the following commands,
In enable mode, type command to delete old or corrupt flash (this command is going to take a few moments).
Switch# erase flash:
You can verify it with # dir flash:
After you finish booting, you will enter rommon mode as there is no ios. Type,
switch: copy xmodem: flash:c2960-lanbase-mz.122-35.SE5.bin
go to Transfer Tab “Send File…” browse the file on desktop and the protocol is “Xmodem”
This is going to take while. Once you finish this, type:
Establish a new connection with default setting and reset to restart the switch or simply type switch: boot to load ios. With this, we are done and you can use your switch. 🙂