I have a J710DM/DS. I flashed the latest version of TWRP (TWRP for j7xelte - 3.0.2.1) with no problems.
But when I try to do a backup (to the external SD card), I get the expected "failed to mount /data" errors that result from dm-verity.
TWRP's website talks about this and mentions that some versions have a "System Image" option, but I don't see it on my phone.
So how do I properly do a backup?
This is nothing to do with dm-verity, it's encryption.
Format DATA to remove encryption and then install the boot patch.
My builds of TWRP have image backup, but not sure if I've compiled a j710 version.
ashyx said:
This is nothing to do with dm-verity, it's encryption.
Format DATA to remove encryption and then install the boot patch.
My builds of TWRP have image backup, but not sure if I've compiled a j710 version.
Click to expand...
Click to collapse
Thanks for the information.
What boot patch?
Edit:
Also, what's the recommended way to format DATA? If TWRP can't even mount it, can it even format it?
Haphim said:
Thanks for the information.
What boot patch?
Edit:
Also, what's the recommended way to format DATA? If TWRP can't even mount it, can it even format it?
Click to expand...
Click to collapse
FORMAT *not* WIPE. You don't need to mount to FORMAT.
To disable forced encryption and mount internal storage:
(Note this MUST be flashed after SuperSU if you intend to root)
1. Boot to Twrp
2. Format Data partition using FORMAT DATA button under Wipe options.
(Note: This will wipe the internal storage)
3. Check DATA is mountable.
4. Install SuperSU (if root is required)
5. Install boot image patch below.
6. Reboot
Boot image patch
no-verity-no-encrypt_ashyx
ashyx said:
FORMAT *not* WIPE. You don't need to mount to FORMAT.
To disable forced encryption and mount internal storage:
(Note this MUST be flashed after SuperSU if you intend to root)
1. Boot to Twrp
2. Format Data partition using FORMAT DATA button under Wipe options.
(Note: This will wipe the internal storage)
3. Check DATA is mountable.
4. Install SuperSU (if root is required)
5. Install boot image patch below.
6. Reboot
Boot image patch
no-verity-no-encrypt_ashyx
Click to expand...
Click to collapse
Thank you so much for elaborating!
Quick follow-up: I have already flashed SuperSU previously. Will I need to flash it again after formatting DATA?
Haphim said:
Thank you so much for elaborating!
Quick follow-up: I have already flashed SuperSU previously. Will I need to flash it again after formatting DATA?
Click to expand...
Click to collapse
You will need to reflash supersu.
Quick, but vital question:
Does flashing "no-verity-no-encrypt_ashyx" mean that I can now safely restore a full system backup?
Haphim said:
Quick, but vital question:
Does flashing "no-verity-no-encrypt_ashyx" mean that I can now safely restore a full system backup?
Click to expand...
Click to collapse
If you made a backup of an unencrypted data partition then you can restore if /data is mountable.
If you are not restoring /data then it doesn't matter.
Thank you so much for helping me understand all of this. You're the best!
So guys yesterday I flashed miui fastboot rom through TWRP recovery. It went successfully but the problem is now I can't decrypt my internal storage. I wiped it several times but after reboot it gets encrypted again. Idk what to do now! I'm stuck with encrypted internal storage.
TWRP->Wipe->Format Data->Type "yes"->done
ohwarumbloss said:
TWRP->Wipe->Format Data->Type "yes"->done
Click to expand...
Click to collapse
I've done that several times already. After reboot it gets encrypted again. When I reboot into Twrp recovery it ask for a password to decrypt data.
live4speed said:
I've done that several times already. After reboot it gets encrypted again. When I reboot into Twrp recovery it ask for a password to decrypt data.
Click to expand...
Click to collapse
When you're asked for Password press "Cancel"
Are you sure you've read right, not just wipe Partitions but Format it (the right Button)
It may be that MIUI encrypts Data again while reboot, do you have a MIUI Account activated on your Device? Maybe you first need to deactivate this.
Also, when asked for Password and cancelled that, are you able to mount i.e. System and/or install something like Magisk?
Format Data before flashing custom ROM always works, I never tried that in the other Direction.
ohwarumbloss said:
When you're asked for Password press "Cancel"
Are you sure you've read right, not just wipe Partitions but Format it (the right Button)
It may be that MIUI encrypts Data again while reboot, do you have a MIUI Account activated on your Device? Maybe you first need to deactivate this.
Also, when asked for Password and cancelled that, are you able to mount i.e. System and/or install something like Magisk?
Format Data before flashing custom ROM always works, I never tried that in the other Direction.
Click to expand...
Click to collapse
Yes I'm sure I've format data by typing "yes". It shows the internal storage RIGHT AFTER formatting data but after a reboot it doesn't show internal storage.
Miui account is activated in my device.
It shows internal storage as 0MB & I can't access it.
I can't take a backup but I did manage to flash Aroma bloatware removal zip.
I never flashed Custom Rom. I flashed the official MIUI fastboot rom.
live4speed said:
Yes I'm sure I've format data by typing "yes". It shows the internal storage RIGHT AFTER formatting data but after a reboot it doesn't show internal storage.
Miui account is activated in my device.
It shows internal storage as 0MB & I can't access it.
I can't take a backup but I did manage to flash Aroma bloatware removal zip.
I never flashed Custom Rom. I flashed the official MIUI fastboot rom.
Click to expand...
Click to collapse
Okay, just booted mine into Recovery and internal Storage is there. I'm using latest Xiaomi.eu weekly with no Mi Account set up (don't need it right now)
I'm using the TWRP from this Thread https://forum.xda-developers.com/re...guide-how-to-root-install-twrp-redmi-t3867146
Sorry, that's all I can tell you :/
Can you restore only DATA from TWRP backup after Decrypting internal storage? Or it'll decrypt storage again?
Sent from my Redmi Note 6 Pro using Tapatalk
live4speed said:
Can you restore only DATA from TWRP backup after Decrypting internal storage? Or it'll decrypt storage again?
Click to expand...
Click to collapse
I know this, have the same problem.
The only help for me was changing TWRP from ...mr-r00t to Pitchblack (via fastboot), then i installed Stable Rom 10.2...:Now everyting is fine.
limuc said:
I know this, have the same problem.
The only help for me was changing TWRP from ...mr-r00t to Pitchblack (via fastboot), then i installed Stable Rom 10.2...:Now everyting is fine.
Click to expand...
Click to collapse
Can you share step by step procedure?
I'm already on stable rom 10.2 with pitch-black recovery.
Sorry, I have started so many attempts that I do not remember what was successful. Now I have at least 'PitchBlack' and StableRom 10.2 ... on the run, backups via PitchBlack are also possible, so I can describe the internal memory, in the recovery mode, the internal memory is not displayed 0
limuc said:
Sorry, I have started so many attempts that I do not remember what was successful. Now I have at least 'PitchBlack' and StableRom 10.2 ... on the run, backups via PitchBlack are also possible, so I can describe the internal memory, in the recovery mode, the internal memory is not displayed 0
Click to expand...
Click to collapse
Did you restore the data or start from the scratch again?
limuc said:
I know this, have the same problem.
The only help for me was changing TWRP from ...mr-r00t to Pitchblack (via fastboot), then i installed Stable Rom 10.2...:Now everyting is fine.
Click to expand...
Click to collapse
Are you running 10.2 decrypted or encrypted? Also is there any way to avoid decypting the device to use PBRP or any custom recovery at all?
live4speed said:
Did you restore the data or start from the scratch again?
Click to expand...
Click to collapse
No, I started as a new device.
---------- Post added at 06:55 PM ---------- Previous post was at 06:28 PM ----------
lalibm said:
Are you running 10.2 decrypted or encrypted? Also is there any way to avoid decypting the device to use PBRP or any custom recovery at all?
Click to expand...
Click to collapse
Ok, I'm trying to describe my path again:
- By fastboot I install the PitchBlack recovery
- I wipe data, cache and dalvik
- I format the data partition
- I restart in the recovery status
- in the PitchBlack recovery I flash the stable Rome 10.2 ...
- I wipe data, cache and dalvik
- I flash Magisk 18
I start the device, and do not restore, but a new device.
I hope it will help.
limuc said:
No, I started as a new device.
---------- Post added at 06:55 PM ---------- Previous post was at 06:28 PM ----------
Ok, I'm trying to describe my path again:
- By fastboot I install the PitchBlack recovery
- I wipe data, cache and dalvik
- I format the data partition
- I restart in the recovery status
- in the PitchBlack recovery I flash the stable Rome 10.2 ...
- I wipe data, cache and dalvik
- I flash Magisk 18
I start the device, and do not restore, but a new device.
I hope it will help.
Click to expand...
Click to collapse
Thanks man that worked for me finally I got it working.
live4speed said:
So guys yesterday I flashed miui fastboot rom through TWRP recovery. It went successfully but the problem is now I can't decrypt my internal storage. I wiped it several times but after reboot it gets encrypted again. Idk what to do now! I'm stuck with encrypted internal storage.
Click to expand...
Click to collapse
format data in recovery and you are done but you'll lose all your data
Just FYI, I have started TWRP 3.3.1-0, and now it can decrypt the data partition.
how about MTP?
zerolam said:
how about MTP?
Click to expand...
Click to collapse
Installed it. No MTP.
hello i have sm-g950f on latest update(pie) and when i flash the twrp it corrupts my data it says failed to mount data,invalid argument i tried all possible ways to fix it like form ext4 to ext2 and again to ext4 but it wont work.It shows 0mb of storage when i try to switch to otg or etc...
The phone is OEM unlocked,any suggestion?
The data partition in TWRP is not corrupted, it's encrypted. TWRP can not decrypt it so data appears to have a 0MB size.
Formatting data will remove the encryption, but it will re-encrypt on the next boot unless it's blocked from doing so. I'm not experienced with this device, but typically setting Magisk to no-encrypt or flashing a no-encrypt kernel for your device are the common ways to keep data from getting encrypted.
This is one is solid for flashing in TWRP to prevent encryption: https://zackptg5.com/android.php#disverfe
ktmom said:
The data partition in TWRP is not corrupted, it's encrypted. TWRP can not decrypt it so data appears to have a 0MB size.
Formatting data will remove the encryption, but it will re-encrypt on the next boot unless it's blocked from doing so. I'm not experienced with this device, but typically setting Magisk to no-encrypt or flashing a no-encrypt kernel for your device are the common ways to keep data from getting encrypted.
Click to expand...
Click to collapse
Thank you it didnt corrupt it but it was encrypted.Fixed by flashing a zip
HisEvilness said:
This is one is solid for flashing in TWRP to prevent encryption: https://zackptg5.com/android.php#disverfe
Click to expand...
Click to collapse
Thank you this fixed my issue!!