cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
31350
Views
20
Helpful
23
Replies

How to Recover Image on 3750X-24T

Thomas Reiling
Level 1
Level 1

I accidentally deleted the IOS on my new switch and hoped someone could tell me how to recover it.  I have the image I need on my PC and have booted the switch to the switch: prompt but don't know how to transfer it.  The configuration guide tells me to connect my PC to the switch via the management port but my management port isn't configured with an IP address so there's no way for me to transfer the file via TFTP.  Can someone help?

Thank you,

Thomas

2 Accepted Solutions

Accepted Solutions

switch: set BAUD 115200

you will lose the console session once you run the command (it will freeze on you).  You will need to close your session and reconnect to serial at 115200 to get the console back and run the xmodem commands.  Once you've completed the transfer, PLEASE don't forget to set the speed back to 9600 before you go any further. 

switch: UNSET BAUD

It will save you some headache.

Message was edited by: Antonio Knox

View solution in original post

23 Replies 23

Leo Laohoo
Hall of Fame
Hall of Fame

You have two choices:  Easy or the Hard method

Easy:  Use a USB flash drive.  The 3750X can support "boot usbflash0:"

Hard:  ROMmon upload

Where do I type the boot usbflash0:

Ok.  Firstly get a few USB flash drives (maximum size of 16Gb).  Format them with FAT16.

You need to copy the BIN file into the USB stick.

Insert the USB stick into the back of the 3750X.

At the prompt of the switch, enter the command "init_flash" and once the prompt comes back, enter the command "dir usbflash0:".  Next try the command "boot usbflash0:" (minus the brackets, of course).

I formatted the usb drive with fat16 and copied the image over but then I get this:

switch:  dir usbflash0:
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: short bulk, 13 instead 36
ERR: usbd_bulk_transfer fail status -2147483648
ERR: usbd_bulk_transfer error status -2147483648
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000

leolaohoo,

How do I do the ROMMON method?

Thank you,

Thomas

How do I do the ROMMON method?

Your prompt is "switch:" so you are in ROMmon already.  Did you try the intialize command "init_flash"?

Yes, but it was flash_init, not init_flash.  Now what should I try?

Thomas

Yes, but it was flash_init, not init_flash.

Nuts.  I always get the two confused.

Now what should I try?

Now try "dir usbflash0:".

When I do that I get the error messages shown above.

Using driver version 1 for media type 1
Base ethernet MAC Address: 68:bd:ab:dd:c7:00
Xmodem file system is available.
The password-recovery mechanism is enabled.

The system has been interrupted prior to initializing the
flash filesystem.  The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

    flash_init
    boot


switch:  flash_init
Initializing Flash...
mifs[2]: 12 files, 1 directories
mifs[2]: Total bytes     :    1806336
mifs[2]: Bytes used      :     756224
mifs[2]: Bytes available :    1050112
mifs[2]: mifs fsck took 0 seconds.
mifs[3]: 0 files, 1 directories
mifs[3]: Total bytes     :    3870720
mifs[3]: Bytes used      :       1024
mifs[3]: Bytes available :    3869696
mifs[3]: mifs fsck took 1 seconds.
mifs[4]: 5 files, 1 directories
mifs[4]: Total bytes     :     258048
mifs[4]: Bytes used      :       9216
mifs[4]: Bytes available :     248832
mifs[4]: mifs fsck took 0 seconds.
mifs[5]: 5 files, 1 directories
mifs[5]: Total bytes     :     258048
mifs[5]: Bytes used      :       9216
mifs[5]: Bytes available :     248832
mifs[5]: mifs fsck took 0 seconds.
-- MORE --
mifs[6]: 568 files, 19 directories
mifs[6]: Total bytes     :   57931776
mifs[6]: Bytes used      :   17676288
mifs[6]: Bytes available :   40255488
mifs[6]: mifs fsck took 15 seconds.
...done Initializing Flash.

switch: dir usbflash0:
Directory of usbflash0:/

    1  -rw-  55160764                 c2800nm-spservicesk9-mz.151-1.T.bin
    2  -rw-  56505908                 c2800nm-spservicesk9-mz.151-2.T1.bin
    3  -rw-  700816                   C870_RM_ALT.srec.123-8r.YI6
    4  -rw-  18808432                 c870-advsecurityk9-mz.124-24.T2.bin
    5  -rw-  21084916                 c870-advsecurityk9-mz.151-1.T.bin
    6  -rw-  1690523                  C1841_RM2.srec.124-13r.T5
    7  -rw-  1623191                  C2800NM_RM2.srec.124-13r.T6
    8  -rw-  1626367                  C2800NM_RM2.srec.124-13r.T11
    9  -rw-  43160560                 c2800nm-advsecurityk9-mz.151-2.T1.bin
   10  -rw-  30078988                 c890-universalk9-mz.151-3.T.bin
   11  -rw-  6635520                  ap801-k9w7-tar.124-25d.JA.tar
   12  -rw-  1464478                  C890_RM2.srec.124-22r.YB5
   13  -rw-  2979840                  ap801-rcvk9w8-tar.124-21a.JY.tar
   14  -rw-  10893632                 c2960s-universalk9-mz.122-55.SE2.bin
   15  -rw-  15052800                 c2960s-universalk9-tar.122-55.SE2.tar
   16  -rw-  1270064                  asr1000-rommon.150-1r.S.pkg
   17  -rw-  290097464                asr1000rp1-adventerprisek9.03.02.01.S.151-1.S1.bin
   18  -rw-  17745920                 c3750e-universalk9-tar.122-55.SE1.tar
   19  -rw-  14570585                 c3750e-universalk9-mz.122-55.SE1.bin
    20  -rw-  306016568                asr1000rp1-adventerprisek9.03.03.00.S.151-2.S.bin
   21  -rw-  17530880                 c2960s-universalk9-tar.122-58.SE1.tar
   22  -rw-  14428160                 c2960-lanlitek9-tar.122-58.SE1.tar
   23  -rw-  21186560                 c3750e-universalk9-tar.122-58.SE1.tar

80510976 bytes available (950468608 bytes used)

switch:  boot usbflash0:c2960s-universalk9-mz.122-55.SE2.bin

Loading "usbflash0:c2960s-universalk9-mz.122-55.SE2.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

I don't have a 3750X handy with me but a 2960S will be suffice.   This method works.  May I request if you reboot your 3750X and try again?

1.  At the "switch:" prompt, enter "flash_init"

2.  dir usbflash0:

3.  Identify the filename and boot from USB using the command "boot usbflash0:.bin"

NOTE:  Not all USB flash drives are supported, hence my recommendation to get several ready.

leolaohoo,

I will try another usb when I get home. I only have one here at work.  Thank you for all of your help!  I will keep you posted.

Thomas

Don't thank me yet.  Wait `til it works.

leolaohoo,

Okay, man.  I tried multiple flash drives and none of them worked.  Can you help me recover my image via ROMMON?

Thank you,

Thomas