Transfer IOS image with Xmodem
jmanning1979
Member Posts: 5 ■□□□□□□□□□
in CCNA & CCENT
I accidentally erased the contents of my flash and cannot get IOS back on. I am in rom monitor mode and am trying to use xmodem to transfer image from PC but it is not working. Here is the output:
rommon 1 > xmodem c2600-ik9o3s3-mz.123-17a.bin
Do not start the sending program yet...
File size Checksum File name
0 bytes (0x0) 0xffff c2600-ik9o3s3-mz.123-17a.bin
WARNING: All existing data in bootflash will be lost!
Invoke this application only for disaster recovery.
Do you wish to continue? y/n [n]: y
Ready to receive file c2600-ik9o3s3-mz.123-17a.bin ...
Erasing flash at 0x60fc0000
program flash location 0x60000000
Download Complete!
loadprog: error - trouble reading file magic number
Any ideas? Thanks
rommon 1 > xmodem c2600-ik9o3s3-mz.123-17a.bin
Do not start the sending program yet...
File size Checksum File name
0 bytes (0x0) 0xffff c2600-ik9o3s3-mz.123-17a.bin
WARNING: All existing data in bootflash will be lost!
Invoke this application only for disaster recovery.
Do you wish to continue? y/n [n]: y
Ready to receive file c2600-ik9o3s3-mz.123-17a.bin ...
Erasing flash at 0x60fc0000
program flash location 0x60000000
Download Complete!
loadprog: error - trouble reading file magic number
Any ideas? Thanks
Comments
-
malcybood Member Posts: 900 ■■■□□□□□□□what model router is it? Says to try reseating the flash memory if you get "no magic number" error message
EDITED
sorry i see its a 2600 duh....its 1 am here, it says on Cisco website to reseat the flash as in the hardware, or you tried a tftp from rommon?
http://www.cisco.com/en/US/products/hw/routers/ps259/products_tech_note09186a008015bf9e.shtml#ethernet -
malcybood Member Posts: 900 ■■■□□□□□□□If you don't have a tftp server you can get a free one here:
http://www.solarwinds.net/products/freetools/index.aspx -
tech-airman Member Posts: 953malcybood wrote:what model router is it? Says to try reseating the flash memory if you get "no magic number" error message
EDITED
sorry i see its a 2600 duh....its 1 am here, it says on Cisco website to reseat the flash as in the hardware, or you tried a tftp from rommon?
http://www.cisco.com/en/US/products/hw/routers/ps259/products_tech_note09186a008015bf9e.shtml#ethernet
malcybood,
In order for tftp to work, both the router and the PC would need to have a valid IP address configured on the interface and NIC. However, for the router to be able to configure a valid IP onto an interface, it would need to have a valid IOS running on it. Since the router doesn't have an IOS, it's going to be difficult to be able to configure a valid IP address on any router interface. So without a valid IP address configured on the router, tftp is going to be impossible. -
tech-airman Member Posts: 953jmanning1979 wrote:I accidentally erased the contents of my flash and cannot get IOS back on. I am in rom monitor mode and am trying to use xmodem to transfer image from PC but it is not working. Here is the output:
rommon 1 > xmodem c2600-ik9o3s3-mz.123-17a.bin
Do not start the sending program yet...
File size Checksum File name
0 bytes (0x0) 0xffff c2600-ik9o3s3-mz.123-17a.bin
WARNING: All existing data in bootflash will be lost!
Invoke this application only for disaster recovery.
Do you wish to continue? y/n [n]: y
Ready to receive file c2600-ik9o3s3-mz.123-17a.bin ...
Erasing flash at 0x60fc0000
program flash location 0x60000000
Download Complete!
loadprog: error - trouble reading file magic number
Any ideas? Thanks
jmanning1979,
I found the following link that may be relevant to your situation. I hope this helps.
Link:- Cisco 2600 and 3600 Hints and Tricks - Cisco Systems - http://www.cisco.com/en/US/products/hw/routers/ps259/products_tech_note09186a008009433b.shtml
-
jmanning1979 Member Posts: 5 ■□□□□□□□□□I found the problem. When I copied the .bin file from cd to hdd there must have been a write error because the file size was 0 Bytes Thanks anyway
-
malcybood Member Posts: 900 ■■■□□□□□□□tech-airman wrote:malcybood,
In order for tftp to work, both the router and the PC would need to have a valid IP address configured on the interface and NIC. However, for the router to be able to configure a valid IP onto an interface, it would need to have a valid IOS running on it. Since the router doesn't have an IOS, it's going to be difficult to be able to configure a valid IP address on any router interface. So without a valid IP address configured on the router, tftp is going to be impossible.
Tech-airman, where did you get that from? That you need a full IOS to use tftp? you set the IP variables of the router in rommon mode then assign the PC a static IP address and connect a crossover cable to the RJ45 port directly into the router.
Please re-read the link I posted from the cisco website
http://www.cisco.com/en/US/products/hw/routers/ps259/products_tech_note09186a008015bf9e.shtml#ethernet
especially this part where it gives an example how to do it!rommon 16 > IP_ADDRESS=171.68.171.0
rommon 17 > IP_SUBNET_MASK=255.255.254.0
rommon 18 > DEFAULT_GATEWAY=171.68.170.3
rommon 19 > TFTP_SERVER=171.69.1.129
rommon 20 > TFTP_FILE=c2600-is-mz.113-2.0.3.Q
rommon 21 > tftpdnld
IP_ADDRESS: 171.68.171.0
IP_SUBNET_MASK: 255.255.254.0
DEFAULT_GATEWAY: 171.68.170.3
TFTP_SERVER: 171.69.1.129
TFTP_FILE: c2600-is-mz.113-2.0.3.Q
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n: [n]: y
Receiving c2600-is-mz.113-2.0.3.Q from 171.69.1.129 !!!!!.!!!!!!!!!!!!!!!!!!!.!!
File reception completed.
Copying file c2600-is-mz.113-2.0.3.Q to flash.
Erasing flash at 0x607c0000
program flash location 0x60440000
rommon 22 >
jmanning - glad you figured it out man