wiping data partition makes internal storage un-decrytable to twrp recovery - Redmi Note 9S / Note 9 Pro (Indian Model) Question

hello,
As I face some issues with my rom thought to do a fresh start by resetting the data partition via orange fox recovery which bases on twrp and try to flash another rom. but once I wiped the data partition recovery could not decrypt the internal storage data on the next boot. honestly, this issue happens to me several times, and thus thought to start a thread for some helping hands for this issue. if anybody faces this please let me know the solution. thanks

somehow I got the data partition decrypted by re-flashing the same rom

fayis002 said:
somehow I got the data partition decrypted by re-flashing the same rom
Click to expand...
Click to collapse
You didn't get it decrypted. It's still encrypted but since you flashed the same rom that was there, the encrypted data partition is readable again. If you try to install a different rom you must FORMAT data partition to decrypt it. Wiping is different from formatting.
Sent from my curtana using XDA Labs

Well Me too faced this with "Curtana"
I forced to use SD card to copy the rom to phone and install it.
( I will test today Pixel experience Recovery to make sure )
Recovery tested:
-Pitch black recovery project
-twrp by mauronofrio

You could have sideloaded the ROM from your computer. No need to use separate SD card for ROM installation and it's also faster.

kalehrl said:
You could have sideloaded the ROM from your computer. No need to use separate SD card for ROM installation and it's also faster.
Click to expand...
Click to collapse
my adb sideload is not working. it's goes on then say failed. what to do?

Related

Problems on I9300 after updating to CM SNAPSHOT M4

Hey guys,
I have been having problems with some CyanogenMod roms lately. My I9300 was working perfectly using one of the nightly CM 11 ROM's released in early March, until I installed the latest M Snapshot. From there on in my phone has gone insane.
From time to time, during the day the phone gets blocked without any apparent reason. My first thought was that has something to do with the RAM, maybe its getting low somehow, but no, that wasn't the case. Most of the time I have at least 160-180 free ram, usually more than that.
Anyway, then I thought maybe the problem was the installed ROM, so I did a re-install but still,with no effect. Then I downloaded 17th of march nightly ROM, wiped clean the cache and reset the phone. Still with no effect.
My next solution is: Download the newest nightly, currently 18th of March, install the latest Clockworkmod Recovery, which is 6.0.4.6., reset and wipe the phone again (backing of course) and install the latest ROM. What do you guys think?
Also, does anyone else has this problem after installing the latest M-Snapshot from the CM download page.
I would much appreciate your help. Thanks a lot.
Gent
Yes. You definitely should install the latest CWM. And when you wipe, make sure that you (from the CWM menu ofc):
wipe data/factory reset
mounts and storage -> fromat system
mounts and storage -> format /data and /data/media (/sdcard)
advanced -> wipe dalvik cache
then flash the rom etc
If you didn't do this in the first place when you tried flashing the ROMs the flashes were dirty and that may be the reason why they didn't work.
Doing the above will give you a real fresh start with your ROM and problems should not appear.
So, I don't think the problem is in any of the ROMs you tried.. I'm just guessing, so correct me if you did all the above
I have been doing just fine with CM 11 M3 and M4 builds and now I'm on the latest nightly and everything is working perfectly! :highfive:
Hey Man,
I did that, but now the problem is that I cannot install the rom because it has wiped all the data that were there. Now I cannot transfer the rom into the phone. I transfered it into the external sd card but it does not let me to install it, it shows an error.
What to do now???
henkkaize said:
Yes. You definitely should install the latest CWM. And when you wipe, make sure that you (from the CWM menu ofc):
wipe data/factory reset
mounts and storage -> fromat system
mounts and storage -> format /data and /data/media (/sdcard)
advanced -> wipe dalvik cache
then flash the rom etc
If you didn't do this in the first place when you tried flashing the ROMs the flashes were dirty and that may be the reason why they didn't work.
Doing the above will give you a real fresh start with your ROM and problems should not appear.
So, I don't think the problem is in any of the ROMs you tried.. I'm just guessing, so correct me if you did all the above
I have been doing just fine with CM 11 M3 and M4 builds and now I'm on the latest nightly and everything is working perfectly! :highfive:
Click to expand...
Click to collapse
gent.b said:
Hey Man,
I did that, but now the problem is that I cannot install the rom because it has wiped all the data that were there. Now I cannot transfer the rom into the phone. I transfered it into the external sd card but it does not let me to install it, it shows an error.
What to do now???
Click to expand...
Click to collapse
You should always put roms on ext sd card before you are ready to flash not internal for situations like this! Flash back to stock with odin and start again.
Connect the phone via USB cable, go to recovery, Mounts and Storage, and then click Mount USB Storage. Then, transfer the ROM. Have you thought about having the Cm instaler?
Sent from my GT-I9300 using XDA Premium 4 mobile app
Andr3y29 said:
Connect the phone via USB cable, go to recovery, Mounts and Storage, and then click Mount USB Storage. Then, transfer the ROM. Have you thought about having the Cm instaler?
Sent from my GT-I9300 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sorry I think my reply might have confused you..I was suggesting that he should have transferred his rom to ext sd card before he started to flash and wipe system..It looks like he wiped the system in recovery and could not transfer rom to internal sd so he managed to transfer the rom to external sd where it would not let him install please correct me if I am wrong ..
I know there are other options he can try but in this situation I recommend flash to stock to give him a clean system and minimize any errors he might have and then he can try again the correct way.
tallman43 said:
You should always put roms on ext sd card before you are ready to flash not internal for situations like this! Flash back to stock with odin and start again.
Click to expand...
Click to collapse
Unfortunately that was my only choice. I did it, and I succeeded...
tallman43 said:
Sorry I think my reply might have confused you..I was suggesting that he should have transferred his rom to ext sd card before he started to flash and wipe system..It looks like he wiped the system in recovery and could not transfer rom to internal sd so he managed to transfer the rom to external sd where it would not let him install please correct me if I am wrong ..
I know there are other options he can try but in this situation I recommend flash to stock to give him a clean system and minimize any errors he might have and then he can try again the correct way.
Click to expand...
Click to collapse
That was the exact situation I was in. I tried mounting the ext/sdcard and transferred the rom to it, but it didn't let me to install it, it said installation failed.

