Unable to boot after unlocking bootloader and installing TWRP - Nexus 7 (2013) Q&A

Yesterday I decided to root my Nexus 7 2013 Wifi running stock 6.0.1 (build MOB30X). I first unlocked the bootloader, then immediately after that I flashed TWRP (twrp-3.0.2-0-flo.img). When I booted up, it would got stuck on a loop with TWRP running OpenRecoveryScript, saying something about unable to mount /data and renaming something, then reboot into TWRP again.
I did some research and it seemed I had to use a multirom TWRP version instead, so I went ahead and flashed it. Now I can go into TWRP, but when booting up I got stuck in the booting animation (the four spinning circles)
How can I fix this?

chinhodado said:
Yesterday I decided to root my Nexus 7 2013 Wifi running stock 6.0.1 (build MOB30X). I first unlocked the bootloader, then immediately after that I flashed TWRP (twrp-3.0.2-0-flo.img). When I booted up, it would got stuck on a loop with TWRP running OpenRecoveryScript, saying something about unable to mount /data and renaming something, then reboot into TWRP again.
I did some research and it seemed I had to use a multirom TWRP version instead, so I went ahead and flashed it. Now I can go into TWRP, but when booting up I got stuck in the booting animation (the four spinning circles)
How can I fix this?
Click to expand...
Click to collapse
Just run these two commands:
Code:
fastboot format cache
fastboot format userdata
Don't worry, you have lost all your data already while unlocking it.
The first boot and the booting animation will be initially longer than usual.
Incidentally, no need to use multirom-TWRP anymore because TWRP v3+ has been properly updated.

I actually solved this myself before k23m's reply by flashing the stock rom (MOB30X), then completed the initial setup, then reflashed TWRP (twrp-3.0.2-0-flo.img, not the multirom version). After that I booted up then restarted into recovery but then realized that TWRP had been wiped (only the android with the red triangle showing). So I re-flashed TWRP again and this time rebooted directly into recovery, and renamed the file recovery-from-boot.p into recovery-from-boot.backup. Then I flashed su and all went well.

k23m said:
Just run these two commands:
Code:
fastboot format cache
fastboot format userdata
Don't worry, you have lost all your data already while unlocking it.
The first boot and the booting animation will be initially longer than usual.
Incidentally, no need to use multirom-TWRP anymore because TWRP v3+ has been properly updated.
Click to expand...
Click to collapse
Thank you for the hint!

Related

Bootloop after downgrade from L Preview..

Hey, I have an issue with my tablet after I wanted to go back to kitkat from the L Preview.
I had 4.4.4 and decided I'd like to try out the L preview
So I downloaded the img from Google and flashed it via fastboot, worked perfectly fine but not as stable in apps as it was on kk.
So, I downloaded the latest factory image from the Google Developer Site, extracted it and ran the flash_all.bat
Seemed to flash ok, no errors, rebooted and started to boot but it only goes as far as the spinning boot logo. No further.
After leaving it a good hour or so I decided it clearly wasn't going to boot I went back into the bootloader and tried to get into stock recovery mode but after rebooting it just stays at the white Google logo..
So, I tried to flash TWRP via fastboot. Again no errors, successful flashed but just like before it sticks at the Google logo and never boots the recovery..
I even tried the "fastboot boot recovery.img" but then it just freezes on the bootloader.
I've also tried the 4.4.3 img.. same happens.
Now if I reflash the L Preview img via fastboot it sticks at the Google logo and didn't even reach the boot logo!
Sounds to me like the partitions have gotten corrupt? Though the imgs are flashing successfully without error so I don't think it's that..
But.. recovery partition is broken as I can't get into recovery at all, and it freezes if I try.
Anyone any idea what could have happened?
All I did was flash the KK factory image over L, just like I flashed L over KK and it worked fine.
All the guides online do the same thing to downgrade L to KK.
Is it bricked? Can it be recovered?
I still have bootloader access with fastboot..
Any help is greatly appreciated!
I finally managed to enter the stock recovery and it appears that the /cache partition was damaged or corrupt. Strangely it would get corrupted each time I flashed the factory image, even flashing the cache.img directly..
However it seems to have fixed by doing a factory reset and /cache then formats correctly and android booted fine after this :victory::laugh:
As you see in the image, when entering recovery I was presented with a bunch of errors regarding the cache.
Tried to wipe cache but that fails.
Did a factory reset and cache seemed to format fine.
Did another wipe cache and this time it completes without the error I got before.
Then rebooted, Android began booting and thankfully it's now working fine again!

