Encryption Unsuccessful - Help Needed - Xiaomi Mi A1 Questions & Answers

Hey guys, I was trying to flash a ROM. TWRP was unable to wipe data. It showed error "unable to mount data". So I reformatted the data partition to exFat from ext4. After that, I was able to wipe data.
Then I flashed Carbon ROM. Everything went fine but when I booted I got Encryption unsuccessful message with an option to reset the phone. I clicked reset phone, then I was booted to recovery. I tried wiping data but it doesn't work. It gives errors which you can see in the images attached.
So, can the problem be fixed using the MiFlash tool and flashing stock rom? Or do I need to manually format data partition first?
Thanks!

Nevermind, I was able to boot into twrp and then I reformatted the data partition to ext4. Then I reflashed this rom and it seems to boot fine now.

GizmoFreak said:
Nevermind, I was able to boot into twrp and then I reformatted the data partition to ext4. Then I reflashed this rom and it seems to boot fine now.
Click to expand...
Click to collapse
How did you reformatted the data partition. ? Would you please share the process .

Soham Biswas said:
How did you reformatted the data partition. ? Would you please share the process .
Click to expand...
Click to collapse
Sure, in TWRP go to Wipe > advanced wipe > select data > change or repair file system > change file system > select your preferred format.

GizmoFreak said:
Nevermind, I was able to boot into twrp and then I reformatted the data partition to ext4. Then I reflashed this rom and it seems to boot fine now.
Click to expand...
Click to collapse
Thank you so much. Was really frustrated with this encryption deal. Worked like a charm. Cheers :good:

Related

Can't do anything with TWRP. Cannot mount /data and unable to find crypto footer.

