Failed to mount /data in twrp? - Samsung Galaxy S7 Questions and Answers

I have flashed android 8.0 with odin then flashed twrp with odin (making sure to disable auto reboot) and rebooted straight into twrp. I then flashed dm verity disabler and now i was able to boot back into my os. The problem is i am now unable to mount my data partition. I have tried formatting my data and this works, but whenever i boot back into my os and set up android, tge problem comes back. Can anyone help with this?

Jack_Rickwood said:
I have flashed android 8.0 with odin then flashed twrp with odin (making sure to disable auto reboot) and rebooted straight into twrp. I then flashed dm verity disabler and now i was able to boot back into my os. The problem is i am now unable to mount my data partition. I have tried formatting my data and this works, but whenever i boot back into my os and set up android, tge problem comes back. Can anyone help with this?
Click to expand...
Click to collapse
i have the same thing, only difference is that i was stupid enough to wipe everything off my system including the system.
now it only boots to recovery and twrp
Now the fool seeks to return to the past and undo the future that is no phone
edit:
I found this it worked
watch?v=Rs4zcryNt5Y

SharinganSensei said:
i have the same thing, only difference is that i was stupid enough to wipe everything off my system including the system.
now it only boots to recovery and twrp
Now the fool seeks to return to the past and undo the future that is no phone
edit:
I found this it worked
watch?v=Rs4zcryNt5Y
Click to expand...
Click to collapse
Thanks, ill try it!

Jack_Rickwood said:
Thanks, ill try it!
Click to expand...
Click to collapse
This Worked for me too. It's a simple trick but it's working. Via TWRP, modify EXT4 to EXT2, then again to EXT4 ;-)

Thanks guys
I'm sure it will be useful to many who are going through the same issue

bebou said:
This Worked for me too. It's a simple trick but it's working. Via TWRP, modify EXT4 to EXT2, then again to EXT4 ;-)
Click to expand...
Click to collapse
It works only 1 time... and after you lose all data the error come back next boot...

I am planning to install a custom ROM on my S7 and now looking for a way to backup the /data/ partition, which is encrypted.
My preferred solution would be to create a full backup of the old system using twrp, but that doesn't seem to be feasible due to encryption. As the device is not rooted, I cannot pull /data over adb, remove encryption, then restore /data. Any ideas how to solve this?

Related

Bootloop after Xposed module - what are my options?