[Q] Unable to mount /data

Hi,
I've just tried and failed to install the "cm-12-20150218-NIGHTLY-nicki" ROM on my phone. Specs are:
Official Android 4.3 Firmware
Model: C1904
Timeline:
Unlocked bootloader according to instructions at http://forum.xda-developers.com/showthread.php?t=2484428
Phone then got stuck in official boot animation (the colourful one)
Didn't bother flashing the "Elixer" kernel as suggested in above thread
Used fastboot to flash the boot.img from the CM zip file
Booted to recovery
Wiped data & cache
Flashed CM & GApps from external SD card
Restarted phone
Phone showed big Android robot animation and then went back to CyanogenMod Recovery
Looking at logs showed "Cannot load volume /misc" error
Found a forum post saying this thread helped with the above error: http://forum.xda-developers.com/xperia-m/development/cwm-twrp-recoveries-cm12-lollipop-t2979752
Tried flashing TWRP recovery (http://forum.xda-developers.com/xpe...very-cwm-twrp-recoveries-custom-roms-t3016507) within CyanogenMod Recovery, but it said the file integrity was bad or something
Used "fastboot flash boot FOTAKernel.img" to flash the above, which worked
Tried to wipe data from within TWRP, but got "failed to mount /data" errors
So the phone is now in a state where:
I can only boot into TWRP
I can't use ADB since the program on the computer won't detect the phone
Fastboot still works
I can't boot into Android
Something seems wrong with "/data"
Any ideas about where to go from here?
I was able to use Flashtool to flash the official firmware back on and boot into it as normal. After doing that and restarting the procedure to install CM12 2015-02-19, this time it installed just fine.
Although I still got errors about "Cannot load volume /misc". Hopefully they don't matter...
Now you have CM12 installed and it is working?
Had the same errors when I tried to flash CM12. Flashing CM11 worked fine but I could not get CM12 to boot...
xa.fr said:
Now you have CM12 installed and it is working?
Had the same errors when I tried to flash CM12. Flashing CM11 worked fine but I could not get CM12 to boot...
Click to expand...
Click to collapse
Yeah; it's installed and working fine. When I flashed the official firmware, (Android 4.3) I told Flashtool to flash everything including the kernel. That seemed to put the phone back into a good state, which allowed me to install CM12.
I'm not sure what caused the problem in my case. Maybe it was unlocking the boot loader.

twrp causes bootloop

Hey everyone, i got a neat little problem with my one X.
I wanted to install Resurrection Remix LP v5.5.0 according to this Thread.
So first of all I flashed twrp 2.6.3.0 to my phone and tried to install RR 5.5.0., which threw me an error (because of layout differences).
I moved on by flashing another recovery twrp2811.BiG to my phone and booted into it, np. So i wiped everything, I think it was the advanced wipe option, I ticked every checkbox and swiped to wipe.
After a short time my phone blackscreened back into the bootloader and when I tried to enter recovery again, it displays the twrp logo for a short time, then crashes and reboots.
Since theres no Android to boot, it repeats it's bootloop. I tried flashing twrp2853-BiG, twrp-2.6.3.0-endeavoru,twrp-2.6.1.0-endeavoru. Fastboot flashes the recoveries and right before my phone restarts it even shows the correct "recovery splash screen" according to the current recovery image flashed.
When I flash recovery-clockwork-touch-6.0.4.8-endeavoru and boot into recovery everythin works, but I can't manage to mount my USB storage anymore.
But that almost doesn't matter since I need twrpXXXXBiG to flash the latest Resurrection Rom, but I cant get any twrp recovery back to work (erase cache didn't help at all).
Lip0ly said:
Hey everyone, i got a neat little problem with my one X.
I wanted to install Resurrection Remix LP v5.5.0 according to this Thread.
So first of all I flashed twrp 2.6.3.0 to my phone and tried to install RR 5.5.0., which threw me an error (because of layout differences).
I moved on by flashing another recovery twrp2811.BiG to my phone and booted into it, np. So i wiped everything, I think it was the advanced wipe option, I ticked every checkbox and swiped to wipe.
After a short time my phone blackscreened back into the bootloader and when I tried to enter recovery again, it displays the twrp logo for a short time, then crashes and reboots.
Since theres no Android to boot, it repeats it's bootloop. I tried flashing twrp2853-BiG, twrp-2.6.3.0-endeavoru,twrp-2.6.1.0-endeavoru. Fastboot flashes the recoveries and right before my phone restarts it even shows the correct "recovery splash screen" according to the current recovery image flashed.
When I flash recovery-clockwork-touch-6.0.4.8-endeavoru and boot into recovery everythin works, but I can't manage to mount my USB storage anymore.
But that almost doesn't matter since I need twrpXXXXBiG to flash the latest Resurrection Rom, but I cant get any twrp recovery back to work (erase cache didn't help at all).
Click to expand...
Click to collapse
Just had an similar issue,
Try flashing first boot.img from the rom you will flash
then flash the recovery twrp big
then do the wipes ..
then flash boot.img and then rom
I thought this worked for me. (i flashed with the unboxed rom)
Just tried it, didn't work for me.
Bump

