[QUESTION] Why do I have to continualy wipe the /data partition? - Samsung Galaxy A3, A5, A7 (2017) Questions & Answe

I finally properly rooted my A5 2017 (SW-A520W) and installed the TWRP recovery. But I can't do a full backup of the phone. It won't let me have access to /data. I know this is because the partition is encrypted. I also know I am to run no-verity-opt-encrypt-6.0 zip after wiping the /data partition. But guess what?! Everytime I go back into recovery, /data is encrypted again.
Please Help.

Related

TWRP can't mount sdcard or /data

So I flahed the new MDB08M image and since it uses the "I" boot image I went ahead and flashed the modified boot.img and flashed TWRP and used it to root as I didn't have SuperSU zip on the device yet. After flashing the new system I didn't do any factory reset.
Now TWRP says that internal storage is 0mb and it can't mount /data. Every time I boot into it, it comes up with the screen asking me if I want to modify /system or leave it read only. I check the box to not show it again and swipe to modify.
I've tried using adb again to flash recovery but it didn't help. Any suggestions?
Edit: bootloader also sais I'm secure, and in security it sais I'm encrypted..
TWRP can't decrypt /data on the N5X yet. You can format from TWRP, but you'll lose the contents, of course.
PhoenixTank said:
TWRP can't decrypt /data on the N5X yet. You can format from TWRP, but you'll lose the contents, of course.
Click to expand...
Click to collapse
I thought by flashing the modified boot image that would decrypt? It did on MDB08I..
The modified boot just changes flag to encrytable instead of force encryption. It doesn't actually decrypt the drive contents. Once you wipe it then you can mount data in TWRP.
eqjunkie829 said:
The modified boot just changes flag to encrytable instead of force encryption. It doesn't actually decrypt the drive contents. Once you wipe it then you can mount data in TWRP.
Click to expand...
Click to collapse
so just factory reset in TWRP?
Edit: reflashed firmware, flashed modified boot and did a factory reset in stock recovery. reflashed TWRP and all is good. thank you

TWRP Unable to Mount encrypted /data partition

I have a retail 910V converted to DE, and so far I've been pretty happy, except that I can't seem to get TWRP to mount my /data partition after encrypting the phone. I understand that TWRP will need my password to mount the partition correctly, but it doesn't seem to have the option anywhere to accept that password.
Anything I can do? And if I want to do a factory reset, how would I go about doing that given TWRP can't seem to access the partition at all?
Thanks all!

TWRP failed to mount /system (invalid argument)

I've recently updated my htc 10 to Android 7.0 using the 2.38.617.6 firmware and added twrp to use for backup purposes. I have attempted to root the device with chainfire's supersu, but failed due to data being in the wrong format.
First off, I managed to find out the the system partition is ridiculously large (17,592,186,044,365 MB) leading me to believe that the system partition has been corrupted.
I've checked the format type for each partition (data, system and cache) they check out to be ext4.
As the title of the post states, I've also ran into that problem before the system partition size issue.
Also, when trying to reboot the system through twrp, I get the message, "No OS Installed! Are you sure you..." but the phone boots up just fine.
Any help is appreciated.
ensure you flashed the latest unoffical twrp from the xda twrp thread. not the official one.
j to the 4n said:
ensure you flashed the latest unoffical twrp from the xda twrp thread. not the official one.
Click to expand...
Click to collapse
I have fixed the issue. I had to find and flash the latest ruu because I had restore the /data partition from when I had the phone rooted and downloaded xposed. I ran through the same process after the flash without restoring the data partition and now it work.
Only downside is that I can't restore my data until xposed has a compatible framework. Thanks for replying.
I got a clean backup of the twrp formatted the sd card with external memory I mounted the backup in the external sd and restored the system .... With that I was successful:dedos cruzados::dedos cruzados:

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.

Restoring a backup fails with "failed to mount /system (Structure needs cleaning)"

Restoring a backup fails with "failed to mount /system (Structure needs cleaning)"
I am an idiot
Read on Reddit that to delete GApps from LineageOS 15.1 and install microG, I had to wipe /system, flash LineageOS, install microG.
So I made a complete backup of every partition, backed that up on my computer, wiped /system, flashed the latest nightly of LOS , booted up to no GApps, perfection. Tried installing microG only to learn that it won't work, so I go back to TWRP, press Restore and select my backup, only to be met with "failed to mount /system (invalid argument)". Cue panic attack.
So I google furiously for a solution and find something. Advice is to wipe /system only, change it's file system to ext4 again, then Restore only the /system partition from my backup. I do that, and now I'm met with the current error "failed to mount /system (Structure needs cleaning)". I'm going to wait for some solid advice from people who know far more than me before doing anything else.
Tried flashing LOS and I get the same error
Update 2: changed filesystem to ext4 (even though it was already there), wiped system, successfully flashed LOS, restored only the Data partition of my backup. Boot to system, success, but I'm still without GApps when I want them back. Tried restoring entire backup again, same issue, failed to mount system.
stupidcanuck said:
Update 2: changed filesystem to ext4 (even though it was already there), wiped system, successfully flashed LOS, restored only the Data partition of my backup. Boot to system, success, but I'm still without GApps when I want them back. Tried restoring entire backup again, same issue, failed to mount system.
Click to expand...
Click to collapse
Format system as ext4, install the rom (as you explained in the update 2) and boot to system once.
Reboot to recovery again and install the gapps zip file and wipe cache only.

Categories

Resources