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:
Shut down the phone.
Booted the phone into the fastboot mode. (Pow + Vol Down)
On PC (through USB cable) I ran these commands:
fastboot oem unlock
-> which asks for an agreement and deletes the whole systemfastboot flash recovery Downloads/twrp.img
- I had the file renamed and it was located in the Downloads folder
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?