Unable to flash anything in Moto G5 Plus - Moto G5 Plus Questions & Answers

I decided to install a custom ROM in my device and what I did was wiped all partitions except 'Micro SD Card' and 'USB OTG', after that I formated data and it wiped all files in my device. Then I tried to flash the custom ROM but I was unable to flash it and an error message pops up - "failed to mount '/cache' (no such device)." I again tried wiping the partitions and all the partitions gets wiped easily exept the cache partition and the same error message pops up. Also whenever I try to restart into recovery, everytime it shows a message "No OS Installed! Are you sure you wish to reboot?"
So please help me out with this problem I can't flash anything at all

engtika said:
I decided to install a custom ROM in my device and what I did was wiped all partitions except 'Micro SD Card' and 'USB OTG', after that I formated data and it wiped all files in my device. Then I tried to flash the custom ROM but I was unable to flash it and an error message pops up - "failed to mount '/cache' (no such device)." I again tried wiping the partitions and all the partitions gets wiped easily exept the cache partition and the same error message pops up. Also whenever I try to restart into recovery, everytime it shows a message "No OS Installed! Are you sure you wish to reboot?"
So please help me out with this problem I can't flash anything at all
Click to expand...
Click to collapse
TWRP version? Have you tried to flash Disable_Dm-Verity_ForceEncrypt_12.16.2018.zip
to prevent the device from encrypting itself?

Wolfcity said:
TWRP version? Have you tried to flash Disable_Dm-Verity_ForceEncrypt_12.16.2018.zip
to prevent the device from encrypting itself?
Click to expand...
Click to collapse
I'm using TWRP v3.2.3-1 and I've flashed that zip but still the cache partition doesn't gets mount.

anyone have idea, im also experiencing the same issue. I was trying to root, and it wasnt taking it on my Moto G5 Plus, so i wiped everything except the same stuff, and then after that, any time it tries to mount the cache it fails. It wont mount at all, refuses to check the box. This is my log when i try to wipe the cache only now.
Failed to mount '/cache' (No such device)
Updating partition details...
Failed to mount '/cache' (No such device)
...done
Full SELinux support is present.
MTP Enabled
Failed to mount '/cache' (No such device)
E:Unable to wipe '/cache' -- unknown file system 'auto'
Unable to wipe /cache.
Updating partition details...
Failed to mount '/cache' (No such device)

Nevermind, I got it solved,, must have been caught trying to get to the OS, and looping cause there was not OS, and messing things up. Had to make sure i was holding the buttons to go to boot loader every time, but got it working.

Related

[Help] OnePlus 2 encryption unsuccessful (phone internal storage damaged)

