I am in the bootloader trying to load twrp. Typed fastboot flash recovery recovery.img
command prompt says error: cannot load 'recovery.img'
myflyman said:
I am in the bootloader trying to load twrp. Typed fastboot flash recovery recovery.img
command prompt says error: cannot load 'recovery.img'
Click to expand...
Click to collapse
It means it can't find the recovery.img on your PC.
Did you check the file extension?
Windows has ist disabled by default, so you might have renamed it to recovery.img.img
I put the file on the desktop? Why can't it find it? Frustrating
I opened properties and it does have permissions granted. Not sure why it opens with Windows explorer? Can that be right?
I'm lost. Between the proper TWRP version not available and the path not visible, just gotta be an easier softer way.
Is the name of the file you have placed on the desktop recovery.img?
The correct format would be fastboot flash recovery <name of file>.img
Rename the file to recovery (do not add any .img extension) and use the same command fastboot flash recovery recovery.img
You can also flash the recovery by typing in this command:
"fastboot flash recovery" and then drag the twrp.img into your cmd prompt.
Another way is typing the first letter of your recovery name and then hit the 'tab' key in cmd prompt, it will automatically fill out the name for you (make sure you open cmd prompt inside where the recovery img is, thus hold shift in the folder, right click and click open terminal.)
Hope this helps, goodluck.
Wow, thanks a million friend. Having the best days of my life learning and growing in tech experience. It is possible with your and others guidance. Much appreciative. I'll give er a go here shortly and keep you posted.
myflymavn said:
Wow, thanks a million friend. Having the best days of my life learning and growing in tech experience. It is possible with your and others guidance. Much appreciative. I'll give er a go here shortly and keep you posted.
Click to expand...
Click to collapse
For the command in your first post to work, two things are essential. One is naming the .IMG file correctly, as the others have pointed out. The other is to place the .IMG file in the same folder as your adb tools.
If it is in a different folder, then the exact path to the .IMG file has to be typed in the adb command or you can drag the file to the command prompt window as someone pointed out.
Shift right click in the folder where the file is and open the command prompt from there. That way you don't need to mess with the path.
You must place if your image file is recovery.img you must place "fastboot flash recovery.img.img" and done
Same problem when using Windows 10, find that open command prompt pathway to find files is not fastboot that is some other like user/ best , copy your recovery Img to that folder and you can flash now.
Frexx4 said:
You must place if your image file is recovery.img you must place "fastboot flash recovery.img.img" and done
Click to expand...
Click to collapse
Don't confuse people with recovery.img.img and missing the partition to flash.
The correct usage is "fastboot flash recovery recovery.img" if your TWRP is named recovery.img
The clarifications on the prepage are clear.
Related
Hello everyone i am having troubles installing adb on my laptop and i need it to flash a splash screen on my mytouch slide so it can match the rom i have made for it. I installed the adnroid sdk to where it needs to be by downloading adb for dummies lol. Except when i open cmd and run adb it says its not an internal batch orrecognized file or whatever but when i type adb.exe on command prompt it shows everything about adb. So can anyone please help me thanks.
Nerd019 said:
Hello everyone i am having troubles installing adb on my laptop and i need it to flash a splash screen on my mytouch slide so it can match the rom i have made for it. I installed the adnroid sdk to where it needs to be by downloading adb for dummies lol. Except when i open cmd and run adb it says its not an internal batch orrecognized file or whatever but when i type adb.exe on command prompt it shows everything about adb. So can anyone please help me thanks.
Click to expand...
Click to collapse
I'm trying to piece together information here. ADB for me is in my C:\, so when opening CMD prompt, I first type "cd/" (without quotes) then "cd AndroidSDK/tools". To get a list of ADB's commands, type "adb help". Maybe you're not using the proper syntax. I base this off the statement you made that when you type adb.exe it shows the adb commands, and command syntax usage.
Also note that changing your splash screen you must first S-OFF your phone. Here's a guide on how to do so
http://forum.xda-developers.com/showthread.php?t=798168
That's the tricky part though, easy part is flashing your custom boot image.
File you will need: View attachment Boot_images.zip
Once you have the 320x480 boot image you want, open "CreateG1Splash", select your boot image, and convert it with this program. Once converted the new file will show in the same folder as CreateG1Splash, named mysplash.rgb565. Move this file to your ADB tools folder. Open CMD prompt and point CMD prompt to your AndroidSDK\tools folder.
Then boot phone into bootloader, then select fastboot. Plug the phone to CPU via USB, and type, "fastboot flash splash1 mysplash.rgb565". Reboot phone to see change.
Hope this helps!
The new version of SDK has changed a few things within the file system, so I'm just writing something here to show how it will work fast for everyone.
1. Install Android SDK
2. Update Android SDK through the program first.
3. Go to "Android\android-sdk\tools" (or wherever you've installed the sdk-tools) and copy "fastboot".
4. Paste "fastboot" in to "platform-tools"
5. Once that's done, to get directly to "Android\android-sdk\" to run ADB and fastboot without having any errors (or command prompt irritations) press SHIFT then right click "Android\android-sdk\platform-tools" and select "Open command window here".
6. Then it's just the case of pasting your .img file in to the "Android\android-sdk\platform-tools" folder, and you're good to go! (for example, in command prompt type: fastboot flash hboot bravo_alphaspl.img)
Dan.
The reason why I have put this here is because I have had trouble trying to sort out the new SDK and I in fact had trouble with "missing files" within the folders. They weren't missing, it's just that the SDK folders have been cleaned up.
Follow this and you won't go wrong to flash anything through fastboot .
Dan
Please format your first post correctly (like second post), otherwise it's horrible to read.
I guess "old" sdk will still work properly?
I used Team win Recovery Project to wipe my phone Galaxy Nexus, and now when I plug the phone in to the lappy it doesn't show the sd card. Freaking out here cause I can't copy over a zip file to flash a ROM... please help...
The GNEX doesn't have an actual sdcard, so when you wiped the phone i'm guessing you wiped the virtual sd card.
You will have to adb push a rom to your phone.
One the top of the first Q&A page jubakuba has a guide that has a panic section in it.
The guide also shows how to install adb/fastboot and gives you the commands.
try flash the stock img via fastboot using the following line to avoid wiping ur sdcard
fastboot update ***.zip
then wipe data via CWM and enjoy
xskordeal said:
try flash the stock img via fastboot using the following line to avoid wiping ur sdcard
fastboot update ***.zip
then wipe data via CWM and enjoy
Click to expand...
Click to collapse
sorry, complete DOLT here. Where would I input the command?
If you don't know about adb/fastboot, do as suggested in first post. All is explained in the guide.
How to get to a MS-DOS prompt or Windows command line
TheDodgey said:
sorry, complete DOLT here. Where would I input the command?
Click to expand...
Click to collapse
Click Start.
Click Run.
Type cmd or command and press enter.
gpfnzl said:
If you don't know about adb/fastboot, do as suggested in first post. All is explained in the guide.
Click to expand...
Click to collapse
ok, following your instructions, and the instructions of the link, I have install ADB and can use cmd, however when I type adb shell, I get an error returning "device not found"
I see a lot of threads stating to make sure usb debugging is on, it was before I wiped the phone, but obviously I cant get to any settings at the moment.
on the verge of crying now, and noone likes to see a grown man cry
FIXED
I ran the push command whilst in recovery and it worked
not sure that it mattered, but I did change the zip file name to ROM.zip, and whilst in recovery, ran the comand "adb push ROM.zip /sdcard/ROM.zip
Just thought I would put that in there for other dopes like me that might come across this problem
Thanks to all for your help!
LOL
Normally if you can't see your device listed you haven't installed the drivers correctly.(or the correct drivers)
Also you have to open a command prompt window in the same folder as fastboot.exe and adb.exe
To do this in Windows 7:
Click the windows start button (bottom left hand corner)
In the search bar at the bottom type: cmd
At the top of the search list you will see the program cmd.exe right click and copy it.
Paste it into the same folder that has fastboot.exe and adb.exe
Now you can open the cmd window and type the command:
adb devices
Hit ENTER and if you have installed drivers correctly, the serial number of your phone will be listed.
If not, uninstall the drivers, download a new set of drivers from jubakuba or efrants guide and reinstall.
---------- Post added at 11:58 AM ---------- Previous post was at 11:53 AM ----------
TheDodgey said:
FIXED
I ran the push command whilst in recovery and it worked
not sure that it mattered, but I did change the zip file name to ROM.zip, and whilst in recovery, ran the comand "adb push ROM.zip /sdcard/ROM.zip
Just thought I would put that in there for other dopes like me that might come across this problem
Thanks to all for your help!
Click to expand...
Click to collapse
didn't need to change the name of the rom zip. Just needed to type the full name of the .zip file.
Good to see it worked, and the tears have stopped
What is the easiest method to root HTC one that is on 4.2.2?
cis314 said:
What is the easiest method to root HTC one that is on 4.2.2?
Click to expand...
Click to collapse
Here's what you're looking for...it's your only option if you don't want to mail it anywhere:
http://forum.xda-developers.com/showthread.php?t=2473644
Sent from my HTC6500LVW using XDA Premium 4 mobile app
cis314 said:
What is the easiest method to root HTC one that is on 4.2.2?
Click to expand...
Click to collapse
I finally got my htc one rooted and flashed plenty of roms so far I had a lot of stupid issues with rooting but guys on here were very helpful even tho I had to ask questions over and over again to troubleshoot problems. Easiest way was to dl rumrunner and get s-off and bootlader loaded. Them just flash a recovery. My buggiest prob was getting all files on my comp into a separate folder and opening a cmd from that folder. Also remember to always run stuff on ur comp as an administrator!
how did you flash recovery? I am having such a hard time flashing recovery!
cis314 said:
how did you flash recovery? I am having such a hard time flashing recovery!
Click to expand...
Click to collapse
put recovery.img in adb folder
open cmd prompt
type fastboot flash recovery nameofrecvovery.img
andybones said:
put recovery.img in adb folder
open cmd prompt
type fastboot flash recovery nameofrecvovery.img
Click to expand...
Click to collapse
Easier to just type "fastboot flash recovery (drag recovery.img here)"
that way you can save the recovery on your desktop or wherever. I wish adb/fastboot could be ran from anywhere and not just the adb folder though.
exzacklyright said:
Easier to just type "fastboot flash recovery (drag recovery.img here)"
that way you can save the recovery on your desktop or wherever. I wish adb/fastboot could be ran from anywhere and not just the adb folder though.
Click to expand...
Click to collapse
if you set it up correctly it can be, I can put the .img in my C folder, open a cmd and run commands, but it would still need the adb file.
so put the recovery whereevere your adb.exe is..
you can even make a folder called apktool in c: (thats what I have, that has adb.exe, fastboot, smali, baksmali, etc)
andybones said:
if you set it up correctly it can be, I can put the .img in my C folder, open a cmd and run commands, but it would still need the adb file.
so put the recovery whereevere your adb.exe is..
you can even make a folder called apktool in c: (thats what I have, that has adb.exe, fastboot, smali, baksmali, etc)
Click to expand...
Click to collapse
Adding the path to the adb.exe (and fastboot.exe) directory, to the environment variables, allows you to run ADB and Fastboot from any directory.
In Windows, right+click "Computer", select "Properties", click on "Advanced System Settings". On the "Advanced" tab select "Environment Variables" . In the bottom window find the "Path" string and add the path to ADB directory to the end.
The Paths in the string are separated by a semi-colon, so for example, I've added the path to my platform-tools directory like such:
;c:\android-sdk\platform-tools
This can also be done in Linux and Mac OS X, environment variables are stored in a hidden text file in the home folder. You can also adde it by typing the the PATH command in a terminal. Just Google it. Only takes a minute and saves time by not having to "CD" to your ADB directory every time.
EDIT: This Tut. has nice screen shots
http://forum.xda-developers.com/showthread.php?t=757233
Hi,
I'm trying to install LineageOS on Xiaomi Redmi Note 7. Everything worked fine until I tried to flash a recovery file. After typing this command: fastboot flash recovery recovery_name.img it says it can't find a file with that name. I tried putting a path before the name, but then it says access denied. Any help?
Thanks
Nextros said:
Hi,
I'm trying to install LineageOS on Xiaomi Redmi Note 7. Everything worked fine until I tried to flash a recovery file. After typing this command: fastboot flash recovery recovery_name.img it says it can't find a file with that name. I tried putting a path before the name, but then it says access denied. Any help?
Thanks
Click to expand...
Click to collapse
You never used the windows command window before?
Type dir to see files and folders
Type cd <name> to change folder till you see .img file
kurtn said:
You never used the windows command window before?
Type dir to see files and folders
Type cd <name> to change folder till you see .img file
Click to expand...
Click to collapse
I was thinking about navigating to the folder where I saved it, but didn't try it as I was in a car. Anyway, it worked. Thanks.