Stuck at Logo after flashing rom [fixed] > solution!

Edit: solution added
problem:
after flashing a rom (in my case OP3lite or FreedomOS) you can't get past the boot logo
you have access to TWRP, so you can restore nandroid or flash flashable stock OxygenOS packages (tutorial here)
solution:
wipe: Dalvik /ART Cache, Cache, Data, System
flash your rom
try to boot (most likely will get stuck at boot logo)
boot into TWRP > Advanced > Fix Contexts, and swipe to Fix Contexts
Reboot
(wait a while, it might take a few minutes till it boots)
___________________________________________
original post:
hi,
I'm running official OxygenOS 3.1.3.
Rooted (systemless) , TWRP installed.
I don't have any problems on my rom, but everytime I flash a rom I get stuck at the boot logo.
I can just force reboot, goto twrp and restore my nandroid backup, and my phone works fine again.
But I can't flash any rom.
tried this:
Dirty flash OP3Lite rom - stuck at boot logo
wipe and install OP3Lite rom - stuck at boot logo
Restored nandroid backup, factory format, wipe and install OP3Lite rom - stuck at boot logo
wipe and install FreedomOS - stuck at boot logo
Restored nandroid backup, factory format, wipe and install FreedomOS - stuck at boot logo
wipe, Format userdata throught fastboot, install FreedomOS - stuck at boot logo
update to OxygenOS 3.2.1 (flashable zip throught twrp)
wipe and install FreedomOS - stuck at boot logo
Both roms I tried are OxygenOS 3.2.1 stock based, my problem is most likely not due to the rom I want to flash.
Anyone knows a solution for this?
is it possible that systemless root causes this problem?
are you encrypted? that might be the issue.
backup your internal sd data then go to fastboot and fastboot format userdata then flash the rom you want
Abaddon said:
are you encrypted? that might be the issue.
backup your internal sd data then go to fastboot and fastboot format userdata then flash the rom you want
Click to expand...
Click to collapse
I never did format my userdata throught fastboot, so I might be encrypted.
I'll try tomorrow and let you know if that was the solution.
@Abaddon I format my userdata throught fastboot (fastboot format userdata), but still roms wont go past the Logo . any other idea?
did you full wipe?
wiped /system too before flashing a rom then u go and flash the rom + gapps if needed
how long was it at the boot logo? no animation correct?
did u advance wipe - data, caches, system instead of factory wipe, try it 3 times
I did a few wipe 3 times, still stuck at logo.
I get stuck on this logo, never reboot, just get stuck there.
I noticed that it does flash the rom, cause if I restore my nanodroid backup layers and adblock is added.
I also get zero error while flashing in twrp.
I fixed it .
did a fill whipe, then flashed feedomOS, then tried to boot, didnt get past the logo, booted into recovery, selected "fix Contexts" and then rebooted, started without any problem .
doesent work for me..!! any help
Same here this issue keeps occuring again and again. then i always have to follow mega unbrick guide
Resurrection ROM 7.1.1 stuck at logo after every restore
nikhilsnigam said:
Same here this issue keeps occuring again and again. then i always have to follow mega unbrick guide
Click to expand...
Click to collapse
Faced this issue every time I restore any nandroid on one plus 3. It stucks at rotating resurrection logot . Even tried fix contents from TWRP, no output. Please help without a functional TWRP backup and restore - phone is useless. Only everytime mega unbrick guide needs to be repeated with painful reinstall of apps
hello guys. sorry if I'm a bit slow on this topic. I'm using the the op3t A3010 version (not dure whether I'm at the right forum or not lol) Recently I updated my phone to the new 4.1.7, in which I had already rooted the phone before with magisk v12. But right after the update, as usual, the phone will unroot and yes I did root the phone back by using the magisk v13.0 version. But it failed the safety net. So after a few 'research', I installed the superuser just in case that the safety net will work this time. But this is when it all went wrong. The phone did restart back to factory settings, but the phone is not rooted (checked by using the rootchecker app) So again, I'm back to the twrp recovery, clean wipe all the data, with hope that I can start from scratch which is from installing the magisk all over again. But after this step, it stuck at the boot logo for like more than half an hour. Than at this moment, I restart my phone back to recovery mode by long pressing the power button, and when I try to install both the magisk 12 and 13 version, there is a line of error code on the screen. There's a site that says simply go to the advance setting on the twrp interface, check fix contents and ur phone will be as good as new. After done doing that, I'm now stuck with a phone with no os installed and about 38% battery left. Can anyone help me here? This is the only phone that I had :crying: Urgent help needed here guys
Unless your original installation is without storage encryption (no dm-verity) this will happen. So next time install custom rom after flashing OB22 firmware+modem, then boot patch for dm-verity followed with custom rom and gapps then boot without wipe
i have the same problem but with p9 lite : when i tried a flash lineageOS or ResurrectionRemix my phone stucks at boot logo and when i flash the original os my phone works perfectly
sorry for my english
washichi said:
I fixed it .
did a fill whipe, then flashed feedomOS, then tried to boot, didnt get past the logo, booted into recovery, selected "fix Contexts" and then rebooted, started without any problem .
Click to expand...
Click to collapse
How long did you wait?
washichi said:
Edit: solution added
boot into TWRP > Advanced > Fix Contexts, and swipe to Fix Contexts
Reboot
(wait a while, it might take a few minutes till it boots)
Click to expand...
Click to collapse
What is the work around for CWM v6.0.5.1 Philz Touch6; it does not have Fix contexts under Advanced Functions
My issue: Tecno Spark K7 stuck at boot logo after flashing with ported ROM from Infinix XOS Chameleon . Both kernels match
This is EXACTLY my issue with the galaxy s9 plus. Gonna try the solution you wrote tommorow.
i have the same problem with galaxy s5 and the solution mentioned in the thread did not work with me.
im having the same issue but in lenovo z5 pro gt
PauloVillaflor said:
im having the same issue but in lenovo z5 pro gt
Click to expand...
Click to collapse
Search for answers HERE and if not successful, create a thread in the Q&A forum there.
You may not get any help here since this is the OP 3 forum.

Help with TWRP please

Hello,
I have a nexus 7 2013 and have just flashed twrp 3.0.2-0 recovery and have a problem.
I used adb to go to bootloader, and then unlocked it
flashed recovery image then used fastboot reboot.
tablet starts, shows teamwin startup page, goes to screen "Running openrecovery script"
then after a few seconds reboots and then the whole process repeats.
any ideas?
ok, so here is how i fixed it.
extracted recovery.img from the stock image (MOB30X) and reflashed it to the device, restarted and set up as new.
reflashed TWRP and it restarted ok.
have since flashed Nougat rom and gapps (so far so good).

Categories

Resources