How To: Flash a Custom Recovery Image on the HTC G1 / Dream
OBSOLETE: SIMPLY DOWNLOAD ROM MANAGER FROM THE MARKET AND SELECT FLASH RECOVERY TO FLASH A RECOVERY INSTEAD OF THIS PROCEDURE. THEN HEAD TO SECTION IV TO CONTINUE.
I. Before You Begin
1. You must have done our How To Root (AndRoot Method) procedure.
II. Setup ADB
1. Head over to our How To Setup ADB procedure, once done and you can see your phone’s serial number, come back to this procedure and continue.
III. Flash a Recovery Image
1. Download the custom recovery image for your phone and flash_image and save them to your computer.
G1/Dream
Roger’s Dream
Flash_image (Updated 09.24.10)
2. Copy the recovery image and flash_image to the C:\AndroidSDK\Tools folder you setup during the ADB setup procedure. (Its the same folder that has adb.exe in it).
3. Plug your phone in via USB cable and make sure USB debugging is still checked on from the ADB procedure. Do NOT mount the sd card, just leave it unmounted.
4. Open a command prompt on the computer by clicking on the Start menu and typing cmd and hitting enter.
5. In the command prompt type the following with hitting enter at the end of each line (if you get an error after the “adb push flash_image” line below, make sure you downloaded it and copied it into the tools folder of the AndroidSDK as instructed in steps 1 and 2 of this section):
cd\
cd c:\androidsdk\tools
adb push recovery.img /sdcard
adb push flash_image /sdcard
adb shell
su
mount
6. When you hit enter after typing in mount it will give you a list. Look in the list towards the bottom for a line that looks like “/dev/block//vold/179:1 /sdcard”. It may be slightly different but it will have /dev/block at the beginning and /sdcard at the end. We are going to now type mount [AndTheLineWeJustFoundThatLooksLikeTheOneAbove].
mount -o remount,exec /dev/block//vold/179:1 /sdcard
(Again keep in mind yours maybe be slightly different than mine here, make sure to change what you type here according to what you saw in the options after typing mount originally)
7. Then continue typing with hitting enter at the end of each line:
cd /sdcard
./flash_image recovery /sdcard/recovery.img
6. You should now have a custom recovery image! Turn off the phone and turn it back on by holding down Home and Power until the recovery screen comes up. Once it is up, head to the next procedure to load a ROM.
IV. Loading a Custom ROM
1. Head to our How To Load a Custom ROM procedure to continue.





Step 7 – error scanning partitions: No such file or directory
sorry Step 7: ./flash_image: not found
Hi
I need to do mnt/sdcard instead of /sdcard for most of the steps but on the last step i don’t know what to do:./flash_image recovery /mnt/sdcard/recovery.imgerror scanning partitions: No such file or directory
./mnt/flash_image recovery [etc…]flash_image: not foundHelp please!
I’m not using a G1 by the way.
I struggled with this procedure as well, and found that these tips are what got me through…
Some of the steps work with the SD card mounted, others worked with it unmounted.
SU permission is essential of course
At the end, I could not get the ./flash_image recovery command to work. I got either “permission denied” or “flash_image not found”. I simply rebooted the phone, tried again, and it worked.
Thanks for the great tutorial guys!
after i type the cmd line:
mount -o remount,exec /dev/block//vold/179:1 /sdcard
it just says operation not permitted, any suggestions?
hi everyone… i have fixed the issue with the file not found problem.
first go to my computer and click on the “c” drive…
next look for the AndroidSDK folder
go to tolls and copy the flash_image file and put it on your sd card…
once complete, follow the steps above.
start with…
su
mount
and so on and so forth. this should fix the problem. if you need help email me at mubz92@yahoo.com
keeps telling me adb is not…. bla bla what gives? Im about to throw this piece of junk G1 out the window
The link to the flash image is gone
on CMD when I type Adb push recovery.img /sdcard
IT just stays there and I cant type anything else PLEASE HELP
I can not download the flash_image by saying that this method is obsolete and I have a g1 want to install the rom manager did not appear on the market as I have with Android 1.6
been trying to install recovery on my G1 having major issues, and also the links up top there on the Video arent anywhere or atleast i cannot see them, please help, thanks!
Louie