Recently after a power outage one of our routers would not boot. It gave some errors about not being able to see the flash device.
I replaced the compact flash and ran tftpdnld -r
Once I was in the IOS, I used the format command and copied the IOS over. I rebooted the router and now I get this message
---------------
Readonly ROMMON initialized
program load complete, entry point: 0x8000f000, size: 0xc940
open(): Open Error = -66
boot: cannot open "flash:"
boot: cannot determine first executable file name on device "flash:"
c2821 processor with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled
------------------
I also tried tftpdnld to restore flash in rommon and I got this error after it completed
--------------------
File reception completed.
Validating checksum.
Copying file c2800nm-spservicesk9-mz.151-4.M8.bin to flash.
program load complete, entry point: 0x8000f000, size: 0xc940
Format: All system sectors written. OK...
Formatting failure! Error code: -72
--------------------
It is odd after replacing the flash I was able to boot to the IOS via tftp and format and copy the IOS with no issues, yet as soon as I reboot it, it says it can not open or access it from rommon
Any help in this matter would be appreciated.