Hey, so I rooted my Galaxy S7 edge exynos, and everything was great. However, when I boot into recovery, TWRP can't do anything. It can't backup, install images, nothing. It says my memory is 0mb, and if I try to backup it says "cannot mount /data and unable to find crypto footer". I can restart my phone to system and everything works perfectly. Is there a way to fix this? I'm using latest version of TWRP (3.0.2)
Thanks guys!
Byyz said:
Hey, so I rooted my Galaxy S7 edge exynos, and everything was great. However, when I boot into recovery, TWRP can't do anything. It can't backup, install images, nothing. It says my memory is 0mb, and if I try to backup it says "cannot mount /data and unable to find crypto footer". I can restart my phone to system and everything works perfectly. Is there a way to fix this? I'm using latest version of TWRP (3.0.2)
Thanks guys!
Click to expand...
Click to collapse
FORMAT DATA, it's explicitly stated in the instructions. You must format data to wipe encryption.
Sent from my Pebble Time
Brava27 said:
FORMAT DATA, it's explicitly stated in the instructions. You must format data to wipe encryption.
Sent from my Pebble Time
Click to expand...
Click to collapse
Is there no way around this at all? It's really a hassle having to reset my phone every time.
Is there at least a way to install xposed without formatting?
Thanks!
Byyz said:
Is there no way around this at all? It's really a hassle having to reset my phone every time.
Is there at least a way to install xposed without formatting?
Thanks!
Click to expand...
Click to collapse
You only do this once, use flashfire or titanium backup to backup your stuff.
did you flash this after TWRP?
"If you only want a bootable system partition or writable data in TWRP:
Download dm-verity and force encryption disabler.
Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP."
https://idlekernel.com/fun-stuff-trust-me/no-verity-opt-encrypt.zip
same here !:<
Same problem a few days ago. Caused by secure startup or encrypt device obviously lol. Only fix for read/write on data/internal storage is factory reset in stock recovery. Unfortunately this was the only fix for my fussy G935F.
TWRP couldn't mount data to wipe anyway I tried and the only way to flash was through selecting extSD.
i dont have escription enabled though ._.
jgalvez21 said:
i dont have escription enabled though ._.
Click to expand...
Click to collapse
I find a solution, just go in wipe and format data , it will removes encryption on internal storage. if not works try a factory reset in stock recovery them try again, S7 is encrypted out of the box and Twrp can't read or mount data. Works for me in G935F.
how long does it take to format? i chose exfat and it's taking ages... am i doing something wrong?
Brava27 said:
FORMAT DATA, it's explicitly stated in the instructions. You must format data to wipe encryption.
Sent from my Pebble Time
Click to expand...
Click to collapse
i unlocked a nexus 5 and got the same problem, formatted data, all seems good now
is there a way to save my data? my phone is oneplusone
if you use twrp to flash xposed, it'll still work. But your data is still encrypted.
Should I do anything else after the Formating data (install TWRP again, root again...)?
I remember that I did format data in my last phone and it completely deleted everything including OS, so now im little afraid.
Currently I can't do nothing in TWRP, not wipe and not backup...
Nitzans said:
Should I do anything else after the Formating data (install TWRP again, root again...)?
I remember that I did format data in my last phone and it completely deleted everything including OS, so now im little afraid.
Currently I can't do nothing in TWRP, not wipe and not backup...
Click to expand...
Click to collapse
Just format data and you will be able to use twrp.
fureedx said:
Just format data and you will be able to use twrp.
Click to expand...
Click to collapse
Thanks, it worked! Too bad that the only way to get this is by loosing all the data .
Hi all,
I followed instruction on installing TWRP and also have root. I also installed the no-verity-opt-encrypt.zip file, but I still can't access internal SD. It says 0mb. Also after installing the zip it similar stated 'unable to mount'.
When I try to format data it can't mount it.
am i missing a step??
ideas?
Thanks in advance...
PS: not sure if this is relevant, but it keep coming up with the same flash screen message: "keep system read only?"
I tick the box says don't display this, and swipe to allow modifications, but get this message every time.
The_Hammer said:
Hi all,
I followed instruction on installing TWRP and also have root. I also installed the no-verity-opt-encrypt.zip file, but I still can't access internal SD. It says 0mb. Also after installing the zip it similar stated 'unable to mount'.
When I try to format data it can't mount it.
am i missing a step??
ideas?
Thanks in advance...
PS: not sure if this is relevant, but it keep coming up with the same flash screen message: "keep system read only?"
I tick the box says don't display this, and swipe to allow modifications, but get this message every time.
Click to expand...
Click to collapse
You have to format the data after you installed twrp. And then you can flash supersu and no verity opt thingie.
Thanks for the reply... It wont let me format it. 'says can not mount'
I'm having the same issue here. Although I can root, I cannot wipe data, so no way to install a custom ROM

Cannot Mount /data and Storage TWRP

Hello Guys am facing a problem in twrp since 3 days.. I flashed twrp-3.0.2-4-hero2lte.img.tar using odin and everything was ok when I booted to recovery it asked me to allow modification (everytime I boot to recovery)then flashed supersu and got an error cannot mount data Then I tried to wipe data I got error cannot mount /data
I changed Data partition type to FAT ,wipe data was ok it worked but when I flash the rom and start the phone I get an error Encryption failed reset device needed .
Any Help
I flashed stock firmware 4 times and nothing changed
Need Help
mrad4tech said:
Hello Guys am facing a problem in twrp since 3 days.. I flashed twrp-3.0.2-4-hero2lte.img.tar using odin and everything was ok when I booted to recovery it asked me to allow modification (everytime I boot to recovery)then flashed supersu and got an error cannot mount data Then I tried to wipe data I got error cannot mount /data
I changed Data partition type to FAT ,wipe data was ok it worked but when I flash the rom and start the phone I get an error Encryption failed reset device needed .
Any Help
I flashed stock firmware 4 times and nothing changed
Need Help
Click to expand...
Click to collapse
Flash hydra rom and done
umijani010 said:
Flash hydra rom and done
Click to expand...
Click to collapse
Really man??what makes this rom solve the problem I heard many things about this hydra rom
mrad4tech said:
Hello Guys am facing a problem in twrp since 3 days.. I flashed twrp-3.0.2-4-hero2lte.img.tar using odin and everything was ok when I booted to recovery it asked me to allow modification (everytime I boot to recovery)then flashed supersu and got an error cannot mount data Then I tried to wipe data I got error cannot mount /data
I changed Data partition type to FAT ,wipe data was ok it worked but when I flash the rom and start the phone I get an error Encryption failed reset device needed .
Any Help
I flashed stock firmware 4 times and nothing changed
Need Help
Click to expand...
Click to collapse
You need to wipe the data partition in TWRP in order to decrypt it.
wipe/format data/type YES
TWRP doesn't yet support samsungs encryption.
wiping data will obviously remove everything, so backup first.
immediately after wiping data, flash an updated supersu, or dm-verity disable
Flashing a rom over an encrypted data partition will do nothing to solve it unfortunately.

