Can't mount data partition in twrp - Galaxy Tab S Q&A, Help & Troubleshooting

Can't wipe data, if you look at it in twrp in says 0 mb. Try to boot into Lineage and it says encryption error. How can I restore DATA to a working partition. I don't need to save anything the tablet is new to me.

I finally just restored everything to stock with odin, now I get to battle getting twrp back on it. Appears to be fine now, at least it boots. Can't seem to get twrp to stick

Related

Unable to mount /data after encryption

I've just had a bit of a panic then worked myself out of it. To help others in a similar situation, I thought I'd put what to do here, as searching doesn't help.
I'd encrypted my phone (and the external SDcard FWIW) via the Security settings. But it slowed it down a lot. I'd thoughtfully backed up a NANDROID to my PC before doing anything. So instead of unencrypting, I thought I'd go the quick way: go in through CWM Recovery (previously flashed on the phone) and sort things out from there.
Big mistake. CWM Recovery doesn't deal with encrypted phones or SDcards. So I took the SDcard out, reformatted it in a reader on my PC, stuck the NANDROID back on it. Then back into Recovery. Still whenever I tried to do anything, such as wipe / factory reset or restore the NANDROID, I got "unable to mount /data".
Oh dear. Next step: I downloaded a stock N7100 firmware and flashed it via ODIN. But I discovered this doesn't sort the problem either; it still leaves the /data partition encrypted. On booting up, it asks me for the encryption password; but won't boot further - presumably due to incompatibilities between teh custom ROM's Data partition and the stock rom.
Rebooted into Stock Recovery; multiple errors "unable to mount /data". BUT happily Wipe / Factory Reset from the Stock recovery did work.
I was then able to reroot, re-install recovery, and restore the NANDROID, thank God. Major panic for a while there.
tl;dr if you get in a state with an unbootable encrypted phone, and non-stock recovery gives "Unable to mount /data", you need STOCK recovery on it (flashed via ODIN, perhaps from full stock firmware or separately if you can find it) then factory reset with that. You'll then obviously need to reroot etc.
hope that's of use to somebody.
kingqueen said:
I've just had a bit of a panic then worked myself out of it. To help others in a similar situation, I thought I'd put what to do here, as searching doesn't help.
I'd encrypted my phone (and the external SDcard FWIW) via the Security settings. But it slowed it down a lot. I'd thoughtfully backed up a NANDROID to my PC before doing anything. So instead of unencrypting, I thought I'd go the quick way: go in through CWM Recovery (previously flashed on the phone) and sort things out from there.
Big mistake. CWM Recovery doesn't deal with encrypted phones or SDcards. So I took the SDcard out, reformatted it in a reader on my PC, stuck the NANDROID back on it. Then back into Recovery. Still whenever I tried to do anything, such as wipe / factory reset or restore the NANDROID, I got "unable to mount /data".
Oh dear. Next step: I downloaded a stock N7100 firmware and flashed it via ODIN. But I discovered this doesn't sort the problem either; it still leaves the /data partition encrypted. On booting up, it asks me for the encryption password; but won't boot further - presumably due to incompatibilities between teh custom ROM's Data partition and the stock rom.
Rebooted into Stock Recovery; multiple errors "unable to mount /data". BUT happily Wipe / Factory Reset from the Stock recovery did work.
I was then able to reroot, re-install recovery, and restore the NANDROID, thank God. Major panic for a while there.
tl;dr if you get in a state with an unbootable encrypted phone, and non-stock recovery gives "Unable to mount /data", you need STOCK recovery on it (flashed via ODIN, perhaps from full stock firmware or separately if you can find it) then factory reset with that. You'll then obviously need to reroot etc.
hope that's of use to somebody.
Click to expand...
Click to collapse
I was just wondering if i encrypt my phone but after reading this i think i will only encrypt external sd card so i wont fsck up because of rooting etc.

Corrupted Data Parition

Hi Everyone,
My data partition got corrupted. I can no longer boot into any rom. When I try to factory reset, format data, or wipe internal; I get this error:
E:error opening '/data/media/0/Android/data/com.
E:error: I/O error
I tried manually deleteing the data folder, but I get the same error. Is there a way I can just completely format my internal storage and remove the data. Trying to do it inside TWRP v2.6.0.1 only gives me the above error.
Does anyone have any thoughts, ideas or suggestions?
Thanks
When you tried to format data in TWRP, what did you try?
If I'm not mistaken, mounting system and then formating system should wipe everything on your internal storage.
altimuh said:
When you tried to format data in TWRP, what did you try?
If I'm not mistaken, mounting system and then formating system should wipe everything on your internal storage.
Click to expand...
Click to collapse
I wish I knew earlier that System had to be mounted in order for everything to get wiped lol.
I'm back up and running, but it went through a long, arduous and slightly weird process to get there.
After several failed attempts at wiping my internal storage, I tried doing an Odin flash back to stock along with the sprint pit file for re-partitioning. After that, I could get past the initial boot "Galaxy Note 2" screen, I was able to get into the stock rom boot animation, but my phone would just endlessly reboot into the Sprint/Samsung boot animations. I then Odin'ed back the TWRP recovery. I tried to factory reset once again and surprisingly, I no longer received the I/O errors I was getting before. I decided to reflash Paranoid Android and everything booted up just fine.
The weird thing about all this though is that when I booted into the Rom, Literally everything was intact. I still had all my apps installed, my themes and launcher up, and all of my settings intact.
So after everything happened, nothing got deleted at all apparently. I was thinking of still going back and trying to truly format my internal storage to completely wipe it, but I am concerned that more issues would pop up.
Do you think it would be better for me just to wipe everything and start fresh?
mugenga said:
I wish I knew earlier that System had to be mounted in order for everything to get wiped lol.
I'm back up and running, but it went through a long, arduous and slightly weird process to get there.
After several failed attempts at wiping my internal storage, I tried doing an Odin flash back to stock along with the sprint pit file for re-partitioning. After that, I could get past the initial boot "Galaxy Note 2" screen, I was able to get into the stock rom boot animation, but my phone would just endlessly reboot into the Sprint/Samsung boot animations. I then Odin'ed back the TWRP recovery. I tried to factory reset once again and surprisingly, I no longer received the I/O errors I was getting before. I decided to reflash Paranoid Android and everything booted up just fine.
The weird thing about all this though is that when I booted into the Rom, Literally everything was intact. I still had all my apps installed, my themes and launcher up, and all of my settings intact.
So after everything happened, nothing got deleted at all apparently. I was thinking of still going back and trying to truly format my internal storage to completely wipe it, but I am concerned that more issues would pop up.
Do you think it would be better for me just to wipe everything and start fresh?
Click to expand...
Click to collapse
Back up your internal storage to your computer and then wipe it clean and start over. I always feel that best results come from a clean start.

