Custom Recovery Image

5) Opened up terminal emulator and tried all of the following from the $ prompt AND the # (su) prompt:

flash_image recovery /sdcard/recovery-0.08.img
/sdcard/flash_image recovery /sdcard/recovery-0.08.img

I also tried to cd into /sdcard/ and run the same two commands. I tried

./flash_image recovery /sdcard/recovery-0.08.img

also and that didn't work.

if flash_image is in the root of the sdcard, you'll have to run
'/sdcard/flash_image recovery /sdcard/recovery.img' since flash_image is not in your $PATH
didn't work :icon_eek:

didn't work because that response was cut and pasted from Alldroid where someone renamed the file to just recovery instead of recovery-0.08

However, I tried it with the 0.08 and it still didn't work anyway LOL
 
atually when I type:

/sdcard/flash_image recovery /sdcard/recovery-0.08.img

I now get a permission denied error instead of the file not found that I was getting before.

hmmmmmm
 
atually when I type:

/sdcard/flash_image recovery /sdcard/recovery-0.08.img

I now get a permission denied error instead of the file not found that I was getting before.

hmmmmmm

can you give us the output of ' ls -l /sdcard/ ' also the output of 'mount' ?
 
Forgot to mention, the command which seems to get me the farthest is:

/sdcard/flash_image recovery /sdcard/recovery-0.08.img

What I get from that is:

/sdcard/flash_image: permission denied

I get that even when I su to the # prompt. Any ideas?

atually when I type:

/sdcard/flash_image recovery /sdcard/recovery-0.08.img

I now get a permission denied error instead of the file not found that I was getting before.

hmmmmmm
:icon_eek:
 
didnt work.. no new recovery, just the stock one. says cant open /cache/recovery/command
 
i get nothing. it acts like everything works, but then upon reboot, i have to hit vol^ and camera button to get into stock recovery
 
i get nothing. it acts like everything works, but then upon reboot, i have to hit vol^ and camera button to get into stock recovery

Did you do this step to disable stock recovery reset on boot?

su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mv /system/recovery-from-boot.p /system/recovery-from-boot.old
sync
mount -o remount,r -t yaffs2 /dev/block/mtdblock3 /system
 
have you renamed /system/recovery-on-boot.p
i may be missing the point, I've had a few beers.
edit: Brian beat me to it.
 
Last edited:
i get nothing. it acts like everything works, but then upon reboot, i have to hit vol^ and camera button to get into stock recovery

Did you do this step to disable stock recovery reset on boot?

su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mv /system/recovery-from-boot.p /system/recovery-from-boot.old
sync
mount -o remount,r -t yaffs2 /dev/block/mtdblock3 /system

this only applies if you boot fully into android after making your change. i ran the flash_image command, hit power off, held x on start and got into the 0.07 custom recovery image. it replaces the recovery partition as part of the os init. i wouldn't advocate moving that file until you're sure you want the new recovery image to stick =) just remember, if you do normal startup, you're back to factory and need to rerun the commands if you want to go back to custom.
 
can you give us the output of ' ls -l /sdcard/ ' also the output of 'mount' ?

These are both very long outputs....are there specific lines you're looking for?

the line for flash_image and the recovery.img files on the first, and the line for the /sdcard mount on the second

----rwxr-x system sdcard_rw 26172 2009-12-12 20:46 flash_image

/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 o
 
These are both very long outputs....are there specific lines you're looking for?

the line for flash_image and the recovery.img files on the first, and the line for the /sdcard mount on the second

----rwxr-x system sdcard_rw 26172 2009-12-12 20:46 flash_image

/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 o

excellent, see that "noexec" in the mount entry for sdcard? that should be your permission denied issue.
 
Back
Top