Gt i9506 10 gb used by system after flashing.

hello there!
some months ago i tried a custom firmware on my 9506 (i think that was the first version of arya mod) but i didnt kinda like it so i downloaded again the stock fw and flashed it back.
i did my typicall "download the basic apps" routine and on the 4th app an "insufficient storage available" message appeared on my screen and i was like "lol whats wrong?" i checked on and i found that 10.6Gb was used by system.
Well i thought that i downloaded maybe a bugged stock rom and i didnt have the free time at the time to check whats wrong so i decided to live with it till i find some spare time to check it again.
Yesterday i downloaded and flashed the lineage os fw and i was sure that this would fix the problem...but...well it didnt..still 10.6 used by system.
i tried wipe EVERYTHING (dalvik/cache/system/internal) and reflashed again but still nothing,i flashed again the stock rom,still nothing, i searched online but i didnt find a solution, i downloaded diskusage app to see where are those 10gbs but i couldnt figure out where they where.
So if anyone knows anything or had the same or similar problem it would be great if he/she write here and give a solution or some tips.
Thanks in advance
Try format data from recovery.
Pwnycorn said:
Try format data from recovery.
Click to expand...
Click to collapse
Thanks for your reply!
You mean the wipe option or am i missing something?
I did wipe everything via twpr recovery from the "advanced wipe option" and checked everything except my sdcard and still nothing.
is there any other way to completly format it ? if so,then how i can do it?
bakos360 said:
Thanks for your reply!
You mean the wipe option or am i missing something?
I did wipe everything via twpr recovery from the "advanced wipe option"
Click to expand...
Click to collapse
There's a format data option there too.
Pwnycorn said:
There's a format data option there too.
Click to expand...
Click to collapse
lol i didnt see it and it was in front of my eyes!
i tried that too today but here is what is happening
Updating partition details...
...done
Full SELinux support is present.
Running boot script...
Done.
MTP enabled
E:unable to wipe '/data' -- unknown file system ' auto enable to format to remove encryption.
Mount media patd for recreate TWRP settings. /data/media/o
TWRP settings saved
Updating partition details...
...done..
for some reason it seems that its enable to format '/data'
any other option ? =/
bakos360 said:
lol i didnt see it and it was in front of my eyes!
i tried that too today but here is what is happening
Updating partition details...
...done
Full SELinux support is present.
Running boot script...
Done.
MTP enabled
E:unable to wipe '/data' -- unknown file system ' auto enable to format to remove encryption.
Mount media patd for recreate TWRP settings. /data/media/o
TWRP settings saved
Updating partition details...
...done..
for some reason it seems that its enable to format '/data'
any other option ? =/
Click to expand...
Click to collapse
Try flashing the stock ROM together with a PIT file
i fixed it guys
i flashed again cwm recovery and i formated EVERYTHING from there and then reflashed again the rom and gapps and that fixed the problem.
Thanks for your help !
For the record, CWM's incremental backup feature was what I believe was stealing your space. If you still have CWM on that device, make sure to set the default nandroid backup format to ".tar" instead of ".dup", clear out your nandroid backups, clear all the allocated space, and then upgrade to the latest version of TWRP.
CWM hasn't been updated in a few years now and has difficulty installing modern ROMs.
you are right i think.
if i recall corectly when i flashed that rom back then before the problem appeared, i used cwm recovery so yeah maybe thats the main reason that this happened.
i allready set the default backup to .tar and cleared out all the nandroid backups and i allready use TWRP now.
thanks for the tip mate!