Uncryption unsuccessfully

When i flash any rom with zxc recovery at booting it say uncryption unsuccessfully plz enter the correct password
I try wipe cache and data
Format your data partition!
+ Plus when flashing roms also patch the boot image so it does not get encrypted on next boot of rom.
SuperSu/Magisk and Custom Kernels have the above patch, plus a script called FED patcher.
TWRP doesn't work well with encrypted devices.
Format data
This is encrypted by the company..so to avoid this first you need to take a backup of the internal storage and then copy the ROM files and gapps in the SD card ..now open twrp recovery then click on wipe then format data...then type yes
This will format the internal data ..(SO PLEASE TAKE A BACK)
..Now install the ROM using sd card and enjoy the ROM..
Hope this solves your issue
vamsikri1234 said:
This is encrypted by the company..so to avoid this first you need to take a backup of the internal storage and then copy the ROM files and gapps in the SD card ..now open twrp recovery then click on wipe then format data...then type yes
This will format the internal data ..(SO PLEASE TAKE A BACK)
..Now install the ROM using sd card and enjoy the ROM..
Hope this solves your issue
Click to expand...
Click to collapse
thnx i will try this
Try Red Wolf recovery. Always does the job.

How to use TWRP without wide /data?

This is so annoying thing for me. Every time when I want to use TWRP because of encryption I must format /data. Is there any chance to avoid this step? I want to have TWRP but I have no OTA. So, I need to download ROM, enter TWRP /data and always from scratch. So idiotic
How to not format /data and still have TWRP full operational?
stefaca said:
This is so annoying thing for me. Every time when I want to use TWRP because of encryption I must format /data. Is there any chance to avoid this step? I want to have TWRP but I have no OTA. So, I need to download ROM, enter TWRP /data and always from scratch. So idiotic
How to not format /data and still have TWRP full operational?
Click to expand...
Click to collapse
Use Orange Fox Recovery
Wyneg said:
Use Orange Fox Recovery
Click to expand...
Click to collapse
Hint: OrangeFox does not do*anything*(eg, encryption) to your data partition. If your data partition is encrypted, it is normally something done by your ROM. Sometimes it depends on a setting in your ROM's configuration - but some ROMs force encryption by default.
Which doesn't solve problem
Sent from my Redmi 5 Plus using Tapatalk
stefaca said:
Hint: OrangeFox does not do*anything*(eg, encryption) to your data partition. If your data partition is encrypted, it is normally something done by your ROM. Sometimes it depends on a setting in your ROM's configuration - but some ROMs force encryption by default.
Which doesn't solve problem
Click to expand...
Click to collapse
Format your data, install the OrangeFox zip again (because formatting data will have wiped the internal storage - which includes OrangeFox's files), tick "Disable forced encryption" in the OrangeFox settings, and install your ROM. OrangeFox will remove the forced encryption settings in the ROM that you have just installed, and you shouldn't have a problem with forced encryption with that ROM.

Poco F1 internal Memory encrypted after loading MIUI Backup

Hi, I'm fairly new to XDA, flashing custom roms and rooting, but I'm really desperate right now.
I know many people probably already have had the same issue, but after searching all over the internet i didn't find my exact problem.
I used Nitrogen OS on my Pocofone F1, but after 1 Month of usage I wanted to try MIUI again, an important thing I remember is that i flashed a new kernel,
but I don't know if that makes any difference.
I made a backup of MIUI without any data on it (i made a hard reset before, so nothing would go wrong) and then installed Nitrogen OS the correct way (i wiped dalvik, data, ...) and everything, even installed the decrypter and everything worked fine.
Now I deleted dalvik, data, cache, ... and loaded the Backup of MIUI and as soon as I booted I suddenly got a bootup password, even though i should get nothing at all because it's basically a clean install.
I tried the normal password that i used all the time, but it didn't work, so i decided to get back to twrp.
Now i got a decryption password, that i don't know and the internal memory is 0 bytes large.
I loaded the nitrogen os backup that i also made, but it didn't work.
I read on other forums, that i should format my internal memory and try to flash the disable-force-encryption again, but i don't really know what to do exactly. i know how to format the memory, it's on the bottom when you want to delete data, dalvik, cache,... but still... .
Even if my phone is briked now, can anyone help me? I really don't know what to do
xueru said:
Hi, I'm fairly new to XDA, flashing custom roms and rooting, but I'm really desperate right now.
I know many people probably already have had the same issue, but after searching all over the internet i didn't find my exact problem.
I used Nitrogen OS on my Pocofone F1, but after 1 Month of usage I wanted to try MIUI again, an important thing I remember is that i flashed a new kernel,
but I don't know if that makes any difference.
I made a backup of MIUI without any data on it (i made a hard reset before, so nothing would go wrong) and then installed Nitrogen OS the correct way (i wiped dalvik, data, ...) and everything, even installed the decrypter and everything worked fine.
Now I deleted dalvik, data, cache, ... and loaded the Backup of MIUI and as soon as I booted I suddenly got a bootup password, even though i should get nothing at all because it's basically a clean install.
I tried the normal password that i used all the time, but it didn't work, so i decided to get back to twrp.
Now i got a decryption password, that i don't know and the internal memory is 0 bytes large.
I loaded the nitrogen os backup that i also made, but it didn't work.
I read on other forums, that i should format my internal memory and try to flash the disable-force-encryption again, but i don't really know what to do exactly. i know how to format the memory, it's on the bottom when you want to delete data, dalvik, cache,... but still... .
Even if my phone is briked now, can anyone help me? I really don't know what to do
Click to expand...
Click to collapse
First of all your phone isn't bricked. It's going to be ok.
The bad thing is that you will lose your internal storage.
The procedure to format data is :
(While in twrp) "mount"-> check "data"-> "repair change file system" -> format your data partition.
After that, no password will be asked. Now wipe system davlik cache and data and reboot into recovery again.
If you have sd card installed start flashing. If you don't, you need to plug into a pc and copy what you need inside your internal storage.
sotosgolf said:
First of all your phone isn't bricked. It's going to be ok.
The bad thing is that you will lose your internal storage.
The procedure to format data is :
(While in twrp) "mount"-> check "data"-> "repair change file system" -> format your data partition.
After that, no password will be asked. Now wipe system davlik cache and data and reboot into recovery again.
If you have sd card installed start flashing. If you don't, you need to plug into a pc and copy what you need inside your internal storage.
Click to expand...
Click to collapse
when i go to mount, i can't check data, because it doesn't appear, the List:
Cache
System
Vendor
Firmware
Cust
Persist
USB-OTG
Micro SD card
I use twrp on the version 3.3.0-0
when i go to "wipe" -> "format Data" it says that it will also remove the encryption should i do that?
xueru said:
when i go to mount, i can't check data, because it doesn't appear, the List:
Cache
System
Vendor
Firmware
Cust
Persist
USB-OTG
Micro SD card
I use twrp on the version 3.3.0-0
when i go to "wipe" -> "format Data" it says that it will also remove the encryption should i do that?
Click to expand...
Click to collapse
Yes. That's the solution. After that your device will get encrypted again on reboot, unless you flash encryption disabler. I would suggest keeping the encryption and not flashing anything more
sotosgolf said:
Yes. That's the solution. After that your device will get encrypted again on reboot, unless you flash encryption disabler. I would suggest keeping the encryption and not flashing anything more
Click to expand...
Click to collapse
all of the empty memory shows up and the encryption is gone, thanks for helping me, i was really desperate
xueru said:
all of the empty memory shows up and the encryption is gone, thanks for helping me, i was really desperate
Click to expand...
Click to collapse
i still got a little problem tough, if i try to flash a rom (i tried nitrogen os and lineage os), i get error 7, what can i do about it? my phone always boots into fastboot now, but i am still able to enter twrp
thanks for helping me
xueru said:
i still got a little problem tough, if i try to flash a rom (i tried nitrogen os and lineage os), i get error 7, what can i do about it? my phone always boots into fastboot now, but i am still able to enter twrp
thanks for helping me
Click to expand...
Click to collapse
i also still have the backup of nitrogenos on my sd card
xueru said:
i also still have the backup of nitrogenos on my sd card
Click to expand...
Click to collapse
i loaded the backup and it worked ty 4 everything
xueru said:
i loaded the backup and it worked ty 4 everything
Click to expand...
Click to collapse
The error 7 occurs due to outdated vendor/firmware. Download latest firmware and flash it before the rom you want (for example if you want to clean flash a rom: wipe system, davlik, cache, data.. flash firmware.. flash rom [you won't get error 7].. flash gapps.. reboot)
sotosgolf said:
The error 7 occurs due to outdated vendor/firmware. Download latest firmware and flash it before the rom you want (for example if you want to clean flash a rom: wipe system, davlik, cache, data.. flash firmware.. flash rom [you won't get error 7].. flash gapps.. reboot)
Click to expand...
Click to collapse
i'll try that next to get back to miui, i think i'll be able to do the everything else on my own thanks for everything

Question Orangefox can't wipe data: unable to mount storage

Hi, Orangefox can't wipe data, it gives me this error: unable to mount storage. I think the problem is that the data partition is somehow encrypted, but i haven't encrypted it so now I can't decrypt it because I don't have the password. I've already tried with the unlock password but it fails. I know the easy solution would be to format all data including internal storage but I would like to avoid that possibility. Do you know what can I do?
(The CrDroid rom I was installing before this problem occurred is in bootloop, so I can't access it).
Have you tried other recovery? TWRP, PE, Miui.
TWRP tells me the same thing: Unable to mount storage
I think the only solution is to format data. Is there a way to recover the files? I have no backup.
Data return is possible. Formatting must not be done and you must load the ROM from which the data came. That is, the last working ROM. After running it, then back up the data and only then try a new ROM where the data will be formatted.
StaryMuz said:
Data return is possible. Formatting must not be done and you must load the ROM from which the data came. That is, the last working ROM. After running it, then back up the data and only then try a new ROM where the data will be formatted.
Click to expand...
Click to collapse
How do i load the rom? I can't install it with TWRP, it says:
Devices on super may not mount until rebooting
recovery.
To flash additional zips, please reboot recovery to
switch to the updated slot.
I've tried also with OrangeFox, same error
OK, the problem was relative to the A/B slots: by switching to the other slot I managed to install and access to the rom. Now I can recover the files, so I can format data without problems. Thank you!

Categories

Resources