Can't boot after flashing ROM (Failed to mount /data) help pls - Huawei P9 Questions & Answers

Hi, so i was trying to install:
http://forum.xda-developers.com/p9/development/rom-ncs-rom-v1-1-08-16-2016-t3440269
I have unlocked bootloader and i have latest TWRP, i have no idea what went wrong but everytime i try to boot now it says encryption was interrupted and can't continue, and everytime i try to flash image or wipe everything it keeps saying unable to mount /data and /storage. I really have no idea what to do, any help would be appreciated, please.

Did you try to go in the recovery and mount the system from there? Or just format the phone and install the rom through sd card

well i tried flash again the ROM and it worked now, but i had to install TWRP revision 3 guess it fixes some encryption stuff?

Related

Cache Error

hi
Im having a lot of problems with my phone, I tried to load a new ROM, and I cant!!
Im using CWM 6.0.2.8
when I boot up it says
Cant Mount Cache/recovery/command
Cant Mount Cache/recovery/log
Cant Open Cache/recovery/log
Cant Mount Cache/recovery/last_log
Cant Open Cache/recovery/last_log
when I do a factory wipe, it gets stuck on
Formatting /cache
When I try to wipe/format the cache partition, it is the same story.
When I try to install a new rom, I get
image attached. CAN SOMEONE PLEASE HELP. Also some of my root software is corrupt.
What do I do?
I think I had same problem, wiping the cache part took quite long, but I eventually was able to install my new rom... though all my apps are still there, but at least part of the new rom is there (custom nav bar)
pretty much the same errors I got
ps: you're trying to flash cm 10.1, do you have a kernel for it ? read somewhere you shouldn't use CWM for flashing cm 10.1 with kernel ...
found it: http://forum.xda-developers.com/showthread.php?t=2167381
[ known issues ]
adb doesnt work in recovery (can be fixed)
USB storage doesnt mount in recovery (can be fixed, i think)
formating data partition WILL FORMAT THE INTERNAL STORAGE (FIXED IN v02)
external SDCARD is required to take backups and flashing ROM (FIXED IN v02)
do not use this for flashing CM10.1 (u will need to use the CM kernel for that)
that's what the link says, you need CM kernel for it

[GT-i9000] Unable to mount /system and /data and a few questions

I am working on Ubuntu 15.04 and I used the Heimdall suite to do the necessary flashing.
Before I start: I created this post to share my experience with trying to flash a custom ROM on the GT-i9000 and receive some suggestions, though my main concern is the fact that I am unable to mount /system and /data. And yes, I have read posts concerning this issues, but they were too vague, so I decided to write my own.
First I figured I should flash a custom recovery, so I tried flashing the latest CWM for the galaxysmtd in Download Mode and it appeared to have been successful, though when I pressed the 3-button-combo (UP-HOME-POWER), It would boot the default Android System Recovery.
I tried flashing a few CWM and TWRP recoveries (though I didn't try PhilZ Touch, because goo.im is down and I couldn't find a proper PhilZ Touch recovery anywhere else), though I noticed that none of them would work, even though the flash was successful. So I figured I could try flashing a kernel, which would include some recovery - and it worked, to my surprise, though after attempting to wipe a few folders, I got the error: unable to mount /system and /data.
So I came to realise that the only way for me to get a working custom recovery was to flash a kernel, which should include a working recovery. So I ended up flashing Mackay_kernel_0.692_twrp_CMC-signed.zip, which includes TWRP v2.8.0.0. The recovery seems to work fine, though the same error persists: unable to mount /system and /data.
I tried formatting /system and /data, though to no avail: it just forced the recovery to reboot (I have attached the recovery log to this post).
Any help is much appreciated!
I am glad to inform that I managed to resolve the issue by reverting to the stock firmware, ROM and kernel by using Odin v1.83. Though this leaves me with the default recovery, which isn't able to flash a 5.1 ROM.
I tried flashing a kernel with CWM and then flashing a 5.1 ROM with said CWM recovery by installing its .zip, though this method causes the same issue: unable to mount /system and /data.

Can access fastboot and Recovery, but cannot flash anything

