Bootloop symptom or corrupt recovery? - Nexus 5X Q&A, Help & Troubleshooting

Today I made nandroid backup of my phone to try paranoid android. After playing for sometime decided to revert back to rr. But whenever I tried to restore vendor image (using TWRP) phone would crash. Everything else, system, data etc would restore fine. But phone crashed three times trying to restore vendor image. Scared at first but then flashed vendor image using fastboot and success! Do you think what happened was just because of a corrupt recovery file or something more serious (bootloop)?

Sounds like corrupted recovery

Related

[Q] bricked my toro while on vicious jelly bean v1

my phone was running amazing
then i turned off my phone so that i could turn it back on it wouldnt got past the google boot screen
now every rom i flashed and kernal and radio combo
has rebooted it self at boot animation to repeat
Any Sugestions?
Wipe data
wiped data and cache and dalvik while doing this
jett1217 said:
my phone was running amazing
then i turned off my phone so that i could turn it back on it wouldnt got past the google boot screen
now every rom i flashed and kernal and radio combo
has rebooted it self at boot animation to repeat
Any Sugestions?
Click to expand...
Click to collapse
restores with stock 4.0.4 .....
even tried restoring another rom but it goes all fine till /data then in the middle of restoring /data it has error on all my restores and fails
when i did the google factory image restore it wiped everything now how do u put files on sd card without going into usb debugging
Are these verified working restores?
If not... .img's over 2gigs cannot be restored.
This is an AOSP issue...
(TWRP allows you to enable compression...thus shrinking you're backups to smaller than 2gigs...but that's of no use to you currently).
A few users have also reported bootlooping after flashing something else...or nandroid restoring even without errors.
I had no such problems.
Flash stock images, if all else fails.
Jubakuba said:
Are these verified working restores?
If not... .img's over 2gigs cannot be restored.
This is an AOSP issue...
(TWRP allows you to enable compression...thus shrinking you're backups to smaller than 2gigs...but that's of no use to you currently).
A few users have also reported bootlooping after flashing something else...or nandroid restoring even without errors.
I had no such problems.
Flash stock images, if all else fails.
Click to expand...
Click to collapse
i have flashed 4.0.4 stock image
holy **** right as i was typing this my phone booted properly
jett1217 said:
i have flashed 4.0.4 stock image
holy **** right as i was typing this my phone booted properly
Click to expand...
Click to collapse
Same thing happened to me on v2 and I was using TWRP. Backed up /data/media rebooted into boot loader and ran fastboot -w and it booted right up. Using cwm to be safe now
EDIT: MAKE SURE YOU BACKUP /DATA/MEDIA BEFORE DOING FASTBOOT -W OR ALL YOUR SDCARD DATA WILL BE GONE!!!

[Q] i747 fail to boot after every power cycle.

Here's the short and sweet of it. I am on an i747, running TWRP 2.4.4.0, and PACMAN ROM current nightly. Then I updated to 4.6.3.0 TWRP. Recently my phone lost power ( I forgot to charge it). Then it would boot. I tried to do a restore in TWRP and it would fail at data. I tried flashing a ROM, fail at running updater. I tried to restore, again it would fail at data. Nothing would install or restore. Finally, in desparation, I formatted data. Then, after all of internal was wiped, I could restore from a backup.
Problem fixed right? No.
If I reboot, shutdown, crash, lose power, or in anyway power cycle, the phone fails to boot until I completely format data and do restore. WTF is going on? I'm currently trying to downgrade TWRP to see if TWRP is the issue but I doubt it is.
EDIT: 16:23 The problem is in DATA. I used TWRP backup to restore JUST system and boot and it didn't fix the issue. Something is messing up stuff somewhere in /Data. When attempting to restore data, I sometimes get an error about data/lost+found but I can't reproduce the error right now

Reboot after booting to recovery