Unmounted data (twrp not ecryption it i guess :()

i tried to flash but i guess screwed up and twrp not mounting data there is nothing i can do right now its not mounting for encrypted device i guess.. i tried to flash chineese twrp it was mounted then flashed stock recovery and there is i got Encryption Unsuccessfull! Message.. what should i do ?
Go to Wipe in TWRP, and Format Data. It will wipe everything but you'll then have access again in TWRP.
stebsgb1 said:
Go to Wipe in TWRP, and Format Data. It will wipe everything but you'll then have access again in TWRP.
Click to expand...
Click to collapse
Its not even mounted how it will fix ?
Feedmeeeee said:
Its not even mounted how it will fix ?
Click to expand...
Click to collapse
I got the same error. If you go to wipe and use the format data button everything will get wiped except TWRP but since the memory on the phone is properly formatted you can connect your phone to a computer, open the phone memory like an external hard drive and just copy and paste the ROM zip and your root app zip and then flash them in TWRP. It should definitely work.
jhs39 said:
I got the same error. If you go to wipe and use the format data button everything will get wiped except TWRP but since the memory on the phone is properly formatted you can connect your phone to a computer, open the phone memory like an external hard drive and just copy and paste the ROM zip and your root app zip and then flash them in TWRP. It should definitely work.
Click to expand...
Click to collapse
Wow really thanks i will try it

Can't create a backup through TWRP.

I tried creating a system backup through TWRP just now for the first time ever. Throughout the process, it gave me multiple messages saying "unable to mount data" and the same for some other folders, and when the backup supposedly finished, it just said failed.
Is there anything I can try without actually wiping either of the partitions? This obviously because I'm trying to create a backup so I can wipe afterwards.
cyborgium said:
I tried creating a system backup through TWRP just now for the first time ever. Throughout the process, it gave me multiple messages saying "unable to mount data" and the same for some other folders, and when the backup supposedly finished, it just said failed.
Is there anything I can try without actually wiping either of the partitions? This obviously because I'm trying to create a backup so I can wipe afterwards.
Click to expand...
Click to collapse
In twrp main menu screen select ' Mount ' menu and make sure mount data is ticked then go back and try backing up again.
spawnlives said:
In twrp main menu screen select ' Mount ' menu and make sure mount data is ticked then go back and try backing up again.
Click to expand...
Click to collapse
Thanks for your reply, it doesn't actually let me tick that box. Nothing happens when I tick it. It also says that the data partition is 0mb. Any idea what that might mean?
cyborgium said:
Thanks for your reply, it doesn't actually let me tick that box. Nothing happens when I tick it. It also says that the data partition is 0mb. Any idea what that might mean?
Click to expand...
Click to collapse
Which version of twrp are you using
Latest is 3.2.3.0 which should fix the data issue ( it"s a known issue).
spawnlives said:
Which version of twrp are you using
Latest is 3.2.3.0 which should fix the data issue ( it"s a known issue).
Click to expand...
Click to collapse
That's the TWRP version that I've got installed.
I just reinstalled both stock firmware and reflashed TWRP but the exact same issue persists. At first I was able to mount data though, I could flash zips such as Magisk etc. But after having set everything up again on my phone, I couldn't mount data anymore.
cyborgium said:
That's the TWRP version that I've got installed.
I just reinstalled both stock firmware and reflashed TWRP but the exact same issue persists. At first I was able to mount data though, I could flash zips such as Magisk etc. But after having set everything up again on my phone, I couldn't mount data anymore.
Click to expand...
Click to collapse
Not sure on your steps to install twrp
Have you tried going into twrp in wipe menu and format data
spawnlives said:
Not sure on your steps to install twrp
Have you tried going into twrp in wipe menu and format data
Click to expand...
Click to collapse
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
cyborgium said:
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
Click to expand...
Click to collapse
Sounds like your device is still encrypted
Did you flash the no Verity encrypt zip file
Also I said to format data not wipe.
In the mount menu these are the options I have enabled.
spawnlives said:
Sounds like your device is still encrypted
Did you flash the no Verity encrypt zip file
Also I said to format data not wipe.
In the mount menu these are the options I have enabled.
Click to expand...
Click to collapse
You're right, I formatted data, not wipe.
I did flash the no verity zip, does the order in which I flash Magisk, no-verity and RMM state unlock matter?
cyborgium said:
You're right, I formatted data, not wipe.
I did flash the no verity zip, does the order in which I flash Magisk, no-verity and RMM state unlock matter?
Click to expand...
Click to collapse
The instructions I followed to install twrp
Flash twrp (which you have done)
Format data
When finished reboot back into twrp(use twrp reboot menu option)
Flash no-verity zip via twrp ( have to make sure you have it on internal storage or SD card)
Then flash everything else
Not sure if you need RMM state unlock if your bootloader(OEM) is already unlocked in developer options though.
spawnlives said:
The instructions I followed to install twrp
Flash twrp (which you have done)
Format data
When finished reboot back into twrp(use twrp reboot menu option)
Flash no-verity zip via twrp ( have to make sure you have it on internal storage or SD card)
Then flash everything else
Not sure if you need RMM state unlock if your bootloader(OEM) is already unlocked in developer options though.
Click to expand...
Click to collapse
I've just done everything you stated above, still the same issue, can't mount /data.
Really don't understand what it is that im doing wrong or if I'm even doing anything wrong..
Thanks for your help anyway though, appreciate it.
cyborgium said:
I've just done everything you stated above, still the same issue, can't mount /data.
Really don't understand what it is that im doing wrong or if I'm even doing anything wrong..
Thanks for your help anyway though, appreciate it.
Click to expand...
Click to collapse
Just as matter of curiosity I use FX file explorer (root) in the menu filesystem it should tell you what format your data partition is mine or ext4. I have read that some people through twrp have changed it to something like ext3 and then back to ext4
Also this is the thread I used to install my twrp
https://forum.xda-developers.com/ga...pment/recovery-twrp-galaxy-s8-exynos-t3595102
This thread may also help you out
https://forum.xda-developers.com/ga...ment/fix-data-mount-fix-s8-twrp-oreo-t3769254
spawnlives said:
Just as matter of curiosity I use FX file explorer (root) in the menu filesystem it should tell you what format your data partition is mine or ext4. I have read that some people through twrp have changed it to something like ext3 and then back to ext4
Also this is the thread I used to install my twrp
https://forum.xda-developers.com/ga...pment/recovery-twrp-galaxy-s8-exynos-t3595102
This thread may also help you out
https://forum.xda-developers.com/ga...ment/fix-data-mount-fix-s8-twrp-oreo-t3769254
Click to expand...
Click to collapse
I think that second thread you linked may have done the trick.
At first it didn't seem to help, but when I tried it again after reflashing everything, I am now able to mount /data.
I'm still in the dark as to why this happened and hasn't happened to anyone else other than the person who created that file, but either way, thank you very much for your help.
cyborgium said:
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
Click to expand...
Click to collapse
Try the modded twrp from nx thread

Categories

Resources