Accidently typed fastboot boot boot.img - General Questions and Answers

what do i do the phone doesn't boot at all

This command tells the bootloader to immediately boot the image you have sent. It's quite useful if you want to run something without actually flashing it to the boot partition - such as TWRP on devices that don't have a recovery partition, or testing patched boot images.
What do you mean "the phone doesn't boot at all"? What device? What were you trying to do?

Khalyl22 said:
what do i do the phone doesn't boot at all
Click to expand...
Click to collapse
That's okay, you only boot(temporary) into boot.img. Try to press and hold your power button to force reboot

V0latyle said:
This command tells the bootloader to immediately boot the image you have sent. It's quite useful if you want to run something without actually flashing it to the boot partition - such as TWRP on devices that don't have a recovery partition, or testing patched boot images.
What do you mean "the phone doesn't boot at all"? What device? What were you trying to do?
Click to expand...
Click to collapse
Oppo a5s i was trying to flash gsi rom but i started
fastboot erase boot
fastboot erase system
fastboot flash system system.img
fastboot boot boot.img by mistake (i was going to fastboot flash boot boot.img)
and now it keeps vibrating

khusika said:
That's okay, you only boot(temporary) into boot.img. Try to press and hold your power button to force reboot
Click to expand...
Click to collapse
didn't work :'(

Khalyl22 said:
Oppo a5s i was trying to flash gsi rom but i started
fastboot erase boot
fastboot erase system
fastboot flash system system.img
fastboot boot boot.img by mistake (i was going to fastboot flash boot boot.img)
and now it keeps vibrating
Click to expand...
Click to collapse
Have you tried to flash all image again?

fastboot erase command is dangerous and (in most cases) useless. do not follow any tutorial that still suggest this.

khusika said:
Have you tried to flash all image again?
Click to expand...
Click to collapse
i actually found out what happened
i erased boot.img and forgot to flash it again because i wanted to patch the file

Related

Can't get past Google Screen

I just restored from the official google 4.4.2 images and my phone cant get past the Google screen. Please help!
bobyum said:
I just restored from the official google 4.4.2 images and my phone cant get past the Google screen. Please help!
Click to expand...
Click to collapse
You flashed the factory images?
bobyum said:
I just restored from the official google 4.4.2 images and my phone cant get past the Google screen. Please help!
Click to expand...
Click to collapse
Do a data factory reset and wipe the cache both in recovery and reboot bro.
gee2012 said:
Do a data factory reset and wipe the cache both in recovery and reboot bro.
Click to expand...
Click to collapse
Thinking the same thing. But.. I can admit getting in a hurry and flashing the wrong image! :laugh:
I made sure that I was using the right image and it still wont go past the Google screen. Any other ideas?
edit: okay the phone can't even write the recovery to the phone through fastboot! Any other thoughts?
bobyum said:
I made sure that I was using the right image and it still wont go past the Google screen. Any other ideas?
Click to expand...
Click to collapse
Long press the power button force it to reboot. As soon as the screen goes black hold down the volume down button. That will boot you into the bootloader, from there you can get to recovery. Factory reset, wipe cache.
You flashed stock recovery?
If you have stock recovery go to the bootloader like I said earlier. Choose recovery. Then you will see android laying down. Press volume up and power button at the same time. Do a factory reset.
bobyum said:
I made sure that I was using the right image and it still wont go past the Google screen. Any other ideas?
edit: okay the phone can't even write the recovery to the phone through fastboot! Any other thoughts?
Click to expand...
Click to collapse
If you flashed the whole image inclusing userdata.img it should boot usualy, never xperienced it did not personaly. So besides a wipe have no idea bro, you might try to reflash the rom again. Are you using a Toolkit?
gee2012 said:
If you flashed the whole image inclusing userdata.img it should boot usualy, never xperienced it did not personaly. So besides a wipe have no idea bro, you might try to reflash the rom again. Are you using a Toolkit?
Click to expand...
Click to collapse
I did this with the flashh-all.bat provided by the official image. I can't even do that anymore because it just gets stuck when writing the bootloader. Totally out of ideas right now. Is there any way I can reformat the partition through fastboot? Would that help?
bobyum said:
I did this with the flashh-all.bat provided by the official image. I can't even do that anymore because it just gets stuck when writing the bootloader. Totally out of ideas right now. Is there any way I can reformat the partition through fastboot? Would that help?
Click to expand...
Click to collapse
Try this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
After that flash the rom again with flash.all.batt
maybe flash each part individually (not using flashall)
Sent from my Nexus 5 using Tapatalk
gee2012 said:
Try this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
After that flash the rom again with flash.all.batt
Click to expand...
Click to collapse
Unfortunately, it didnt help Still stuck at writing bootloader...
beaver2233 said:
maybe flash each part individually (not using flashall)
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yup, that might work better maybe
hmm so in which order should i flash them in?
edit: I honestly think the flash storage failed. Ill just apply for RMA then. Do you guys know if I bought my phone in early December, will I still be eligible?
bobyum said:
hmm so in which order should i flash them in?
edit: I honestly think the flash storage failed. Ill just apply for RMA then. Do you guys know if I bought my phone in early December, will I still be eligible?
Click to expand...
Click to collapse
How to flash a factory image. Erasing everything in fastboot should have done the trick. Erase everything then do method 2. You have to reboot the bootloader after flashing the bootloader and again after flashing the radio. One year to RMA. .
---------- Post added at 02:14 AM ---------- Previous post was at 01:57 AM ----------
These are the commands I would use. The name of the images for the bootloader and radio are for 4.4.2.
fastboot flash bootloader bootloader-hammerhead-hhz11k.img
fastboot reboot-bootloader
fastboot flash radio radio-hammerhead-m8974a-1.0.25.0.23.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash boot boot.img
fastboot format cache
fastboot reboot
Thanks all for the help! Will try it tomorrow. Hopefully it works
wantabe said:
How to flash a factory image. Erasing everything in fastboot should have done the trick. Erase everything then do method 2. You have to reboot the bootloader after flashing the bootloader and again after flashing the radio. One year to RMA. .
---------- Post added at 02:14 AM ---------- Previous post was at 01:57 AM ----------
These are the commands I would use. The name of the images for the bootloader and radio are for 4.4.2.
fastboot flash bootloader bootloader-hammerhead-hhz11k.img
fastboot reboot-bootloader
fastboot flash radio radio-hammerhead-m8974a-1.0.25.0.23.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash boot boot.img
fastboot format cache
fastboot reboot
Click to expand...
Click to collapse
I'd go one better and look to do a COMPLETE reflash - userdata and all! I'd also rename bootloader-hammerhead-hhz11k.img to bootloader.img and radio-hammerhead-m8974a-1.0.25.0.23.img to radio.img as it means there's less to get wrong! SO, to recap:
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash userdata userdata.img
fastboot reboot-bootloader
fastboot flash boot boot.img
fastboot reboot-bootloader
fastboot flash recovery recovery.img
fastboot reboot-bootloader
fastboot format cache
I'd then boot into the stock recovery and perform a factory reset to make sure everything is in order and then reboot. I've done this exact method a number of times on my Nexus 5 and it works every time
EddyOS said:
I'd go one better and rename bootloader-hammerhead-hhz11k.img and radio-hammerhead-m8974a-1.0.25.0.23.img to just bootloader.img and radio.img to make it easier - less to type out and get wrong!
Click to expand...
Click to collapse
I usually do the same thing too but I left the names as a hint to verify that he had the correct images.
I almost never flash userdata and recovery unless I'm selling a device. I've also never rebooted the bootloader between every image Except after the bootloader and radio images but I agree that your method is covering all the bases!
wantabe said:
I usually do the same thing too but I left the names as a hint to verify that he had the correct images.
I almost never flash userdata and recovery unless I'm selling a device. I've also never rebooted the bootloader between every image Except after the bootloader and radio images but I agree that your method is covering all the bases!
Click to expand...
Click to collapse
As I hardly have any data to backup bar some custom ring tones I always reflash the userdata partition to be thorough. As for the reboots, I've just done it from habit, again just to be thorough. If it still doesn't work after that then it's goosed!
Try using the backup bootloader. Press and hold both volume buttons with the power button. That will take you into the backup bootloader.
Thanks to everyone for helping but I could not even get past writing the bootloader to the phone. I honestly think the flash storage and failed so will be RMAing. Hopefully they will accept it...

Bircked Help?

I have anexus 5 that is stuch on the google logo or is stuck in a boot lopp than it gets frozen and when plugegd in the battery logo turns on. I can go into recovery (twrp), but everything on my phone ghas been erased so theres nothing to flash. I tried to use a Nexus 5 toolkit to stock flash but it always comes up with an error. When i try something on twrp it says unable to mount....and give like 5-6 different thinbgs that it cant mount to. Everytime i try to flaash a new bootloader or something from that toolkit the phone turns off and goes into the battery logo. When i use twrp and try to do anything the phone just restarts into recovery. Is there any way i could push factory images to the phone or something else.
BTW, i dont know mucgh in terms of doing stuff with adb and terminal and all that so please be simplistic with the answers. Thanks in advance,.
http://forum.xda-developers.com/showthread.php?t=2513701
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
Sent from my Nexus 5
CRIME INC. said:
http://forum.xda-developers.com/showthread.php?t=2513701
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
Sent from my Nexus 5
Click to expand...
Click to collapse
So i did this and it failes when at the bootloader and alos at the end it says failure. What to do now?
Irfdiddy said:
So i did this and it failes when at the bootloader and alos at the end it says failure. What to do now?
Click to expand...
Click to collapse
Go to twrp and factory reset it and see if it works..
Write failure means that the eMMC might have died which can only be solved by replacing the mobo.
- Sent from an IceCold Hammerhead!
Irfdiddy said:
So i did this and it failes when at the bootloader and alos at the end it says failure. What to do now?
Click to expand...
Click to collapse
You're being too vague for us to help you. What commands did you enter at the terminal? Word for word what was the error message(s) you received? Did you try flashing the factory image using both the primary and backup bootloader?
BirchBarlow said:
You're being too vague for us to help you. What commands did you enter at the terminal? Word for word what was the error message(s) you received? Did you try flashing the factory image using both the primary and backup bootloader?
Click to expand...
Click to collapse
So i followed the guide in the link posted above. This:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
Now, i can flash the boot.img, the system.img, the radio, but it hangs up on some of the other ones and it says "erasing..." than i have to stop it casue it doesnt work. Also, when i go into recovery it shows a spinning android logo.
Edit: Ive gotten all the way to "fastboot flash system system.img", but it gets stuck on my phone and says "erasing..."
Irfdiddy said:
So i followed the guide in the link posted above. This:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
Now, i can flash the boot.img, the system.img, the radio, but it hangs up on some of the other ones and it says "erasing..." than i have to stop it casue it doesnt work. Also, when i go into recovery it shows a spinning android logo.
Edit: Ive gotten all the way to "fastboot flash system system.img", but it gets stuck on my phone and says "erasing..."
Click to expand...
Click to collapse
It will take some minutes to cOmplete the process computer will also hang type of feeling or stop responding for couple of minutes let the program finish its task,...
Irfdiddy said:
So i followed the guide in the link posted above. This:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
Now, i can flash the boot.img, the system.img, the radio, but it hangs up on some of the other ones and it says "erasing..." than i have to stop it casue it doesnt work. Also, when i go into recovery it shows a spinning android logo.
Edit: Ive gotten all the way to "fastboot flash system system.img", but it gets stuck on my phone and says "erasing..."
Click to expand...
Click to collapse
You're not letting it finish. That's why you're having problems. It can take a long time. It also wouldn't hurt to use the flash-all.bat script instead of flashing each individually.

Cant flash factory image

When i try to flash my factory image 5.0.1 on my nexus 5 (i got twrp recovery and DU rom) i got the message you will see in the picture... What shall i do? Thanks in advance.
Post a screenshot of your folder structure where the fastboot.exe and flash-all.bat are located. I guess you forgot to copy over the zip archive which contains the system.img / cache.img / userdata.img and so on.
experience7 said:
Post a screenshot of your folder structure where the fastboot.exe and flash-all.bat are located. I guess you forgot to copy over the zip archive which contains the system.img / cache.img / userdata.img and so on.
Click to expand...
Click to collapse
ok
Does the image-hammerhead zip file contain system.img file? If not you maybe got a corrupted download and have to d/l the factory image again...
experience7 said:
Does the image-hammerhead zip file contain system.img file? If not you maybe got a corrupted download and have to d/l the factory image again...
Click to expand...
Click to collapse
Yeah it does!..
Okay then try this:
1) Erase all partitions manually like this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
2) Then extract the content of the zip file and flash each img file manually like this:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash userdata userdata.img
Bootloader and radio don't have to be flashed because they have - as I can see in your screenshot - successfully been flashed with the flash-all.bat.
experience7 said:
Okay then try this:
1) Erase all partitions manually like this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
2) Then extract the content of the zip file and flash each img file manually like this:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash userdata userdata.img
Bootloader and radio don't have to be flashed because they have - as I can see in your screenshot - successfully been flashed with the flash-all.bat.
Click to expand...
Click to collapse
Does it need something like "fastboot reboot bootloader" after every command?
experience7 said:
Okay then try this:
1) Erase all partitions manually like this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
2) Then extract the content of the zip file and flash each img file manually like this:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash userdata userdata.img
Bootloader and radio don't have to be flashed because they have - as I can see in your screenshot - successfully been flashed with the flash-all.bat.
Click to expand...
Click to collapse
i went to fastboot flash boot boot.img and im stuck on google logo
GiwrgosP- said:
Does it need something like "fastboot reboot bootloader" after every command?
Click to expand...
Click to collapse
Use this tutorial its helped me in past hope it will help you also>http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701 Thanks to> @abaaaabbbb63
Mobile Solutions said:
Use this tutorial its helped me in past hope it will help you also>http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701 Thanks to> @abaaaabbbb63
Click to expand...
Click to collapse
Thats what i did...
GiwrgosP- said:
Thats what i did...
Click to expand...
Click to collapse
Please explain what you did here? use 2nd method
What you did:
fastboot reboot bootloader
That's wrong. It's
fastboot reboot-bootloader
You only flashed stock kernel which is not compatible with DU ROM hence the bootloop.
Never mind. Just turn it off by holding power button. As soon as the screen is off also press vol down to boot in fastboot mode again.
Flash all the partitions like I said without reboot. After you've flashed all partitions type
fastboot reboot-bootloader
experience7 said:
What you did:
fastboot reboot bootloader
That's wrong. It's
fastboot reboot-bootloader
You only flashed stock kernel which is not compatible with DU ROM hence the bootloop.
Never mind. Just turn it off by holding power button. As soon as the screen is off also press vol down to boot in fastboot mode again.
Flash all the partitions like I said without reboot. After you've flashed all partitions type
fastboot reboot-bootloader
Click to expand...
Click to collapse
Thanks doing it right now, hope it works. I will post soon
GiwrgosP- said:
Thanks doing it right now, hope it works. I will post soon
Click to expand...
Click to collapse
Thank you soooooooo much you helped a lot THANKS
No problem mate Don't hesitate to use the forums thanks button if a post was valuable and helpful
experience7 said:
No problem mate Don't hesitate to use the forums thanks button if a post was valuable and helpful
Click to expand...
Click to collapse
I have already done this

