Cannot flash a recovery image to a rooted hero. Please help. - Hero CDMA Q&A, Help & Troubleshooting

I have tried every method I can find. The Flashrec, adb push, mount-a, flash_image recovery *.img
Flashrec says cannot run command
mount -a says something about no device
Flash_image says no such file or directory
Please help Im on 1.2.3
Thanks.
adb push recovery-green.img /sdcard/
1445 KB/s (3868672 bytes in 2.613s)
C:\android\tools>adb shell reboot
C:\android\tools>adb shell
# su
su
# cd /sdcard/
cd /sdcard/
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
#

One thing you could try is renaming the file to recovery.img or rec.img. I do something quick and easy. Also try rooting both computer and phone. I had this problem, went to sleep and the next morning have it a try and it worked. Make sure you type everything just as it says. Might also try using flashrec or fresh kitchen.
-------------------------------------
Sent via the XDA Tapatalk App

All these things I have done. Except rebooting the pc. It runs great, its 7 64, but geeesh, I hate rebooting it..lol
Ok Ill try that and let you know,. As far as fresh kitchen, can you tell me more about it, or point me in the correct direction?
thanks!

Stramondroid said:
I have tried every method I can find. The Flashrec, adb push, mount-a, flash_image recovery *.img
Click to expand...
Click to collapse
I had a similar problem upgrading the recovery image, where I ultimately corrupted the recovery image, and then could not boot into recovery at all anymore (though the phone worked perfectly on a regular boot). The new fresh kitchen was the only thing that worked for me.
http://forum.xda-developers.com/showthread.php?t=644007&page=2
Fresh Kitchen
http://geekfor.me/new-release/fresh-kitchen-105/#more-972
download
Go to the "Rooter" tab, under the "Options" heading, and check "Flash RA only"

I have corrupted my recovery image also ,but Kitchen didn't work to fix it. Any other suggestions/

Try rom manager in the market. It had a button to flash recovery, it's the easiest way
Sent from my HERO200 using XDA App

danaff37 said:
Try rom manager in the market. It had a button to flash recovery, it's the easiest way
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
+1...I was going to suggest the same thing
Sent from my froyo using the xda app

Related

Urgent Help required Rooting

Hi Guys,
I am having a problem with rooting my G1, For the last hour I have been stuck at the point where I have downgraded the phone to the RC7 successfully and am trying to press enter twice and type the telnetd.
At this point I'm not sure if it should give me a sign that it has worked but I then goto telnet command prompt which is showing some questions marks them the # sign but when I type in the commands from the instructions the following happens: Typed exactly as it appears on my screen
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# #cd sdcard
# #flash_image recovery recovery.img
No such file or directory
# #flash_image recovery/sdcard/recovery.img
usage: flash_image partition file.img
# #cat recovery.img > /system/recovery.img
recovery.img: No such file or directory
Try reading this: http://forum.xda-developers.com/showthread.php?t=442480
Its sounds like you havent put the recovery image in your sdcard.
read the instructions again.
I placed the recovery image and the zip file in the sd card, but i was thinking of sacking this method and trying the root.apk method.
rename cm-recovery-1.4.img to recovery.img on your sd card
-OR-
flash_image recovery cm-recovery-1.4.img
The file is called recovery.img
Ok I rebooted the phone pressed enter<reboot>enter again and the phone rebooted, so now I have root what next, do I need to do anything else before putting on a rom, what rom should I put on?>?????
http://androidcommunity.com/forums/f12/rooting-your-g1-made-easy-11825/
faster and less complicated
gtrplr71 said:
http://androidcommunity.com/forums/f12/rooting-your-g1-made-easy-11825/
faster and less complicated
Click to expand...
Click to collapse
Thanks worked
no problem

Problem Flashing recovery image

