Cisco Catalyst 2950 IOS recovery with ZTerm
Posted in Cisco on March 30th, 2011 by brent – Comments OffI recently purchased some 2950 switches from ebay, only to find they had had there flash erased.
Booting the switch dropped me to the rommon prompt as it couldn’t find a boot image -
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading “”…: permission deniedError loading “”
Interrupt within 5 seconds to abort boot process.
Boot process failed…The system is unable to boot automatically. The BOOT
environment variable needs to be set to a bootable
image.switch:
First step is to set the baud rate to 115200 to speed up transferring of the IOS image -
switch: set BAUD 115200
Then reconnect with ZTerm set to 115200 baud.
Now change the ZTerm transfer protocol to XModem-1k by selecting Settings->Transfer Options… menu item, and changing the Default Protocol for Send to “XModem-1k”.
Now select the File->Transfer Convert->Binary Data menu item. If you leave the transfer convert option on Smart MacBinary, you will get errors like the one below, when you try to boot the image -
Loading “flash:c2950-i6q4l2-mz.121-22.EA14.bin”…flash:c2950-i6q4l2-mz.121-22.EA14.bin: magic number mismatch: bad mzip file
Back at the switch: prompt enter the following command to get the switch ready for the transfer of the IOS image.
switch: copy xmodem: flash:c2950-i6k2l2q4-mz.121-22.EA14.bin
Begin the Xmodem or Xmodem-1K transfer now…
CC
### Send (X) c2950-i6k2l2q4-mz.12#10D571.bin: 3722814 bytes, 8:06 elapsed, 7656
cps, 66%
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
……………………………………………………………………..
………………………..
File “xmodem:” successfully copied to “flash:c2950-i6k2l2q4-mz.121-22.EA14.bin”
Now choose File->Send Xmodem-1k… menu item, and select your IOS image, and the transfer will begin.
Once the copy has completed, set the baud rate back to 9600, reconnect at 9600 baud, and boot your switch with the new IOS image.
switch: set BAUD 9600
switch: boot flash:c2950-i6k2l2q4-mz.121-22.EA14.bin