Networking-Forums.com

Professional Discussions => Routing and Switching => Topic started by: Hobi on October 02, 2022, 09:06:40 AM

Title: I/O Error when transferring image to switch via Xmodem
Post by: Hobi on October 02, 2022, 09:06:40 AM
Hi All,

I'm trying to send a new image to my switch in ROMMON mode via xmodem, I will attach the result. I start the transfer on the switch and it gets to 100% after 5 hours and at 100% seems to fail with I/O error. It's painful having to wait 5 hours everytime for it to fail and unfortunately I don't appear to be able to change my transfer rate as anything past 9600 with my cable seems to not work. Anyone have any ideas what is causing this? I'm unable to use the switch until I can get this image on it. .. hoping it will work at that point.

Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: deanwebb on October 04, 2022, 03:32:54 PM
Are you able to try TFTP for the image transfer?
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: Hobi on October 05, 2022, 01:30:24 AM
It's not possible from what I've read. The switch is in Switch mode / Rommon mode. The only method I've found online is xmodem.
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: deanwebb on October 05, 2022, 12:30:34 PM
Is it possible to get it out of ROMMON mode with an old image, or is it totally lacking in images?

Found an article https://community.cisco.com/t5/switching/no-ios-xmodem-transfer-fails-solved/td-p/2168461

At the end, it said to disable Windows power saving features - the serial port was powering down.
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: Hobi on October 05, 2022, 01:05:57 PM
Unfortunately there no images currently on it. Thanks for providing that article, I have amended my USB settings in Windows and have started another transfer. Will update when it finishes in 5 hours.
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: Hobi on October 05, 2022, 05:40:28 PM
Unfortunately this made no difference and the transfer failed again at 100%
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: Dieselboy on October 05, 2022, 10:03:18 PM
In the only instance of having to do this, I scoured the software downloads section of the device in question and located the SMALLEST image size that I could load onto the device to get an active image to run. And then from there, log in the usual way (eg telnet) and load the image that I actually want to load. Dean refers to this when he says "old image".

Perhaps, there is not enough flash: space for the image which you are trying to load.

How big is the image which you are trying to load? Is it around 20 to 25mb ?
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: deanwebb on October 05, 2022, 11:02:48 PM
Not enough flash memory will kill you dead.
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: Hobi on October 06, 2022, 11:44:05 AM
I've managed to solve this today, user error. When using Tera Term and clicking file there is an option to "send file" which then starts the transfer and fails at 100%. Turns out theres another option in the same menu called "Transfer" and from there you can select xmodem and then send which has worked the 2 times I have tested it so far.

Thanks for your help both.
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: Dieselboy on October 06, 2022, 08:49:43 PM
Great! :) Thanks for posting back because this was new to me. Glad you got going  :mrgreen:
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: deanwebb on October 08, 2022, 09:14:36 AM
Wow. "Send File" fails but "Transfer" does the job... talk about counter-intuitive... thanks for sharing, Hobi, I've learned from you in the process!
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: heath on November 29, 2022, 09:48:55 AM
I know this is old and resolved, so not likely to help now, but the 2960S should have a USB port and you can use a USB flash drive to transfer the file.  There are some limitations on USB size and format, and not all drives are supported.  (I had some Cisco branded drives that always worked.  No idea where they came from, I found them in a drawer when I started that job.)  But I've "recovered" a 2960S with no image on it using a USB flash drive quite a few times.
Title: Re: I/O Error when transferring image to switch via Xmodem
Post by: Hobi on November 29, 2022, 11:36:06 AM
Hi Heath,

Some 2960 models have USB ports, unfortunately mine wasn't one of them so I was stuck with the painful xmodem attempts.

Hobi