I thought I'd post this to save us all the recent trouble, many have experienced - lost recoveries.
Scenario A:
- As you all know, the new ROM manager application is out for a while now, and many users have tried it, with more or less success. While I think it's a great idea to have an all-in-one and easy-to-use tool for ROM switching/recovery flashing, it has proven to impose a somewhat serious problem on the latest CyanogenMod 5.0.x Eclair build.
To be perfectly clear, the application itself has no problems, it isn't faulty nor malicious, but combined with the (in)famous low memory issue, it has proven to fail in flashing your recovery, leaving you with no recovery at all. Why? Because it flashes your device using flash_image script in the live system, and because of the issue mentioned above, this script will often fail. A little more insight can be found here.
- If you have manually tried to flash the recovery, using flash_image, and rebooted to nothing but your nice splash1, that means the flash failed, too.
DO NOT USE ROM MANAGER TO FLASH YOUR RECOVERY.
DO NOT USE flash_image SCRIPT TO FLASH YOUR RECOVERY IN THE LIVE SYSTEM.
Cyanogen's warning came a while back, but many failed to notice it.
Rest assured though it's being worked on.
Quote
- Prerequisites:
- Dream/G1 devices with DangerSPL, all other devices (MT3G 32A/32B) with an engineering SPL (S-OFF in HBOOT mode).
- Users with SDK tools set up.
- Reboot to bootloader holding Back+Power or Vol.down+Power or whatever combination applies to your device.
- Attach your device to a USB port and open up a Terminal/Command prompt of choice
- Navigate to the folder where your recovery image is, then flash it like so:
fastboot flash recovery recovery_of_choice.img
- Reboot to recovery to verify your work.
- Prerequisites:
- All devices running CyanogenMod 5.0.x
- Lots of patience.
- Use the flash_image script anyways, but repeat it until it succeeds.
- Review and follow the advice given in any of the following threads:
http://forum.cyanoge...ndpost__p__3455
http://forum.cyanoge...ndpost__p__1116
http://forum.cyanoge...ndpost__p__3137
(Probably many more links out there, but this should be plenty. If you feel you know a better one, let me know.) - Reboot to recovery to verify your work. Not working? Facepalm, turn back, and give it another go.
How to:
- Prerequisites:
- Same as above, only sometimes it requires a lot less patience.
- Create a script on your sdcard. Enter Firerat's code bellow, and save it.
- Put the recovery image on the root of your sdcard.
- Run the script like this:
$su #sh /sdcard/my_script_name
- The script code:
(Pasted again because redundancy is a good thing, and cache is... well, cache)
Firerat said:
this would 'spam' it until it succeeds
#!/system/bin/sh test=1 while [ "$test" = "1" ];do flash_image recovery /sdcard/recovery.img test=`echo $?` done echo "we got there in the end....." - Reboot to recovery and verify your work
- Here we first thank Firerat, and we also have to thank Google cached pages.
See the original post while it's still there. See post #83
- Prerequisites:
- All devices running CyanogenMod 5.0.x
- Follow the advice given in this XDA post, and use the script Firerat provides.
- Posted in this thread, these include:
- *NEW* Another script by Firerat
- Zinx's tip which should make the Bash assault succeed on the first try
- Downgrading the Clockwork recovery
- NOTE: Make sure you select your device model correctly. Read this before flashing - Thanks smashman42!
Thanks goes out to everyone, for their useful tips, scripts, information....
With regards,
Yours truly
P.S. If you have another solution, feel free to post it here.





















