Hey guys,
My work switched to Google Apps for their email so i wanted to test it out on my phone. Doing so required them to encrypt my phone. What this appears to have done is encrypt the data partition. So now when i go into (TWRP) recovery and try to do a backup / wipe / or anything else, it says it is "Unable to mount /sdcard" I'm unable to do a factory reset of any kind so i'm essentially stuck on this rom (ARHD) until i can figure out how to wipe data and get the /sdcard to be not encrypted. Does anyone have any ideas? I'm imagining that with the modified recovery not being able to access the data partition that i'm going to have to do some adb type stuff?
Please help! I want to keep flashing new roms!
Anyone??
I think you can't decrypt your data partition...
Did you try to wipe your data partition with the latest TWRP?
Guich said:
I think you can't decrypt your data partition...
Did you try to wipe your data partition with the latest TWRP?
Click to expand...
Click to collapse
That's the thing, the recovery can't mount /sdcard so wiping isn't an option from recovery
jrun said:
That's the thing, the recovery can't mount /sdcard so wiping isn't an option from recovery
Click to expand...
Click to collapse
Hi! Only TWRP recovery can solve your issue just do this...
Boot to TWRP recovery->Wipe
From there there are 2 options the left is the advance wipe and on the right is Format Data
Just select the format data button and it should reformat the whole data partition.
1st one would prompt so many errors and reformat then reformat it again 1 time and it should fully reformat your phone.
In theory it should reformat data partition even when encrypted but just in case it fails and I won't be able to go back to this thread just boot in bootloader and type
"fastboot erase userdata"
Well none of that works. TWRP doesn't support decryption yet for this device.
sevenalive said:
Well none of that works. TWRP doesn't support decryption yet for this device.
Click to expand...
Click to collapse
What I instructed basically doesn't decrypt the partition. It reformats it.
Riyal said:
What I instructed basically doesn't decrypt the partition. It reformats it.
Click to expand...
Click to collapse
I know what you instructed, it doesn't work. Only way I got it to work. Flash the stock recovery. Boot into system. Take off the encryption, phone reboots and removes the encryption, data is formatted. Then flash TWRP again.
I basically ran into this exact problem. I was hoping that I'd still be able to back up the encrypted device, but forget about it. What a pain in the ass.
Someone should make add something to the guides about how encrypting your device makes nandroid backups impossible.
Related
I turned on device encryption in order to play with it (bad mistake). Performance is suckish, it prevents me from flashing anything stored on the internal filesystem (have to use USB dongle), battery life has gone down, etc.
I tried wiping the device by doing a factory reset both in recovery and through settings. Neither method touches the encrypted data partition. Re-flashing the ROM makes no difference. The encrypted partition is extremely resilient
Based on some research, the only known way to wipe the encryption is to revert to stock and use stock recovery to do a factory reset. This sounds insanely cumbersome if all I want to do is wipe a partition. Does anyone know of a better way?
If stock recovery can do a factory wipe without mounting the encrypted partition, it sounds like a feature to add to CWM or TWRP.
Device is ATT HTC One, rooted, S-OFF, Super CID, CWM recovery, Sentinel ROM 4.0.
Many thanks
You can try and flash an ruu? See if that helps and if it doesnt try the stock recovery thing. Never heard of it though.
Sent from my HTC One X using xda app-developers app
So, the wipe of TWRP didn't removed the encryption like it say this when you will wipe?
Strange
However, flash the stock recovery and do a factory reset like you said, and see if it work..
you can do it via TWRP just make sure the rm -rf mode is disabled in settings... Or maybe in fastboot... Just type
Code:
fastboot erase userdata
Or another perhaps is ask someone to create a nand dump of their user data partition and use "dd" to write it on your own.
Problem Solved!
Eureka!!!!
I was playing with CWM and figured it out. In the "mounts and storage" tab, if you select "format /data" it fails with an error that it can't mount the volume.
If you select "format /data and /data/media" it works like a charm. For some reason, it performs the format operation on the raw partition while the prior option tried to mount it first.
Back in business
Thanks RootShot ["format /data ¨in advanced wipe first¨ and format/data ¨& write yes in second¨ " ] did the trick and saved my phone back to work ...
So, I figured I'd set up the scenario first in hopes to help make this understood:
1. Got the device
2. Booted/Updated to 5.0
3. Rooted using CF Autoroot
4. Remained on Stock 5.0 + Root (Stock bootloader/recovery)
- 1st "OFFICIAL" ROM came out so like the gentle flash'aholic I am, I rushed and downloaded [ROM][Unofficial][5.0.2][alpha/wip] Resurrection Remix v5.2.6[victara]
1. I installed TWRP via the Google Play App, (I think i was on 2.8.3.0)
2. Rebooted into TWRP, and did a FULL BACKUP (saved locally)
3. Formatted Davlik, System, Data, Internal Storage, Cache
4. Rebooted into TWRP, pushed the ROM files ([ROM][Unofficial][5.0.2][alpha/wip] Resurrection Remix v5.2.6[victara])
5. Flashed the ROM, GAPPS, SuperSU, Rebooted.
After about a minute of booting into the new ROM (new red loading animation) I started to get "encryption unsuccessful", and the only option was to factory reset phone, after which nothing happened, my guess was because of the custom recovery.
What was my error, and how do I prevent this from happening again?
My thinking is that wiping the Cache/System/Data/Internal/Davlik partitions somehow messed up some function someplace?
To fix it I took steps in this thread (http://forum.xda-developers.com/moto-x-2014/help/lollipop-update-failing-how-troubleshoot-t2961633) - thanks @randyklein
-Download "Official 4.4.4 Full Restore Images" from http://www.graffixnyc.com/motox.php# and extract. Move recovery.img, boot.img, and system.img into adb folder
-Boot into fastboot, plug in USB
-Using mfastboot v2, run the following commands:
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
How do I avoid this in the future if I decide to try a custom ROM/Recovery again?
Same problem...
Format data in twrp to fix encryption error
CWick4141 said:
Format data in twrp to fix encryption error
Click to expand...
Click to collapse
will i lose my twrp backup ?
marquesini said:
will i lose my twrp backup ?
Click to expand...
Click to collapse
Data partition just stores your apps (if not pre-loaded into system partition via ROM), and any data associated with them, so it leaves the Internal SD Card partition alone.
What concerns me is that I already wiped data, and I think I formatted the data partition as well, and still had the issue.
I'll have to try again soon.
I did a full wipe and then formated the data, then installed the ROM,gaaps,and supersu beta.
Got it working with root.
Shemploo said:
Data partition just stores your apps (if not pre-loaded into system partition via ROM), and any data associated with them, so it leaves the Internal SD Card partition alone.
What concerns me is that I already wiped data, and I think I formatted the data partition as well, and still had the issue.
I'll have to try again soon.
Click to expand...
Click to collapse
Formatting data in twrp is not the same as wiping data
CWick4141 said:
Formatting data in twrp is not the same as wiping data
Click to expand...
Click to collapse
True, that is why I said in above post that I think I formatted it as well, but being as I'm not certain I'll have to do it again to be sure.
Shemploo said:
True, that is why I said in above post that I think I formatted it as well, but being as I'm not certain I'll have to do it again to be sure.
Click to expand...
Click to collapse
You would know if you formatted data since it erases everything including internal storage
CWick4141 said:
You would know if you formatted data since it erases everything including internal storage
Click to expand...
Click to collapse
Alright, I booted TWRP, and clicked "Data" then "Repair/Change File System" it's currently showing f2fs, my format options are EXT2, EXT3, EXT4, FAT.
I think I want EXT4 right?
UPDATE: I tried EXT4 as every partition seems to use it, and from past experience, and It's working!.
Thank you for nudging me in the right direction.
edit: wrong thread
I recently updated my TWRP to the latest and official version of 3.1.0, but now after updating it i am facing a new bug.
Whenever i wipe cache and dalvik cache it say's in the end "Unable to mount Storage"
Someone please help
You have some partitions encrypted.
Decrypt your phone and try again.
Some ROM have encryption activated, initially.
Testerofroms said:
You have some partitions encrypted.
Decrypt your phone and try again.
Some ROM have encryption activated, initially.
Click to expand...
Click to collapse
Could you please tell me how to decrypt? I am using RR rom 7.1.1 official
Prayas29 said:
Could you please tell me how to decrypt? I am using RR rom 7.1.1 official
Click to expand...
Click to collapse
Mmmh it seems, that you can not.
please go there and read:
http://forum.le.com/us/index.php?threads/issue-whit-leeco-update.2383/
In addition you should also google for "android encrypt" or perhaps for "android 7 encrypt" ?
This feature exists already since Android 5...
Testerofroms said:
Mmmh it seems, that you can not.
please go there and read:
http://forum.le.com/us/index.php?threads/issue-whit-leeco-update.2383/
In addition you should also google for "android encrypt" or perhaps for "android 7 encrypt" ?
This feature exists already since Android 5...
Click to expand...
Click to collapse
Even though it says unable to mount storage i am able to see all the files in my storage and access them
Prayas29 said:
Even though it says unable to mount storage i am able to see all the files in my storage and access them
Click to expand...
Click to collapse
Please read this thread:
Indian stock ROM LeMax2 EUI 5.8 15s
/data is encrypted with a factory password
-> no way to make it accessable for TWRP.
so you need to copy the content and after that, you need to wipe this partition
Testerofroms said:
Please read this thread:
Indian stock ROM LeMax2 EUI 5.8 15s
/data is encrypted with a factory password
-> no way to make it accessable for TWRP.
so you need to copy the content and after that, you need to wipe this partition
Click to expand...
Click to collapse
I had done that earlier when i flashed TWRP for the first time and after that nothing like this showed. I am seeing this again after updating it again to 3.1.0.
So i will have to factory reset it again to make itwork properly?
And do i have to do it every time i update my TWRP?
And also what all should i wipe?
Should i wipe my whole phone storage?
Prayas29 said:
And also what all should i wipe?
Should i wipe my whole phone storage?
Click to expand...
Click to collapse
wipe /date and /cache
---------- Post added at 17:49 ---------- Previous post was at 17:46 ----------
Prayas29 said:
I had done that earlier when i flashed TWRP for the first time and after that nothing like this showed. I am seeing this again after updating it again to 3.1.0.
So i will have to factory reset it again to make itwork properly?
And do i have to do it every time i update my TWRP?
Click to expand...
Click to collapse
the stock boot is always checking of /data is encrypted or not.
if /data is not encrypted, it will start encrypting while booting.
decrypt key is not known.
Testerofroms said:
wipe /date and /cache
---------- Post added at 17:49 ---------- Previous post was at 17:46 ----------
the stock boot is always checking of /data is encrypted or not.
if /data is not encrypted, it will start encrypting while booting.
decrypt key is not known.
Click to expand...
Click to collapse
Thanks for the help but one more question is that will this happen again if i dont update my TWRP? Or only while updating it encrypts the data?
Sorry for all the noob questions. I am not so techy guy so these things are new to me
Prayas29 said:
Thanks for the help but one more question is that will this happen again if i dont update my TWRP? Or only while updating it encrypts the data?
Sorry for all the noob questions. I am not so techy guy so these things are new to me
Click to expand...
Click to collapse
You will never have access to /data with TWRP,
if you can not provide the correct password.
This password is set by the manufacturer and not public yet.
If you boot the system you will have access to /data.
If you boot the TWRP you will not have access to /data.
This is not related to any update..
Testerofroms said:
You will never have access to /data with TWRP,
if you can not provide the correct password.
This password is set by the manufacturer and not public yet.
If you boot the system you will have access to /data.
If you boot the TWRP you will not have access to /data.
This is not related to any update..
Click to expand...
Click to collapse
But i used to wipe my cache and do flash ROMs earlier and it never said unable to mount storage. It started doing this recently
Prayas29 said:
But i used to wipe my cache and do flash ROMs earlier and it never said unable to mount storage. It started doing this recently
Click to expand...
Click to collapse
Believe me or read the other threads regarding default encrypting Android versions..
/cache is cache
/data is all your userdata and apps
/system is the os
/boot is bootloader
/recovery is the TWRP
there are more mountpoints, you can see them if you click on mount in TWRP.
I wrote /data encrypted and you wrote /cache wiping.
Testerofroms said:
Believe me or read the other threads regarding default encrypting Android versions..
/cache is cache
/data is all your userdata and apps
/system is the os
/boot is bootloader
/recovery is the TWRP
I wrote /data and you wrote /cache.
Click to expand...
Click to collapse
Dude i meant that how suddenly it happened on its own i used to wipe cache and other stuff but never it has shown the unable to mount storage error thats what i meant i believe you i just want answers
Prayas29 said:
Dude i meant that how suddenly it happened on its own i used to wipe cache and other stuff but never it has shown the unable to mount storage error thats what i meant i believe you i just want answers
Click to expand...
Click to collapse
Also it doesn't ask for any password or anything just says unable to mount storage at the end while wiping cache and dalvik cache. I havn't flashed anything since some time soo can't tell if flashing ROM will work or will it show some error.
But a few months ago NO error was displaying and everything was fine
Prayas29 said:
Also it doesn't ask for any password or anything just says unable to mount storage at the end while wiping cache and dalvik cache. I havn't flashed anything since some time soo can't tell if flashing ROM will work or will it show some error.
But a few months ago NO error was displaying and everything was fine
Click to expand...
Click to collapse
You think, it's perhaps related to TWRP version?
Well then you can boot the version before or another version w/o flashing...
Guide to start TWRP remotely
enable OEM unlocking in developer settings
boot into fastboot mode (power and Volume down)
fastboot boot twrp.img
TWRP chinese version
You need to switch the language away from chinese.
Other TWRP versions are listed here
http://www.hackleaks.in/2017/01/all-about-leeco-le-2-x522-x526-x527.html
How to remove decryption in storage? I tried Andy Yans script but it doesn't work for me. It stays on the Android splash page but doesn't boot into system. I installed the script after I wiped data.
I would like to try custom kernals.
hanzzi said:
How to remove decryption in storage? I tried Andy Yans script but it doesn't work for me. It stays on the Android splash page but doesn't boot into system. I installed the script after I wiped data.
I would like to try custom kernals.
Click to expand...
Click to collapse
Format data, the one where u need to type yes(you lose all internal)
disable force encryption is used before first boot of a new vendor firmware to prevent encryption, it wont decrypt.
Mooatreides said:
Format data, the one where u need to type yes(you lose all internal)
disable force encryption is used before first boot of a new vendor firmware to prevent encryption, it wont decrypt.
Click to expand...
Click to collapse
Thanks for the reply but I'm still a little unsure. I can't seem to find format data where you have to type yes. In Twrp I go to advance wipe and just select data and I have to slide the bar to the right. Then I install the script. Is this wrong?
hanzzi said:
Thanks for the reply but I'm still a little unsure. I can't seem to find format data where you have to type yes. In Twrp I go to advance wipe and just select data and I have to slide the bar to the right. Then I install the script. Is this wrong?
Click to expand...
Click to collapse
Yeah it says advanced wipe, and format data, tap format data and type yes.
Long story short, I've been trying to get into my internal storage via TWRP but its saying that there are 0MB in the internal storage and that there is nothing in the sdcard folder
I've tried formatting it, hasn't worked
I've tried changing the format to FAT and then back to EXT4
then after that didn't work i tried the same but with EXT2 , it showed the amount of storage but still didn't let me see what was inside of the sdcard folder, whenever i'd go in there its just completely empty
Can I please have some help with this, I've been stuck on this for a couple hours now
Ouch! Please don't say that you just formatted userdata (/data).
You've just killed all your data on your phone.
No, I'm not that experienced with TWRP and I don't know which versions under which circumstances it can mount userdata.
I use custom recoveries and just presume that I can't mount userdata in them.
In the normal system (which mounts and decrypts) I use normal tools to sync or backup.
Renate said:
Ouch! Please don't say that you just formatted userdata (/data).
You've just killed all your data on your phone.
No, I'm not that experienced with TWRP and I don't know which versions under which circumstances it can mount userdata.
I use custom recoveries and just presume that I can't mount userdata in them.
In the normal system (which mounts and decrypts) I use normal tools to sync or backup.
Click to expand...
Click to collapse
I didn't format data it self i meant that i factory reset it, sorry i should of been a lot more clear on that
Oh, ok.
Well, in any case, if it's encrypted you need to mount it not with a simple "mount" command but something fancier using dm.
They don't try to make it easy to do.
Unless you're destroyed your system and you're trying to recover your data, whatever you're trying to do is best done in the normal system.
never mind i found a fix for it
well not really a fix just a way around it
thanks for the help ^^
SoftieIsVibing said:
never mind i found a fix for it
well not really a fix just a way around it
thanks for the help ^^
Click to expand...
Click to collapse
I had the same issue so I flashed a raw firmware after taking full system backup. Now TWRP is working fine.