Bootloop to fastboot

Bootloop to fastboot after being on dp3, and restoring carbon. I tried fastboot boot twrp.img, but it fails....I also tried fastboot flash it, it does, but still reboots to fastboot. Any suggestions?
I assume you had TWRP installed when this condition occurred, and trying to boot TWRP just sent you to fastboot?
What was the exact error message when trying to fastboot boot TWRP?
suzook said:
Bootloop to fastboot after being on dp3, and restoring carbon. I tried fastboot boot twrp.img, but it fails....I also tried fastboot flash it, it does, but still reboots to fastboot. Any suggestions?
Click to expand...
Click to collapse
try this one
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
had the same problem and it helped
redpoint73 said:
I assume you had TWRP installed when this condition occurred, and trying to boot TWRP just sent you to fastboot?
What was the exact error message when trying to fastboot boot TWRP?
Click to expand...
Click to collapse
It sends the file...then I get a remote error. I tried fastboot flash too. It completed, but still boots to fastboot. Guess msm tool is needed. This phone is a pita.
I cannot get twrp to boot.....Phone refuses to boot it. WTF???
Have you tried this specifically?
Code:
fastboot flash boot recoveryname.img
I was stuck in fastboot yesterday after doing a TWRP restore. The issue was I did a backup and restore including boot and system/vendor.
My thread from a few days ago: https://forum.xda-developers.com/oneplus-7-pro/help/please-help-fastboot-boot-loop-twrp-t3949952
i.Design said:
Have you tried this specifically?
Code:
fastboot flash boot recoveryname.img
I was stuck in fastboot yesterday after doing a TWRP restore. The issue was I did a backup and restore including boot and system/vendor.
My thread from a few days ago: https://forum.xda-developers.com/oneplus-7-pro/help/please-help-fastboot-boot-loop-twrp-t3949952
Click to expand...
Click to collapse
LOL...Um, yes.
Use the All-In-One Tool and flash a fastboot firmware zip (you can find downloads in the software itself). After flashing your back on OOS and can use fastboot to boot TWRP again, then install or restore your rom

Failed to write Partition not found

i allways getting this massage when i try to flash the magisk boot img via fastboot.
what is wrong?
hyundai2010 said:
i allways getting this massage when i try to flash the magisk boot img via fastboot.
what is wrong?
Click to expand...
Click to collapse
Make sure you have the latest fastboot driver's installed.
Did this work?
Hi, did you find a resolve?
I have the latest drivers and nothing seams to work. Tried 5 windows 10 computers with the same result. No partition.
It has to be something with fastboot or the boot image. Well, I guess your phone could be toasted as well. What happens with "fastboot flash boot boot.img" if you use the stock image?
wangdaning said:
It has to be something with fastboot or the boot image. Well, I guess your phone could be toasted as well. What happens with "fastboot flash boot boot.img" if you use the stock image?
Click to expand...
Click to collapse
Any solution to this? Stock boot.img returns error: cannot load 'boot.img'

Categories

Resources