I'm using an AT&T M8, BL unclocked through HTCdev, Sunshine S-OFF, SuperCID.
Yesterday, I flashed PA. Today, I decided to restore my nandroid for Viper.
I rebooted to recovery (TWRP), wiped my data, and then told it to restore my backup of Viper. Almost immediately after doing so, my phone rebooted without completing the restore. I tried then rebooting to recovery, and wiping /system before doing the restore, in the belief that it was a Sense/AOSP conflict. However, TWRP decided to reboot before I could even start the restore.
Now, I don't have an OS to boot to, and TWRP continually reboots 10-15 seconds after it boots.
I've tried updating my recovery, which was successful, but this did not seem to have an effect.
I've also tried clearing cache with fastboot, and while this was also successful, it also has not had an effect.
Has anyone seen this happen before?
Edit:
I've installed PhilZ recovery, and it no longer reboots immediately after booting to recovery. However, each time it starts, it gives a series of "E: Can't Mount /cache/recovery"...etc.
When I try to wipe data in PhilZ, it reboots again. I've tried reflashing PA, but it gave me a "E: failed to set up expected mounts for install; aborting".
OMGMatrix said:
I'm using an AT&T M8, BL unclocked through HTCdev, Sunshine S-OFF, SuperCID.
Yesterday, I flashed PA. Today, I decided to restore my nandroid for Viper.
I rebooted to recovery (TWRP), wiped my data, and then told it to restore my backup of Viper. Almost immediately after doing so, my phone rebooted without completing the restore. I tried then rebooting to recovery, and wiping /system before doing the restore, in the belief that it was a Sense/AOSP conflict. However, TWRP decided to reboot before I could even start the restore.
Now, I don't have an OS to boot to, and TWRP continually reboots 10-15 seconds after it boots.
I've tried updating my recovery, which was successful, but this did not seem to have an effect.
I've also tried clearing cache with fastboot, and while this was also successful, it also has not had an effect.
Has anyone seen this happen before?
Edit:
I've installed PhilZ recovery, and it no longer reboots immediately after booting to recovery. However, each time it starts, it gives a series of "E: Can't Mount /cache/recovery"...etc.
When I try to wipe data in PhilZ, it reboots again.
Click to expand...
Click to collapse
I don't think the recovery was "restored" / flashed to the boot partition but maybe try just in case. Flash the boot.img for Viper ROM and see if it stops the bootloop. After that you can make a clean wipe and install the ROM again, not restore but INSTALL. You surely have the ROM's .zip still?
Reason I suggested boot.img: i cannot get anything to restore with the h3g__001 backups keep getting recovery.emmc.win' is larger than target device '/dev/block/mmcblk0p42 error
mmcblk0p42 is the boot partition, so I don't know why TWRP tried to restore/flash a recovery to boot partition. He solved it by manually flashing boot.img after renaming.
if anyone gets this error heres how i solved it.change the boot.emmc.win to boot.img and it let me restore
Just a suggestion...
So this has been thoroughly confusing.
It seems that I had to clear the cache several times in PhilZ in order to resolve the first error. I tried to flash the original rom zip for Viper, but it still failed even though the "E: can't mount" messages weren't showing any more. However, I was able to re-flash the rom zip for PA, and upon booting, I found that Many of my apps were still there dispite the fact that they should have not been.
I then was able to reboot to recovery and flash the zip for Viper.
No clue what happened, but at least if anyone else has this problem, they'll be able to see how I fixed it
OMGMatrix said:
So this has been thoroughly confusing.
It seems that I had to clear the cache several times in PhilZ in order to resolve the first error. I tried to flash the original rom zip for Viper, but it still failed even though the "E: can't mount" messages weren't showing any more. However, I was able to re-flash the rom zip for PA, and upon booting, I found that Many of my apps were still there dispite the fact that they should have not been.
I then was able to reboot to recovery and flash the zip for Viper.
No clue what happened, but at least if anyone else has this problem, they'll be able to see how I fixed it
Click to expand...
Click to collapse
The apps will be there if you restored without making changes to the data partition which contains the your userdata. I've converted and changed over from International to Developer edition quite a few times now and not once in all those times did I lose my data, I just never restored the data partition.
Not sure if you have to actively choose whether to flash over data or not, I'm not that big into custom ROMs, only tried Viper ROM and even then I kept my original data.
OMGMatrix said:
I'm using an AT&T M8, BL unclocked through HTCdev, Sunshine S-OFF, SuperCID.
Yesterday, I flashed PA. Today, I decided to restore my nandroid for Viper.
I rebooted to recovery (TWRP), wiped my data, and then told it to restore my backup of Viper. Almost immediately after doing so, my phone rebooted without completing the restore. I tried then rebooting to recovery, and wiping /system before doing the restore, in the belief that it was a Sense/AOSP conflict. However, TWRP decided to reboot before I could even start the restore.
Now, I don't have an OS to boot to, and TWRP continually reboots 10-15 seconds after it boots.
I've tried updating my recovery, which was successful, but this did not seem to have an effect.
I've also tried clearing cache with fastboot, and while this was also successful, it also has not had an effect.
Has anyone seen this happen before?
Edit:
I've installed PhilZ recovery, and it no longer reboots immediately after booting to recovery. However, each time it starts, it gives a series of "E: Can't Mount /cache/recovery"...etc.
When I try to wipe data in PhilZ, it reboots again. I've tried reflashing PA, but it gave me a "E: failed to set up expected mounts for install; aborting".
Click to expand...
Click to collapse
Had that exact same issue as you. What version of twrp were you running when the issue started? Also, did you make any firmware upgrades or downgrades recently?
I ended up just running an RUU and starting over. I was able to adb pull all my files from internal sd card before i ran it.
mattprice86 said:
Had that exact same issue as you. What version of twrp were you running when the issue started? Also, did you make any firmware upgrades or downgrades recently?
Click to expand...
Click to collapse
I was using a version of TWRP that had been bundled with a previous version of Viper that was supposed to have been newer, but was actually 2.7.0.1. I updated to the newest (2.8.0.3) from the TWRP site through fastboot, but that didn't change anything. I had somewhat recently updated to the 3.xxx.xxx.7 firmware, but had flashed other roms since that without issue.
BerndM14 said:
The apps will be there if you restored without making changes to the data partition which contains the your userdata. I've converted and changed over from International to Developer edition quite a few times now and not once in all those times did I lose my data, I just never restored the data partition.
Click to expand...
Click to collapse
I did a factory reset (cache, Dalvik, data) before attempting the nandroid restore.
It looks like TWRP failed to actually do the reset in the first place, which caused it to get hung up thinking that the storage was actually being used.
OMGMatrix said:
I did a factory reset (cache, Dalvik, data) before attempting the nandroid restore.
It looks like TWRP failed to actually do the reset in the first place, which caused it to get hung up thinking that the storage was actually being used.
Click to expand...
Click to collapse
Doesn't matter mate, if you restore the data partition the backup that you made of data gets restored, period. It'll be another issue worth interest if you deselected "data" while doing the restore. As you clearly stated yourself, you did a factory reset(wipe all) BEFORE you did the nandroid restore(In which case you might have restored "Data" as well), in that case the factory reset doesn't matter at all. If you did it after you restored then, again, it's something different.
BerndM14 said:
Doesn't matter mate, if you restore the data partition the backup that you made of data gets restored, period. It'll be another issue worth interest if you deselected "data" while doing the restore. As you clearly stated yourself, you did a factory reset(wipe all) BEFORE you did the nandroid restore(In which case you might have restored "Data" as well), in that case the factory reset doesn't matter at all. If you did it after you restored then, again, it's something different.
Click to expand...
Click to collapse
I don't think you understand.
The restore never happened. It rebooted before anything happened when I told it to restore. Nothing got restored.