Hello and greetings from germany,
I have a problem with my Moto G 2014 XT1068. I'm coming from rooted stock KitKat (Xposed) with open bootloader and TWRP 2.8.6.0. Everything seemed fine until yesterday, when the phone just went off (0% battery) and stayed at boot animation.
I've tried a lot of things, but the phone seems to be hardbricked:
- I can access recovery, but restoring does "FAIL" (restoring boot partition works, though). Restoring "system" aborts at about 18%, "data" immediately.
- I can access the phone through fastboot, but cannot flash anything. Whatever I do, the phone isn't changed. Tried reverting to stock (getting error when flashing gpt.bin, everything else seemed to work without errors, but no changes), tested flashing other recoveries (partition size mismatch, but that seems to be normal, whatever I flash, it keeps being TWRP 2.8.6.0), or even upgrade the bootloader (no errors reported at all, but no changes made to the phone).
- I can access the phone by MTP from TWRP, but cannot write to or delete anything from the internal SD.
Do you have any further ideas or is it an hardbrick?
Thanks in advance
René
Seems like the internal SD card is damaged, or there's a faulty partition table. Have you tried repairing and formatting /system and /data partitions with TWRP? Does it read external sd cards? If yes you could try flashing CM11 (because lollipop roms need an updated bootloader) from an external sdcard and see what happens. Also your backup could be corrupted, that's why it doesn't let you restore it at all.
As for the recovery, try updating your twrp to the latest version available (3.0). You can update twrp from twrp itself, just to see if it's fastboot's fault.
Wiped /system and /data. Didn't help. Wiping /data/media led to an error.
Is there anything beyond "wipe" to repair and format those partitions?
Thanks for the hints, will try updating TWRP and installing 11 this weekend, as external SDs can be accessed.
Greetings from Germany
René

Huawei p9 format Data from ext4 to f2fs fail

hi
i have a problem with formatting Data in twrp recovery on huawei P9 eva-L09C432B182
https://dl.dropboxusercontent.com/u/67361401/IMG_20170309_174811.jpg
ive tried this ROM:
https://forum.xda-developers.com/p9/development/rom-huawei-p9-newworld-7-tecalote-t3543296
and it installs, but i get message after boot:
https://dl.dropboxusercontent.com/u/67361401/IMG_20170309_180017.jpg
i can actually see navi bar for a sec and volume buttons still work(can set alarm and sound loudness)
and here is install image of Rom:
https://dl.dropboxusercontent.com/u/67361401/IMG_20170309_175844.jpg
only error is mount: failed to mount /dev/block/dm-0 at /dat: No such file or directory
so i can only use twrp recovery and fastboot to fix this.
mkfs.f2fs -t 0 /dev/block/mmcblk0p42 process ended with error: 255
unable to wipe Data.
error changing file system.
every other is good for format(System and Cache) to f2fs and ext4 just Data folder has problem with format but wipe works :crying:
Are you using the last version of TWRP? Twrp 3.0.3.0
henryco11 said:
Are you using the last version of TWRP? Twrp 3.0.3.0
Click to expand...
Click to collapse
no i use 3.0.2.0
i think 3.0.3.0 is only for updated huwei with nougat and EMUI5?
Why you decrypted it?
It should work normal after you reset it.
dkionline said:
Why you decrypted it?
It should work normal after you reset it.
Click to expand...
Click to collapse
reset what excatly? factory reset works but Data is in ext4 format. i can wipe it but cant format it.
what if i erase this mmblck0p42 file and then flash twrp in fastboot will the file be reinstalled or will it be after i flash ROM in recovery again?
i made a mistake by formatting it in first place from f2fs to ext4 but before even factory reset didnt work, now it works and only think is left is this encryption error.
jure482 said:
hi
i have a problem with formatting Data in twrp recovery on huawei P9 eva-L09C432B182
https://dl.dropboxusercontent.com/u/67361401/IMG_20170309_174811.jpg
ive tried this ROM:
https://forum.xda-developers.com/p9/development/rom-huawei-p9-newworld-7-tecalote-t3543296
and it installs, but i get message after boot:
https://dl.dropboxusercontent.com/u/67361401/IMG_20170309_180017.jpg
i can actually see navi bar for a sec and volume buttons still work(can set alarm and sound loudness)
and here is install image of Rom:
https://dl.dropboxusercontent.com/u/67361401/IMG_20170309_175844.jpg
only error is mount: failed to mount /dev/block/dm-0 at /dat: No such file or directory
so i can only use twrp recovery and fastboot to fix this.
mkfs.f2fs -t 0 /dev/block/mmcblk0p42 process ended with error: 255
unable to wipe Data.
error changing file system.
every other is good for format(System and Cache) to f2fs and ext4 just Data folder has problem with format but wipe works :crying:
Click to expand...
Click to collapse
Why is your data partition ext4?
Normally it is on each p9 device f2fs.
This can only occur if you were on Nougat between and had installed the TWRP-n which has no Decryption Support and if you had by yourself formated data with this TWRP to ext4.
To install NewWorld Rom you must be on Marshmallow Firmware (because of Android 6 Bootloader) and your data partition must be f2fs.
In the meantime there's a new TWRP for Android 7, which has already Decryption Support.
But you cannot use this TWRP for installing NewWorld. You must have the one, which I have linked in my OP.
On which Firmware or Rom have you been, before you tried to install NewWorld?
If you were on Nougat, NewWorld could not flashed, cause you must be on Marshmallow.
Please answer my questions that I can realize in which situation you are.
i have Marshmallow Firmware and yes i formatted data to ext4 myself
the problem occured when i wanted to get nougat but OTA update failed but it booted back into 6.0 normally just root didnt work so i went in TWRP and flashed supersu 2.79 which i had before, then i was stuck in bootloop, manged to get to fastboot but Hisuite says no update packeg for this phone. i flashed back stock recovery and tryed to factory reset but didnt work, flashed twrp back and factory reset then it said data format error so i went and changed it to ext4 after factory reset worked but i cant put it back to f2fs.
aldo i wiped all cache, dalvik/ARTcache, Data, internal storage and system
jure482 said:
i have Marshmallow Firmware and yes i formatted data to ext4 myself
the problem occured when i wanted to get nougat but OTA update failed but it booted back into 6.0 normally just root didnt work so i went in TWRP and flashed supersu 2.79 which i had before, then i was stuck in bootloop, manged to get to fastboot but Hisuite says no update packeg for this phone. i flashed back stock recovery and tryed to factory reset but didnt work, flashed twrp back and factory reset then it said data format error so i went and changed it to ext4 after factory reset worked but i cant put it back to f2fs.
aldo i wiped all cache, dalvik/ARTcache, Data, internal storage and system
Click to expand...
Click to collapse
Okay, you are now on Stock Marshmallow (which version?) and you maked factory reset after formatting data to ext4
Which phone EVA model to you have?
It is recommended to flash Stock Recovery with adb and flash latest official Marshmallow Full Firmware once again (downloaded and unzipped) with 3 Button (Force Update) from the folder dload on your phone (update.app and if present meta-inf must be in this folder only) Force Upgrade to Marshmallow Firmware should solve your problem (Bootloader get closed, data should be formatted to f2fs automatically)
Tecalote said:
Okay, you are now on Stock Marshmallow (which version?) and you maked factory reset after formatting data to ext4
Which phone EVA model to you have?
It is recommended to flash Stock Recovery with adb and flash latest official Marshmallow Full Firmware once again (downloaded and unzipped) with 3 Button (Force Update) from the folder dload on your phone (update.app and if present meta-inf must be in this folder only) Force Upgrade to Marshmallow Firmware should solve your problem (Bootloader get closed, data should be formatted to f2fs automatically)
Click to expand...
Click to collapse
thanks soo much i did what you said on pm. went to bootloader and flashed your twrp then wiped again arpcache, cache, system, data, reboot to twrp then installed your ROM which still said that mount dev-0 error but i still rebotted and bam it booted longer with this very nice animation you have and showed emui and now im at select language page!
Flashing your twrp in bootloader fix the problem and formatted Data to f2fs thank you again.
also i used command recovery --wipe_data --set_filesystem_encryption=off before all above to make sure ecryption is off not broken.
im now on home screen it looks nice just 3 navigation buttons on bottom look smaller then i had before, thanks again.