unable to mount /data

Hi all,
Let me start with the fact that I did something really stupid, I formated the storage in TWRP (version 2.8.0), instead of just wiping the dalvik, data and other. After that I installed the custom ROM, however the tablet would not boot, it stays at the boot animation. If I go to the TWRP, I see that the internatl storage is 0MB and it says it cannot mount \data and other files.
I tried installed other ROM as well but same thing.
Tablet is rooted.
Help me please to recover the tablet (P600)!!
Kyrillos said:
Hi all,
Let me start with the fact that I did something really stupid, I formated the storage in TWRP (version 2.8.0), instead of just wiping the dalvik, data and other. After that I installed the custom ROM, however the tablet would not boot, it stays at the boot animation. If I go to the TWRP, I see that the internatl storage is 0MB and it says it cannot mount \data and other files.
I tried installed other ROM as well but same thing.
Tablet is rooted.
Help me please to recover the tablet (P600)!!
Click to expand...
Click to collapse
Load the rom on an external sdcard, and flash from there. I usually wipe everything when flashing a new rom except for the external sd card. If that doesn't work, try booting into the odin download mode and reflash to stock firmware via ODIN. Then try flashing again.

ODIN - Lost 4G LTE - Partition Table, NAND Erase All, #ImAnIDIOT

Note4 Dev. -Currently running CM12.1 PAC-Rom.
I can't remember exactly what errors i was having, i think it was a problem with TWRP not displaying correctly so i couldn't flash anything with it. slider was broken. So i figured i would do a fresh wipe of the phone through ODIN (Now i know that i shouldn't mess with things that i don't understand) But i clicked the NAND Erase all, thinking it will just clear system, data, cache, dalvik, and those.
After i did that i flashed the stock firmware. I let it reboot, it got to the ugly BIG RED loading screen and i rebooted and flashed TWRP again. TWRP worked, But i was unable to do anything. it couldn't erase or write to data, system, internal or anything when i was flashing a new rom (however, in /sdcard/ it had TWRP, so it was able to write that folder at least). I had lots of red errors. "unable to mount /data" and things like that.
I tried manually formatting through TWRP, the only ones i could get to work were FAT and EXT2. but EXT3 and 4 wouldn't work. Finally installing and wiping and installing on EXT2 worked and i'm able to get into my phone and use it. Now i'm stuck with no 4G LTE. Even when i went back to stock, then near stock/root, then now I'm on PAC ROM CM12.1, all of them no longer give me LTE but i have good service for everything else, phone, text, 3G. But 3G is slow as sh*t.
Questions:
1. What is it I did in ODIN that broke things (unable to mount /and no LTE)?
2. How can I get my LTE Back?
3. If NAND Erase-all wiped the partition table to a degree, do i need to flash the PIT to get things back? what would that entail.

Can't restore TWRP /data backup

Hi,
Hope you guys can help me getting my data back.
I messed around with Substratum in legacy mode on OOS 4.1.0 and ended up with a bootloop (I never saw the boot animation restart, just looping endlessly). To fix, I tried the following things:
Flashed the SubstratumRecovery_legacy.zip in TWRP 3.1.0-0 without any effect.
Dirty-flashed OnePlus3Oxygen_16_OTA_047_all_1703132116_f7372e67 without any effect.
Flashed OnePlus3Oxygen_16_OTA_047_all_1703132116_f7372e67 through ADB sideload without any effect.
Wiped data partition in recovery. System started normally, all data gone (obviously).
Before wiping, I had made a backup of my /data partition (through TWRP backup tool for Mac) and saved the content of /sdcard on the computer as well.
Now when I try to restore the /data backup through the same tool, I get an error:
E:Unable to find file system (first period).
E:Unable to find file system (first period).
E:Unknown restore method for '/data'
ADB Restore failed.
So what can I do to restore my data partition? That's all I care about.
Thanks in advance
Mount data in twrp?..
ASFAIK, /data is mounted rw automatically by TWRP. It also doesn't make a difference.
Moreover, I also cannot restore my boot partition (kernel), same error.
A while ago I changed my filesystem to f2fs. Can that be the culprit?
Nevermind, I've given up and accepted the loss of data. However, it would still be interesting to find out what the problem was
I had the same problem, tried several times. Then I went back and turned of the md5 check and it worked perfect.
Do u still have ur trwp backup or did u delete it
https://forum.xda-developers.com/showpost.php?p=53913623&postcount=22
I still have it on the computer and wouldn't mind making use of it (installed official Resurrection Remix after the data loss but that just wiped my /data partition after backing up kernel in TWRP)
@Bradl79: sounds interesting, will give that a go later when I have some time.

Categories

Resources