I have Sprint signed 2.0 ruu and I have the phone rooted successfully.
My problem is this, when I try to flash the recovery image it says "file not found"
I've tried flashing from terminal on phone and from CMD on pc.
I have searched and searched with no luck.
please anyone help. Also how to use nand Restore what is the file that is being restored.
Also how to add removed apps from DC 2.0.72 rom step by step please.
Thanks
make sure debugging is turned on in the phone
settings>applications>development>usb debugging
Here is a guide that you can try
http://forum.androidcentral.com/htc-hero-roms-hacks/9542-how-repair-your-bootloader-after-using-2-1-ruu.html
or try these instructions
http://forum.xda-developers.com/showthread.php?t=583291
Theres some others you can do, but its a males it more difficult after doing the 2.1 RUU
Thanks for the reply
Still showing flash image not found
I tried those websites with no luck!! Does this not work after installing the 2.1 ruu?
C:\AndroidSDK\tools>adb shell
# su
su
# cd /sdcard
cd /sdcard
# flash_image recovery recovery-ra-heroc-v1.6.2-blue.img
flash_image recovery recovery-ra-heroc-v1.6.2-blue.img
flash_image: not found
# [1] Killed su
# exit
exit
C:\AndroidSDK\tools>adb shell
# su
su
# cd /sdcard
cd /sdcard
# flash_image recovery recovery-ra-heroc-v1.5.2.img
flash_image recovery recovery-ra-heroc-v1.5.2.img
flash_image: not found
# flash_image recovery recovery-RA-heroc-v1.5.2.img
flash_image recovery recovery-RA-heroc-v1.5.2.img
flash_image: not found
# exit
exit
# adb push recovery-RA-heroc-v1.5.2.img /sdcard
adb push recovery-RA-heroc-v1.5.2.img /sdcard
adb: not found
#
joshuadb20 said:
I tried those websites with no luck!! Does this not work after installing the 2.1 ruu?
C:\AndroidSDK\tools>adb shell
# su
su
# cd /sdcard
cd /sdcard
# flash_image recovery recovery-ra-heroc-v1.6.2-blue.img
flash_image recovery recovery-ra-heroc-v1.6.2-blue.img
flash_image: not found
# [1] Killed su
# exit
exit
C:\AndroidSDK\tools>adb shell
# su
su
# cd /sdcard
cd /sdcard
# flash_image recovery recovery-ra-heroc-v1.5.2.img
flash_image recovery recovery-ra-heroc-v1.5.2.img
flash_image: not found
# flash_image recovery recovery-RA-heroc-v1.5.2.img
flash_image recovery recovery-RA-heroc-v1.5.2.img
flash_image: not found
# exit
exit
# adb push recovery-RA-heroc-v1.5.2.img /sdcard
adb push recovery-RA-heroc-v1.5.2.img /sdcard
adb: not found
#
Click to expand...
Click to collapse
No that will not work. pm me and I will fix it with you on gtalk.
Since you ran the test ruu you do not have flash_image on your phone. You need to push flash_image to /system/bin/flash_image. I will attach it as a .zip below. Put the .zip in your sdk folder then follow these adb instructions to rename and push it:
Code:
adb remount
adb push flash_image.zip /system/bin/flash_image
Be sure to type it as above to correctly rename it..it is not really a .zip but XDA forces the rename to attach..
You have to give flash_image permission now, so type this:
Code:
adb remount
adb shell chmod 0755 /system/bin/flash_image
Now you should be able to flash the custom recovery if you have indeed rooted your phone and gave permissions to flash_image.
Thankyou thankyou thankyou
I love you guys, This fixed my issue, it drove me nutts all night last night.
Thank you very much!!! Your posting solved my all day issue, im happy :-*
C:\>cd androidsdk\tools\
C:\AndroidSDK\tools>adb shell
$ su
su
# cd /sdcard/
cd /sdcard/
# flash_image recovery recovery-ra-heroc-v1.2.3.img
flash_image recovery recovery-ra-heroc-v1.2.3.img
flash_image: not found
# adb remount
adb remount
adb: not found
#
I am having the same issue on my phone except I can't get the the flash_image file to even work. See above for example of my outcome. Am I not rooted fully? I am using universal androot and getting the Superuser icon and everything. Please help if you can. This is driving me crazy.
91nbtsi said:
...
# flash_image recovery recovery-ra-heroc-v1.2.3.img
...
Click to expand...
Click to collapse
Are you sure it is not named recovery-RA-heroc-v1.2.3.img ?
kjjjjshab said:
Are you sure it is not named recovery-RA-heroc-v1.2.3.img ?
Click to expand...
Click to collapse
I am pretty new to this, so it is case sensitive? I will try and see.
jeez guys. just plug your phone into your computer and drop the heroc-...img into your sdcard's root folder.
then:...\tools> adb shell
ls (to see what's in your current directory)
cd sdcard (to hop onto your sdcard)
su (if not already root)
flash_recovery recovery-.......3.img
reboot recovery
kjjjjshab said:
Are you sure it is not named recovery-RA-heroc-v1.2.3.img ?
Click to expand...
Click to collapse
It is the command "flash_image" that is not found - not the img file
I have the same problem - but in posting it I see that everyone is looking at the error as though it relates to9 the img file
91nbtsi said:
C:\>cd androidsdk\tools\
C:\AndroidSDK\tools>adb shell
$ su
su
# cd /sdcard/
cd /sdcard/
# flash_image recovery recovery-ra-heroc-v1.2.3.img
flash_image recovery recovery-ra-heroc-v1.2.3.img
flash_image: not found
# adb remount
adb remount
adb: not found
#
I am having the same issue on my phone except I can't get the the flash_image file to even work. See above for example of my outcome. Am I not rooted fully? I am using universal androot and getting the Superuser icon and everything. Please help if you can. This is driving me crazy.
Click to expand...
Click to collapse
Here is what you need to do
Code:
adb shell
cd sdcard
flash_image recovery xxxxxxxxxxxx.img
reboot recovery
You should not need to remount, but if you need to or for future reference you type in adb remount from the command prompt and not in adb shell
diogenesthesceptic said:
It is the command "flash_image" that is not found - not the img file
I have the same problem - but in posting it I see that everyone is looking at the error as though it relates to9 the img file
Click to expand...
Click to collapse
Read an earlier post, download the file and do what the post instructs. You need the flash_image file on your phone
danknee said:
Since you ran the test ruu you do not have flash_image on your phone. You need to push flash_image to /system/bin/flash_image. I will attach it as a .zip below. Put the .zip in your sdk folder then follow these adb instructions to rename and push it:
Code:
adb remount
adb push flash_image.zip /system/bin/flash_image
Be sure to type it as above to correctly rename it..it is not really a .zip but XDA forces the rename to attach..
You have to give flash_image permission now, so type this:
Code:
adb remount
adb shell chmod 0755 /system/bin/flash_image
Now you should be able to flash the custom recovery if you have indeed rooted your phone and gave permissions to flash_image.
Click to expand...
Click to collapse
Mine says "remount failed: Operation not permitted" when I try to remount.
LARPkitten said:
Mine says "remount failed: Operation not permitted" when I try to remount.
Click to expand...
Click to collapse
If you are in recovery and trying this you do not need to remount. If you are booted into Android try
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
you might also replace /dev/block/mtdblock3 with /dev/mtd/mtd1
and then chmod
I am having this problem as well.
Okay if your having a problem with the ole "flash_image not found" saying do this open up command prompt and type
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
then open up another command prompt with the old one still running and type this
Code:
adb push flash_image /bin
adb shell chmod 0755 /system/bin/flash_image
Now you should be good to flash your recovery
Asadullah said:
Okay if your having a problem with the ole "flash_image not found" saying do this open up command prompt and type
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
then open up another command prompt with the old one still running and type this
Code:
adb push flash_image /bin
adb shell chmod 0755 /system/bin/flash_image
Now you should be good to flash your recovery
Click to expand...
Click to collapse
I'm getting all the same errors everyone else on here is getting. Is flash_recovery a file that is required? I don't mean the .img file, but is it some kind of command file?

Cannot flash a recovery image to a rooted hero. Please help.

I have tried every method I can find. The Flashrec, adb push, mount-a, flash_image recovery *.img
Flashrec says cannot run command
mount -a says something about no device
Flash_image says no such file or directory
Please help Im on 1.2.3
Thanks.
adb push recovery-green.img /sdcard/
1445 KB/s (3868672 bytes in 2.613s)
C:\android\tools>adb shell reboot
C:\android\tools>adb shell
# su
su
# cd /sdcard/
cd /sdcard/
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
# flash_image recovery recovery-green.img
flash_image recovery recovery-green.img
error opening recovery-green.img: No such file or directory
#
Not Dev. Mods please move to Q&A.
try this
adb push recovery-green.img /sdcard/
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard
flash_image recovery recovery-green.img
reboot recovery
Also, if you get stuck, search for ROM Manager in the market. it will let you flash the clockworkmod RA. After you have flashed that, you can look a little further down the list in that app, and you will see the option to flash RA Recovery v1.6.2. All of this is included in the free version of the app.
smstutler said:
try this
adb push recovery-green.img /sdcard/
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard
flash_image recovery recovery-green.img
reboot recovery
Click to expand...
Click to collapse
dude i was having the same problem for a while, make sure your phone is on and not in recovery mode, make sure its not mounted, just have it on charge only, and in the root of your sdcard and not in a folder, and make sure debug is on. also when i had the same problem i had a thread about it, just go through this thread and it will help you. in the mean time you can take your recovery image, rename it to something like myrecovery and that way its easier for you to remember it. then open up
adb shell, then type flash_image recovery myrecovery.img
heres the thread for me help. http://forum.xda-developers.com/showthread.php?t=685522
Thanks guys, Im gonna try these things now. I tried searching, but couldnt get my keywords right, my apologies for placing in the wrong thread.
Ill update soon with results.
Thanks again!
smstutler said:
try this
adb push recovery-green.img /sdcard/
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard
flash_image recovery recovery-green.img
reboot recovery
Click to expand...
Click to collapse
This worked perfect. I knew I was going wrong with the mount, it was basically telling me the syntax was wrong, and after pasting your command, I was able to flash the recovery perfect.
Thanks again. !!!! XDA ROCKS!!! DONATE!! I DO!!!!
I think you have to downgrade to a different version because i had the same message for flashrec and adb command.
The option I used was Clockwork Mod Recovery with Rom Manager. Just install Rom Manager and then click "Flash Clockwork Mod Recovery". With the recovery.img on the root of the sdcard.
koushikdutta.com/2010/02/clockwork-recovery-image.html
I know you already figured it but just in case it does not work for anyone else this is an option.

OK I give up. I Need Help PLEASE

I'm at the end of my rope here. I can't get my phone to do a complete wipe. Every time i've tried I get this:
--wiping data...
formatting DATA:...
formatting CACHE:...
formatting SDEXT:...
E:Can't mount /dev/block/mmcblk0
p2
(Invalid Argument)
Error mounting /sd-ext/!
Skipping format...
Data wipe complete.
I've been stuck in a boot loop since like 3am. Please if you can help me, I'm all ears. Right now my phone is useless, and i'm starting to get worried. Thank you in advance
What recovery are you running? It looks like it's erroring out when it attempts to wipe your EXT partition. If you backup the files on your SD and re-partition it, that'll clear anything from EXT.
illogic6 said:
What recovery are you running? It looks like it's erroring out when it attempts to wipe your EXT partition. If you backup the files on your SD and re-partition it, that'll clear anything from EXT.
Click to expand...
Click to collapse
Therein lies the problem tho. I running clockwork 2.0.3.?. I have everything backed up from the fat32 partition, but ext doesn't even show up when i mount my sd card to PC. You don't by any chance have a step by step explanation do you?
ksharp5580 said:
Therein lies the problem tho. I running clockwork 2.0.3.?. I have everything backed up from the fat32 partition, but ext doesn't even show up when i mount my sd card to PC. You don't by any chance have a step by step explanation do you?
Click to expand...
Click to collapse
Can you get to the adb shell? If so, you can run 'sdparted'. Maybe that'll cure the bootloop.
I would strongly suggest flashing an amonra recovery once you have this resolved.
illogic6 said:
Can you get to the adb shell? If so, you can run 'sdparted'.
Click to expand...
Click to collapse
do i just open a cmd prompt and type adb shell?
ksharp5580 said:
do i just open a cmd prompt and type adb shell?
Click to expand...
Click to collapse
If you have the android sdk installed properly, yes. You may have to CD to the tools subdirectory if your path isn't setup. For example ADB is contained in this directory on my computer: C:\android-sdk-windows\tools
You should run 'adb shell' then 'sdparted'. That should walk you through the SD partition process.
illogic6 said:
If you have the android sdk installed properly, yes. You may have to CD to the tools subdirectory if your path isn't setup. For example ADB is contained in this directory on my computer: C:\android-sdk-windows\tools
You should run 'adb shell' then 'sdparted'. That should walk you through the SD partition process.
Click to expand...
Click to collapse
This is where i'm at now. Anything familiar?
C:\android-sdk-windows\tools>adb devices
adb server is out of date. Killing...
* daemon started successfully *
List of devices attached
HT9BGHF04735 recovery
C:\android-sdk-windows\tools>adb shell
~ # sdparted
sdparted
/sbin/sh: sdparted: not found
~ #
ksharp5580 said:
This is where i'm at now. Anything familiar?
C:\android-sdk-windows\tools>adb devices
adb server is out of date. Killing...
* daemon started successfully *
List of devices attached
HT9BGHF04735 recovery
C:\android-sdk-windows\tools>adb shell
~ # sdparted
sdparted
/sbin/sh: sdparted: not found
~ #
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=543985
"to run from computer:
1. download sdparted.txt below to computer
2. connect g1 via usb
3. boot into cm-recovery-v1.4, goto console(alt-x)
4. at your windows cmd prompt type: adb push /path-to/sdparted.txt /sbin/sdparted
5. then type: adb shell chmod 755 /sbin/sdparted
6. to run type adb shell and hit enter.
7. you can now run script"
illogic6 said:
http://forum.xda-developers.com/showthread.php?t=543985
"to run from computer:
1. download sdparted.txt below to computer
2. connect g1 via usb
3. boot into cm-recovery-v1.4, goto console(alt-x)
4. at your windows cmd prompt type: adb push /path-to/sdparted.txt /sbin/sdparted
5. then type: adb shell chmod 755 /sbin/sdparted
6. to run type adb shell and hit enter.
7. you can now run script"
Click to expand...
Click to collapse
Awesome. thanks man. Hope this works
yeah it's your recovery. Install amon_ra 1.6.2 or godspeed recovery if you're not running DD 2.7, or if you're on DD 2.7 install the 1.7.0 recovery from the first page.

Having trouble flashing a new recovery image....

Hi everyone,
I'm using a mac, trying to flash a new recovery image, more specifically the darchstar/godspeed recovery image: http://forum.xda-developers.com/showthread.php?t=672324
I've got the recovery image on the SD Card (not in any folders...right on the top level)
When I issue the flash_image recovery /sdcard/Darchstar-OC-recovery-r2.img command, it's not doing anything.
I've tried issuing it from Terminal on my mac, and using a the android terminal application.
Thanks in advance for any help!
do it with terminal emulator on the actual phone. That's what I usually do
su
flash_image recovery /sdcard/XXXXX.img
adb shell
#flash-blah blah blah.
I am trying to do this as well and when i type su into the command line it tells me permission denied. What am I doing wrong?
silentpanda said:
I am trying to do this as well and when i type su into the command line it tells me permission denied. What am I doing wrong?
Click to expand...
Click to collapse
On terminal emulator your forgetting to type su doing so will give terminal emulator root access. SuperUser Permissions will pop up and ask if its ok click allow.
Try..
Adb remount
adb shell
cd /sdcard
flash_image recovery Darchstar-OC-recovery-r2.img

Categories

Resources