Hi,
My Nexus 5 has been working pretty well until now. Earlier today I decided to disable lightflow and try the Xposed LED Control module. I installed and rebooted and it seemed to be fine. But then while using the phone shortly after unlocking it it completely froze then rebooted itself. Since then it's been stuck in a bootloop where it gets as far as the boot animation but then freezes for a few seconds and returns to the Google screen again.
I tried power off and back on and tried loading into recovery to see if wiping dalvik + cache might get me as far a boot but when it loads TWRP it asks me for a password (I've never set one nor enabled encryption of any kind) so my only option is to cancel but then it can't mount the partitions to wipe the cache.
I suspect it's the Xposed module I installed that caused this but I can't be sure it's not just coincidental. I haven't done anything else unusual on the phone today.
Is there anything I can do to fix this that won't require a complete factory reset? Is there any way I can at least backup or keep my data? Unfortunately I'm not at a computer where I can run or install ADB but if that would let me save my current setup or data I can do so at home tonight.
Thanks!
Try flash stock cache.img from fastboot
I don't see this being xposed related but who knows?!
Sent from my Nexus 5 using Tapatalk
I know clearing the cache asks for a password, but try to see if you can flash something. The something is the Xposed disabler zip file in the root of your scard.
Hi,
From the Xposed Framework thread:
In case you get into a boot loop:
You can flash the attached Xposed-Disabler-Recovery.zip by Tungstwenty. It will be copied to your (external) SD card when you install Xposed as well. The only thing it does is copying /system/bin/app_process.orig back to /system/bin/app_process
Click to expand...
Click to collapse
Maybe this..., the "Xposed-Disabler-Recovery.zip" should be at the root of /sdcard (at least for me it was the case).
You could try re-flashing recovery in fastboot mode to see if it fixes the password issue or also I believe philz touch recovery can read twrp backups if you want to switch to a different recovery.
The original bootloop seems like /data corruption to me (freeze + fsync perhaps), then the twrp password further evidences that but.... hmmmm
Sent from my Nexus 5 using Tapatalk
viking37 said:
Hi,
From the Xposed Framework thread:
Maybe this..., the "Xposed-Disabler-Recovery.zip" should be at the root of /sdcard (at least for me it was the case).
Click to expand...
Click to collapse
I think I was able to flash this. I keep getting errors about unable to open "/data/app-lib/com.h3r3t1c.onna" - rest off screen, then "Not a directory" and "unable to mount '/persist'", but it seemed to mount /system and flash successfully.
Unfortunately, this doesn't fix the bootloop.
I guess I'll try flashing the cache.img as suggested tonight and see if that works. If not, I guess I'll have to try and wipe.
If I do a factory wipe from TWRP, will I lose photos, videos I've taken? Restoring everything else will be a pain but it's really the photos that I haven't backed up yet I'm more concerned about.
Thanks!
Twrp doesn't wipe /sdcard
Sent from my Nexus 5 using Tapatalk
I just installed that module today and its working fine. I'm on the stock ROM. But doesnt Xposed put an Xposed disabler flashable zip file on your sdcard? Or is that something that maybe I just transferred over and forgot that I did. Because I dont remember transferring it to my phone or downloading it but I have it on there. If you have it, maybe try flashing that to disable Xposed and see if it boots.
EDIT: viking37 actually already suggested this.
Wiping or flashing cache didn't help either.
I tried a factory wipe, which didn't help.
Then I formatted data from TWRP and was able to boot but there were strange issues including a complete inability to connect to the cell network.
Also, TWRP kept complaining that it couldn't mount /persist
So finally I ran flash-all.bat from the factory image download to try and completely return to a factory image. It seemed to work but then I got into a bootloop where it reboots after upgrading android then apps starting.
I tried to do it again but now fastboot keeps giving me this error: FAILED (remote: flash write failure)
or if I try to wipe: FAILED (remote: failed to erase partition)
I'm starting to thing maybe it's a hardware problem with the internal flash... Is that likely or is there still something I can do?
Will I be able to RMA it in this state?
Thanks again for the help!

TWRP Unable to mount data... crap

So I just went into recovery (buck's twrp) to flash me some aosp, it worked fine but I forgot to get a gps lock in sense before I flashed so I went into recovery to restore a nandroid and I got the dreaded "unable to mount /data, and unable to mount internal storage. Tried reflashing buck's twrp in fastboot and no dice. I have the RUU downloading although I would hate to have to go through that. Any recommendations? I;m going to try flashing philz recovery right now
wtoj34 said:
So I just went into recovery (buck's twrp) to flash me some aosp, it worked fine but I forgot to get a gps lock in sense before I flashed so I went into recovery to restore a nandroid and I got the dreaded "unable to mount /data, and unable to mount internal storage. Tried reflashing buck's twrp in fastboot and no dice. I have the RUU downloading although I would hate to have to go through that. Any recommendations? I;m going to try flashing philz recovery right now
Click to expand...
Click to collapse
Just plugged it into my pc to try to flash philz and a pop up came up saying that the file system is currupt. Ugh. I'm so p/o'd right now. Is RUU my only choice right now to repair this if any?
Just flashed RUU. Same thing. Going to dry formatting in windows device manager now
wtoj34 said:
So I just went into recovery (buck's twrp) to flash me some aosp, it worked fine but I forgot to get a gps lock in sense before I flashed so I went into recovery to restore a nandroid and I got the dreaded "unable to mount /data, and unable to mount internal storage. Tried reflashing buck's twrp in fastboot and no dice. I have the RUU downloading although I would hate to have to go through that. Any recommendations? I;m going to try flashing philz recovery right now
Click to expand...
Click to collapse
In TWRP go to Wipe < Format Data and do that and it should fix your /data problem. Before doing that I recommend just using the advanced wipe and ticking /data /cache /boot & /system and then re-trying. Also afterwards a good ROM to start with would be Cyanogenmod, I've had the least number of problems with that than any other, especially when helping people with issues like this. I actually had someone who's only way of fixing his issue was flashing that.... odd I know but that is why I always recommend it after having this issue.
Edit: just seen you've did an RUU and your problem is still persisting, I still recommend doing the 'Format Data' option in TWRP, this is known (at least to me) to fix most if not all problems with mounting...
S1L3nTShaDoWz said:
In TWRP go to Wipe < Format Data and do that and it should fix your /data problem. Before doing that I recommend just using the advanced wipe and ticking /data /cache /boot & /system and then re-trying. Also afterwards a good ROM to start with would be Cyanogenmod, I've had the least number of problems with that than any other, especially when helping people with issues like this. I actually had someone who's only way of fixing his issue was flashing that.... odd I know but that is why I always recommend it after having this issue.
Edit: just seen you've did an RUU and your problem is still persisting, I still recommend doing the 'Format Data' option in TWRP, this is known (at least to me) to fix most if not all problems with mounting...
Click to expand...
Click to collapse
Thanks a bunch dude, appreciate it. Restoring a nandroid now, had no issues with data yet. Phew. That was an exciting night
Yep its a stressful problem when it happens.
Sent from my One M8 using Xparent BlueTapatalk 2

Stuck in Recovery twrp (can't wipe or install ROM)

First things first, I'm a newbie when it comes to all these.
I installed CM11 after much effort, but some things didn't work out well so afterwards, I installed CM12.1* (FXP-cm-11-20150301-UNOFFICIAL-taoshan).* But then I decided that I wanted to change my Gapps Package, so I went to recovery mode once again to wipe my phone and install CM12 all over again.
The thing is that for some reason I just couldn't wipe it (no error message) but I was able to log in back to the system (CM12).
I messed around with a few settings and finally I decided to install twrp 2.8.7.0 through the flashify app. I rebooted to recovery, tried to wipe again my phone and then, all hell broke loose.
I realized that I cannot wipe internal memory of all things, and cannot install any new ROM. Can't flash another recovery either through windows flashtool like CWM 6.0 Philz touch, for example. Well, it does flash but my phone keeps on logging into the twrp recovery. I also can't flash my original fft (obviously). I can't do really anything besides messing around with twrp options (and I've messed a lot with them). I'm all out of ideas, so please someone help. When trying to wipe internal storage, the following message appears:
E:mkdosfs /dev/block/mmcblk0p32 process ended with ERROR=1
E:Unable to wipe '/sdcard'.
E:Unknown MTP message type: 1
E:Unable to wipe '/sdcard'
I have the whole log, for anyone interested.
Please help and remember, I'm a newbie.
Thank you.
immortalwind said:
First things first, I'm a newbie when it comes to all these.
I installed CM11 after much effort, but some things didn't work out well so afterwards, I installed CM12.1*(FXP-cm-11-20150301-UNOFFICIAL-taoshan).* But then I decided that I wanted to change my Gapps Package, so I went to recovery mode once again to wipe my phone and install CM12 all over again.
The thing is that for some reason I just couldn't wipe it (no error message) but I was able to log in back to the system (CM12).
I messed around with a few settings and finally I decided to install twrp 2.8.7.0 through the flashify app. I rebooted to recovery, tried to wipe again my phone and then, all hell broke loose.
I realized that I cannot wipe internal memory of all things, and cannot install any new ROM. Can't flash another recovery either through windows flashtool like CWM 6.0 Philz touch, for example. Well, it does flash but my phone keeps on logging into the twrp recovery. I also can't flash my original fft (obviously). I can't do really anything besides messing around with twrp options (and I've messed a lot with them). I'm all out of ideas, so please someone help. When trying to wipe internal storage, the following message appears:
E:mkdosfs /dev/block/mmcblk0p32 process ended with ERROR=1
E:Unable to wipe '/sdcard'.
E:Unknown MTP message type: 1
E:Unable to wipe '/sdcard'
I have the whole log, for anyone interested.
Please help and remember, I'm a newbie.
Thank you.
Click to expand...
Click to collapse
try wipe->advanced wipe -> change fs -> ext4
SdtBarbarossa said:
try wipe->advanced wipe -> change fs -> ext4
Click to expand...
Click to collapse
Thank you for your answer my friend, but I actually managed to fix my problem just moments before you posted your answer! What I did was to flash the cm12.1 recovery nightly which logged me into this recovery (although it seemed all messed up and.. broken). Nevertheless, I managed to flash the CM12.1 ROM from there and everything worked fine!
Bro #immortalwind.. I'm having the same problem exactly what you had. Seriously fu***d up with all with boot loop @ recovery. Could not able to hard reset / factory reset at neither CWM nor TWRP. Tried all knows possible ways. Please could you help me here. Any1 who can halp me here pls...
P.S: literally not moving from the boot load, so flashing a ROM could not be possible i think. any other suggestions please.....
RaamXperiaL said:
Bro #immortalwind.. I'm having the same problem exactly what you had. Seriously fu***d up with all with boot loop @ recovery. Could not able to hard reset / factory reset at neither CWM nor TWRP. Tried all knows possible ways. Please could you help me here. Any1 who can halp me here pls...
P.S: literally not moving from the boot load, so flashing a ROM could not be possible i think. any other suggestions please.....
Click to expand...
Click to collapse
Try this out
RaamXperiaL said:
Bro #immortalwind.. I'm having the same problem exactly what you had. Seriously fu***d up with all with boot loop @ recovery. Could not able to hard reset / factory reset at neither CWM nor TWRP. Tried all knows possible ways. Please could you help me here. Any1 who can halp me here pls...
P.S: literally not moving from the boot load, so flashing a ROM could not be possible i think. any other suggestions please.....
Click to expand...
Click to collapse
Just reflash stock ftf. You'll be good to go. If that fails, check drivers and downgrade flashtool. After that, normally, install a boot image with a recovery, install your rom gapps, reboot.
Managed to flash.ftf... Thanks for the help friends.
Sent from my C2104 using XDA Free mobile app

Galaxy S7 930f can't access twrp

Hello, thanks for your help.
It seems I bricked my galaxy s7 while trying to format the /data partition.
I installed TWRP 3.2 and a custom rom, and everything went smoothly until then.
I tried installing an audio mod which throwed a " can't mount /data" error, searching for solutions I read that formatting the data partition to fat and back to ext4 should solve the problem, I tried formatting it to fat with TWRP, however on the first try I got a message that it suceeded, followed by a message that /data could not be mounted, TWRP seemed to be still working (there was no reboot button or any other buttons, just a "working" bar). After giving the phone 3 hours I decided to restart it, now I can't access TWRP; it stays on it's "splashcreen", and of course the phone won't boot.
I'm having a rough time with this so I will appreciate it a lot if you can help me.
Thank you.
Boot to download mode, flash stock firmware using Odin, then retry the TWRP installation.
For wiping data, you have to make sure you use the wipe option that makes you type out 'yes' to wipe, the other factory wipe methods don't actually properly wipe the partition.
iirc you also then need to flash the dm no verity zip from the TWRP thread.
Bro you didn't have to do anything but just formating the phone in the first place. Aassuming you're on oreo , it happens to a lot of people and myself, after flashing a kernel twrp was unable to munt data, all i had to do is a data format in twrp that fixed the problem .

TWRP Restore Data and/or System = Bootloop

Something happened to my phone and I succeeded to flash it all new with Android 9.0 which I was on.
But when I try restore twrp backup (data and/or System) I always end up with bootloop.
Tried to reflash Magisk too but doesn't help.
Bootloops right back to TWRP after 2 minutes.
Anyone have any ideas on how I can get my data back from the twrp backup?
Tried to official twrp and bmu_sparks.
Thanks.
timebandi said:
Something happened to my phone and I succeeded to flash it all new with Android 9.0 which I was on.
But when I try restore twrp backup (data and/or System) I always end up with bootloop.
Tried to reflash Magisk too but doesn't help.
Bootloops right back to TWRP after 2 minutes.
Anyone have any ideas on how I can get my data back from the twrp backup?
Tried to official twrp and bmu_sparks.
Thanks.
Click to expand...
Click to collapse
Same thing happened to me yesterday. If you still have access to TWRP, enter it and wipe everything and install newest oxygen pie zip. TWRP is broken for our devie and backups cannot be trusted I'm afraid. Wish I knew this before.
timebandi said:
Something happened to my phone and I succeeded to flash it all new with Android 9.0 which I was on.
But when I try restore twrp backup (data and/or System) I always end up with bootloop.
Tried to reflash Magisk too but doesn't help.
Bootloops right back to TWRP after 2 minutes.
Anyone have any ideas on how I can get my data back from the twrp backup?
Tried to official twrp and bmu_sparks.
Thanks.
Click to expand...
Click to collapse
After restore is complete do not reboot, try the following, it might work,
1-Do not do any wipe,
2-Flash exactly the same ROM which is backed up,
3-Flash twrp,
4-Reboot twrp.
5-Flash Magisk,
8-Reboot system,
In case you are trying to go back from pie to oreo you have to flash roll back rom.
All the best, hope this helps., cheers.
Have tried all that with no luck. But if I do a Factory reset any time after the data restore the phone works but then I dont have any data
This sucks big time.
Have installed all from scratch. Luckly fastboot was working all the time
Some data I could restore with Titanium Backup but not so much I needed/wanted.
Too bad we cant rely on TWRP and its backup/restore feature.
timebandi said:
Have tried all that with no luck. But if I do a Factory reset any time after the data restore the phone works but then I dont have any data
This sucks big time.
Have installed all from scratch. Luckly fastboot was working all the time
Some data I could restore with Titanium Backup but not so much I needed/wanted.
Too bad we cant rely on TWRP and its backup/restore feature.
Click to expand...
Click to collapse
Its good only in the case if you are decrypted, since the time I'm decrypted no such problems, if you want you can try it,
https://forum.xda-developers.com/oneplus-6/how-to/tutorial-decrypt-flash-rom-pie-oreo-roms-t3838643
timebandi said:
Something happened to my phone and I succeeded to flash it all new with Android 9.0 which I was on.
But when I try restore twrp backup (data and/or System) I always end up with bootloop.
Tried to reflash Magisk too but doesn't help.
Bootloops right back to TWRP after 2 minutes.
Anyone have any ideas on how I can get my data back from the twrp backup?
Tried to official twrp and bmu_sparks.
Thanks.
Click to expand...
Click to collapse
Using TWRP backups on this phone is fun but not impossible. This process works for me.
1. Store backups on something other than the phone (I use an OTG card reader and 128 GB SD card)
2. Use a Fastboot Rom of THE EXACT SAME ROM as the backup and let it do it's thing flashing the phone (it will also wipe the phone in the process, which is why you need to store the backup elsewhere)
3. Boot up the phone and go through the whole process of setting it up. Don't worry about installing all your apps.
4. Install TWRP and Magisk if you used it on the backup.
5. Now restore your TWRP backups - just restore system, data, and boot.
I have done this at least 100 times and it has always worked.
I presume the fastboot rom is not only gonna wipe the internal drive but will also lock the bootloader, thats a lot of hassle to do every time you want to restore, but thanks for your suggestions, cheers.
vtec303 said:
I presume the fastboot rom is not only gonna wipe the internal drive but will also lock the bootloader, thats a lot of hassle to do every time you want to restore, but thanks for your suggestions, cheers.
Click to expand...
Click to collapse
The fastboot rom wipes the internal drive but DOES NOT lock the bootloader. Besides, I haven't seen or heard of another way to use TWRP backups without decrypting the phone, and I have security concerns with decrypting the phone.
tabletalker7 said:
The fastboot rom wipes the internal drive but DOES NOT lock the bootloader. Besides, I haven't seen or heard of another way to use TWRP backups without decrypting the phone, and I have security concerns with decrypting the phone.
Click to expand...
Click to collapse
ohh ok, I thought it locks it but thanks for the info, yes thats why I decrypted my device, lets hope in this thread we could find a easy way out to restore sucessfully while encrypted, have you tried just backing up boot, system and data and than restoring it ? cheers
vtec303 said:
ohh ok, I thought it locks it but thanks for the info, yes thats why I decrypted my device, lets hope in this thread we could find a easy way out to restore sucessfully while encrypted, have you tried just backing up boot, system and data and than restoring it ? cheers
Click to expand...
Click to collapse
Yes I tried. Without the fastboot rom to reset everything that stupid encryption bites you in the butt.
Yep. I just restored an entire nandbackup, and now my phone boots to a quailcomm dump screen only, can't fastboot into recovery or anything. Guess my new plans tonight involve fixing this thing.
I also got a bootloop after restoring 8.1 android with twrp 3.3.1 by nemo nemo on my leagoo xrover.
factory reset and wiping everything exept microsd card didnt help...
thanks for some help
vtec303 said:
After restore is complete do not reboot, try the following, it might work,
1-Do not do any wipe,
2-Flash exactly the same ROM which is backed up,
3-Flash twrp,
4-Reboot twrp.
5-Flash Magisk,
8-Reboot system,
In case you are trying to go back from pie to oreo you have to flash roll back rom.
All the best, hope this helps., cheers.
Click to expand...
Click to collapse
Thanks a lot, man. it worked for me

Categories

Resources