[HELP] I've messed up somewhere, need experienced users

I haven't formatted my phone in a while, so rather than delete files while my phone was working. I booted into recovery and selected the format data option in TWRP. Now I am getting all kinds of errors in TWRP. I was on a custom rom when I did all of this and somehow I screwed up. I can't even get a zip on my phone as my phone is only recognized as charging and not a storage device under these circumstances. I have tried adb sideloading a rom, but that is to no avail. I am thinking about flash a stock recovery in hopes that I'll be able to flash a stock rom and fix my phone.
this is what it says when trying to wipe anything:
could not mount /data and unable to find crypto footer.
failed to mount '/data (invalid argument)
without typing out everything the rest of it says failed to mount '/data' (invalid argument)
Boot the phone into fastboot, type fastboot format userdata
fastboot format cache
then fastboot flash recovery <name of twrp recovery>.img (don't put < >)
boot into recovery and go to advanced wipe and wipe everything except internal
everything will be fine now
you can flash any rom now.
If it worked, hit the thanks button
Try unbrick tutorial from XDA to back to new alike!
This is the best option
Well actually I took a different route altogether. I don't know why I didn't think about it initially. You would think after almost 10 years of dealing with custom ROMs and recoveries that I would of been a lot quicker in finding a solution, so I googled it. Came to the conclusion that I needed a stock OP3T recovery, so I downloaded it and fastboot flashed the stock recovery. From recovery I was able to wipe data, cache, dalvik-cache. All was good after that. Now I'm running coltOS.
Sent from my ONEPLUS A3000 using Tapatalk
Glad you fixed it. If you face a similar issue in the future you can download MSMTool for the OnePlus 3T which will restore stock OOS through fastboot

Categories

Resources