Bootloop after restoring a nandroid backup

I made a backup of my 5x when it was running rooted/xposed 6.0.1 but then decided to update to 7.1.1 to try out the new features. But now I really miss a lot of xposed modules so I decided that I want to restore my 6.0.1 backup that I made a couple of weeks ago. So I flashed the 6.0.1 factory image from Google's developer website and was able to successfully boot into Marshmallow again. However after installing TWRP I tried restoring the backup (through USB OTG) after wiping system and cache and a doing factory reset but it pauses on "restoring system image" for a brief moment then proceeds to reboot by itself despite that it's only 27% complete. The reboot however does not go to completion and so the phone is stuck in a bootloop. I'm really not sure where the problem is here. Is it TWRP? Or the backup file? What can I do?
Which version of TWRP have you used? By any chance the backup also contained EFS?
marioemp2k7 said:
Which version of TWRP have you used? By any chance the backup also contained EFS?
Click to expand...
Click to collapse
I used version 3.0.2-2.
And isn't EFS supposed to be backed up anyway? I just checked the backup folder and it contains 4 files that begin with "efs". Should I delete those and try again?
Format everything from TWRP except internal storage. Restore your backup without EFS. Next time you want to come back to another version just be sure that you also backup the vendor or you flash the vendor corresponding to the version you're restoring beforehand.
marioemp2k7 said:
Format everything from TWRP except internal storage. Restore your backup without EFS. Next time you want to come back to another version just be sure that you also backup the vendor or you flash the vendor corresponding to the version you're restoring beforehand.
Click to expand...
Click to collapse
I made the backup while I was running 6.0.1 and I flashed the 6.0.1 factory image so they both should have the same vendor image.
I also tried wiping everything except for internal storage and I unchecked "EFS" when restoring the backup but the same problem still persists, the phone automatically reboots itself before the restoring is complete and gets stuck in a bootloop. I'm not sure where the problem is at this point. I guess I'll just have to start from scratch again

Boot loop after updating rom

So I've been using this phone for a few months and love it. The only issue I have is that when I update a ROM, regardless of which one it is, it bootloops and I have to start fresh.
What happens is that the phone works, I make a nandroid backup, flash rom, gapps, and magisk. When I reboot, it stays on the MI logo and reboots to recovery. The only way to fix it is by using FORMAT DATA, which wipes the phone clean and boots to the last rom that was flashed with it.
Thinking it was an issue with the ROM (crDroid), I reflashed it with Nusantara and it booted just fine. When I went back into recovery, to restore data and apps, it went smooth until reboot. After reboot, it sticks on MI logo and reboots into recovery.
Something in my DATA is causing a recovery bootloop. Has anyone else experienced this? This makes me not want to update my ROM if I have to painstakingly restore apps, from nandroid backup, using the outdated TitaniumBackup.
What am I doing wrong here?
Is there a better way to restore data from the nandroid backup?

Categories

Resources