so, I have a Oneplus 2 phone that is 5 months old... I wanted to root it so in 10th December, I downloaded and flashed supersu (I have TWRP and bootloader working C: ) but When I rebooted, It was boot looping (does that make sense) so I backed up data and did a factory reset, still the boot loop, so I decided to do an advanced wipe but when I was choosing which to wipe I accidentally wiped the whole internal storage, I realized it later when I rebooted, the boot was not showing up, just the oneplus 2 logo :c
so I decided to download Oxygen OS, GAPPS ARM64 6.0 STOCK.
after downloading them I copied them to oneplus 2 by TWRP (thank god)
then I installed them, after installing, The boot logo was working, when it finally booted it said encryption error: internal storage damaged and some other text
so What should I do?
install a new rom? buy a new phone (hopefully not)
Projonmo112 said:
so, I have a Oneplus 2 phone that is 5 months old... I wanted to root it so in 10th December, I downloaded and flashed supersu (I have TWRP and bootloader working C: ) but When I rebooted, It was boot looping (does that make sense) so I backed up data and did a factory reset, still the boot loop, so I decided to do an advanced wipe but when I was choosing which to wipe I accidentally wiped the whole internal storage, I realized it later when I rebooted, the boot was not showing up, just the oneplus 2 logo :c
so I decided to download Oxygen OS, GAPPS ARM64 6.0 STOCK.
after downloading them I copied them to oneplus 2 by TWRP (thank god)
then I installed them, after installing, The boot logo was working, when it finally booted it said encryption error: internal storage damaged and some other text
so What should I do?
install a new rom? buy a new phone (hopefully not)
Click to expand...
Click to collapse
Go to advanced wipe and format data
Confirm and do not tell me that you have data there. I'm assuming you have already made the necessary backups. This is the only way to fix it
anupritaisno1 said:
Go to advanced wipe and format data
Confirm and do not tell me that you have data there. I'm assuming you have already made the necessary backups. This is the only way to fix it
Click to expand...
Click to collapse
I don't have the backup :c
is there any way to fix it without a backup?
anupritaisno1 said:
Go to advanced wipe and format data
Confirm and do not tell me that you have data there. I'm assuming you have already made the necessary backups. This is the only way to fix it
Click to expand...
Click to collapse
I don't have the backup
halp meh pls
I flashed cm 13, Now in a boot loop :/
I then went to stock rom, still the unsuccessful encryption
sorry I am a noob :c
Projonmo112 said:
I don't have the backup
halp meh pls
I flashed cm 13, Now in a boot loop :/
I then went to stock rom, still the unsuccessful encryption
sorry I am a noob :c
Click to expand...
Click to collapse
Format data
Any solution?
anupritaisno1 said:
Format data
Click to expand...
Click to collapse
I was talking on a phone and suddenly my OP2 got restarted and what I see is "Encryption Unsuccessful".
I don't know what has gone wrong, maybe when on call it just got mistakenly browsed into encryption option or something?
I am on Oxygen OS 3.5.6 and rooted with TWRP 3.0.2-2.
Now whenever I boot my phone it shows
"Encryption unsuccessful
Your phone storage has been damaged, please download the firmware package to brush".
It appears that some part of OS is loaded because when I change the volume the android styled indicator bar and the settings gear appears but nothing happens when I tap it.
I entered TWRP to erase data (again because I'm sure had checked it) and it says (in red):
E:Unable to load '/twres/languages/en-US.xml'
Could not mount /data and unable to find crypto footer.
Failed to mount '/cache' (Invalid argument)
Failed to mount '/cache' (Invalid argument)
...done
Unable to mount storage.
Failed to mount 'data' (Invalid argument)
Failed to mount '/cache' (Invalid argument)
Full SELinux is present.
Failed to mount '/cache' (Invalid argument)
Failed to mount '/cache' (Invalid argument)
Unable to mount /data/media/TWRP/.twrps
MTP Enabled
Failed to mount '/data' (Invalid argument)
Formatting cache using make_ext4fs...
Failed to mount '/cache' (Invalid argument)
Updating partition details...
Failed to mount '/data' (Invalid argument)
Failed to mount '/cache' (Invalid argument)
...done
Unable to mount storage
When I go to Wipe / Repair File System selecting Data partition it shows me:
Present: Yes
Removable: No
Size 0MB
Used: 0MB
Free: 0MB
Backup Size: 0MB
When I select Internal Storage and tap Repair or Change File System it says Invalid partition selection (in red).
Tried this: https://forum.xda-developers.com/one...oos-3-t3402020
but I am stuck at recovery tool. After clicking the square button it shows ok and then pressing start it starts some procedure and then stuck on something called FirehoseCheckRSPE and some Chinese thing written ahead of it.
https://drive.google.com/file/d/0B_l...ew?usp=sharing
Tried fastboot comands to check whether it works and it does work.
Like when entered comand fastboot devices, it does shows the device.
I tried to flash stock recovery by --> fastboot flash recovery recovery.img
It succeeds like this
target reported max download size of 536870912 bytes
sending 'recovery' (17013 KB)...
OKAY [ 0.400s]
writing 'recovery'...
OKAY [ 0.086s]
finished. total time: 0.490s
But when i restart to recovery it still shows TWRP.
What should I do?
I just need my phone to work.
Please help me out
I really don't know how it even happened suddenly.
Thank-you in advance.

Help! Innjoo Spreadtrum sc7731 - failed to mount cache (invalid argument)

I'm having issues booting into my innjoo device.
It all started one morning, I woke up and saw some errors on my screen like (android.process has stopped working) I switched off the phone and turned it back on, but it got stuck on the innjoo logo and never booting up.
I decided to boot into recovery, where I encountered a list errors saying
(E: failed to mount /cache - invalid argument)
(E: cant mount /cache/recovery/log)
(E: cant open /cache/recovery/log)
And some other similar errors.
Choosing the wipe cache partition and the factory format option resulted in the same error. Which led me to believe my internal memory may be corrupted somehow (the data partition perhaps).
Is there a fix for this? And does anyone know of a way to correctly partition an Sdcard so it can be bootable and recognised by the device?

How to root a S8 G950F Exynos with failed integrity verification without wipe ?

Dear all,
I tried since yesterday to root my S8 Exynos (G950F). My phone is crypted and when I try to root with magisk via TWRP, I have errors to access to datas. When the system boot, I have the error unable to restart your phone. the integrity verification has failed....
Then via TWRP and the shell, I made a copy of the userdata partition on my computer (the crypted partition), then I wiped my phone, I flashed the DM Verify Disabler and then Magisk via TWRP, until then, no problem, I was root but with an empty phone.
There, I uploaded my copy of userdata partition into my S8, I boot the system and always the same error of integrity verification failed...
Now, my phone works always good (I flash the stock ROM via ODIN) but I haven't yet the root.
Is there a way to root the S8 without lost the datas ? A kind of APK or something else ?
Kind regards,
Lau
lolo1410 said:
Dear all,
I tried since yesterday to root my S8 Exynos (G950F). My phone is crypted and when I try to root with magisk via TWRP, I have errors to access to datas. When the system boot, I have the error unable to restart your phone. the integrity verification has failed....
Then via TWRP and the shell, I made a copy of the userdata partition on my computer (the crypted partition), then I wiped my phone, I flashed the DM Verify Disabler and then Magisk via TWRP, until then, no problem, I was root but with an empty phone.
There, I uploaded my copy of userdata partition into my S8, I boot the system and always the same error of integrity verification failed...
Now, my phone works always good (I flash the stock ROM via ODIN) but I haven't yet the root.
Is there a way to root the S8 without lost the datas ? A kind of APK or something else ?
Kind regards,
Lau
Click to expand...
Click to collapse
You need to reflash twrp in odin and boot into recovery (TWRP) before the phone boots the system. Id uncheck auto reset in odin and when its done flashing twrp again boot right into it. From there you want to select to keep the system read only, and then flash the DM Verity Disabler. After thats done flashing, your phone should boot up normally without seeing the integrity failed message. Its important that you boot right into twrp (recovery) after odin flashes it, if not you need to reflash twrp in odin until you successfully get into recovery before it boots your system.
I just tried 2 times this procedure, when I flash the no-verity-opt-encrypt-5.1, I have several error messages like Failed to mount '/data' (Invalid argument) or Unable to recreate /data/media folder or Unable to mount storage and Unable to mount /data/media/TWRP/.twrps.
When I boot up the phone, I have the same error of integrity failed message and I have to flash a stock system and boot img
lolo1410 said:
I just tried 2 times this procedure, when I flash the no-verity-opt-encrypt-5.1, I have several error messages like Failed to mount '/data' (Invalid argument) or Unable to recreate /data/media folder or Unable to mount storage and Unable to mount /data/media/TWRP/.twrps.
When I boot up the phone, I have the same error of integrity failed message and I have to flash a stock system and boot img
Click to expand...
Click to collapse
You have to wipe data otherwise it won't boot, there's no way round this unfortunately
lolo1410 said:
I just tried 2 times this procedure, when I flash the no-verity-opt-encrypt-5.1, I have several error messages like Failed to mount '/data' (Invalid argument) or Unable to recreate /data/media folder or Unable to mount storage and Unable to mount /data/media/TWRP/.twrps.
When I boot up the phone, I have the same error of integrity failed message and I have to flash a stock system and boot img
Click to expand...
Click to collapse
Previous poster is correct. Wipe>Format data>yes> in twrp then you should be good to go.

[BUG][SOLVED][WORKAROUND] TWRP starts with no menu, runs script, crashes, repeat (Axon 7 mini)

Hello,
im new to this Forum. I try my best to give all the information i have.
What happened?
I tried to install the project /e/ os on my axon 7 mini. First I unlocked my phone with tuliptool in edl mode. I found the twrp recovery-image for my device in this guide (https://www.getdroidtips.com/root-twrp-zte-axon-7-mini-magisk/#Download-Files) flashed it with tuliptool to the recovery partition and it worked. But it broke my stock android rom. I only can boot intro twrp - i cant boot android (only shows zte android title screen). Then i installed the unofficial /e/ port for my device with twrp and it worked. Then i thought i could unroot my phone with tuliptool (i dont know why atm i thougt it will be a good idea) so i ran tupliptool lock unlock and my device was locked again. Now i only can access twrp so i undo the locking. After wiping the data partition with twrp, /e/ startet again. Then i thought that wiping the data partition would solve the issiue with not loading /e/ while locked, therefore i gave it an other try. Locking my phone again, wiping partition with twrp and... nothing. So i gave up and wanted to use my phone again so i unlocked it again.
Whats the problem?
Now I only can access twrp, but it wont show the menu. It just autostarts a script and there are no buttons. The script failes after ~10 seconds and the device crashes (error message below). It trys to boot up but fails, so it loads into recovery -> starts twrp -> runs this script -> crashes and so on. Now i cant do anything. It reboots all the time.
What can I do?
As said, twrp starts but with no menu. I have access to edl mode so i rewrote the recovery partition. This does not change anything. I can access my device with adb while it loads twrp. I have a time window about 10-15 seconds until it reboots. Fastboot does not work. (Not available or locked on Axon 7 mini?) If i try "adb reboot bootloader" my phone just reboots into android (well it did before flashing, now its stuck in the loop.) From searching this forum i think i should reformat the partitions, but i dont know how because i dont have access to the twrp menu. If you need more informations like a dump or something, tell me how to do it.
The Error:
As i dont know how i could dump it from my phone to my PC, i had to manual type the Error here...
$Begin
Data successfully decrypted, new block device: '/dev/block/dm-0'
Updating partition details...
...done
Unable to mount storage
Successfully decrypted with default password.
Updating partition details...
...done
Unable to mount storage
Unable to mount '/data' (Invalid argument)
Full SELinux support is present.
wipe_data_via_recovery
Unable to mount /data/media/TWRP/.twrps
Running Recovery Commands
Failed to mount '/data' (Invalid argument)
Formatting Cache using make_ext4fs...
Done processing script file
Failed to mount '/data' (Invalid argument)
Failed to mount '/data' (Invalid argument)
$end
This runs fast until "Done processing script file". There it waits for ~3 Seconds. Then the last two lines show up and it crashes immediately.
Ok i found a solution - it worked for me but i dont know why. Its not intuitive but hey, its a workaround.
The problem was twrp couldnt startup anymore because the data partition was currupted (not confirmed, but i guess it was currupted). If you follow any guide, they tell you to go to wipe data inside of twrp and wipe (and reformat) the partition. This wont work in this case, because the corrupted partition causes twrp to crash. Its the script in the post above.
To fix this i used adb while twrp was starting up
Code:
adb shell recovery --wipe_data
This alone wouldnt solve the issue, but it will buy some time. After twrp loads again, you will see the main menu of twrp for a couple of seconds. The time you have on the menu is very limited (5 seconds max) before the script that will crash twrp starts executing. In this time window i managed to set twrp to write mode and initiated the wipe of /data. If you get this far, both scrips (wipe data and open recovery script) will execute, the screen will switch between both of them very fast. After a few seconds it will crash again, but the wipe data script could reformat the data partition properly. After this twrp will work like normal.
I don't know if this problem is specific to my device or model. I dont know if this is recreatable. Im glad i fixed it after five long days, im not willing to sacrifice my device again. I dont know if this is a twrp bug or what happened exactly. If anyone had a clue or needs more informations i will provide them. At least I found a workaround.

H870 twrp cannot mount data issue

I've had my leg h870 rooted for a few years now and I have the bliss 12.4 ROM installed, I'm now trying to update to 12.8 via twrp but it won't allow me to mount /data.
I keep getting the error "could not mount /data and unable to find crypto footer"
I have formatted data in twrp and rebooted into recovery, this allowed me to access the /data partion but once I've booted into system and go back into recovery it won't allow me to mount /data again with the same error I've also tried factory reset via the system but this also won't work.
Does anybody know anything I can do to fix this issue?
twrp is broken, lg bridge worked for me (restock via update error fix)

Categories

Resources