Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TWRP constantly crashing and rebooting back

My phone (Nexus 5) is constantly rebooting to the TWRP screen where it crashes, shuts down and repeats.

TWRP error:

Could not mount /data and unable to find crypto footer
Failed to mount '/data' (Invalid argument)
Unable to recreate /data/media folder.
Updating partition details...
Failed to mount '/data' (Invalid argument)
...done
Unable to mount storage
Failed to mount '/data' (Invalid argument)
Full SELinux support is present.
Running Recovery Commands
Failed to mount '/data' (Invalid argument)
Formatting Cache using make_ext4fs...
Done processing script file
Renamed stock recovery file in /system to prevent the stock ROM from replacing TWRP.
Failed to mount '/data' (Invalid argument)
Failed to mount '/data' (Invalid argument)

What I did before I broke it:

  1. Shut down the phone.

  2. Booted the phone into the fastboot mode. (Pow + Vol Down)

  3. On PC (through USB cable) I ran these commands:

    • fastboot oem unlock -> which asks for an agreement and deletes the whole system

    • fastboot flash recovery Downloads/twrp.img - I had the file renamed and it was located in the Downloads folder

  4. Rebooted to the Recovery mode (2x Vol Up and Pow)

So what am I supposed to do to successfully flash a custom recovery if not this way?

like image 591
Kesi Avatar asked Mar 04 '18 16:03

Kesi


1 Answers

I also faced with this issue and I found solution.

Go to bootolader and then execute:

fastboot -w

to wipe the data from the phone (it will erase all user data and internal storage)

after that go to recovery by calling:

fastboot reboot
like image 142
red Avatar answered Sep 18 '22 10:09

red