This is to share my experience that i encounter yesterday. I'm running on Stock Rooted Gingerbread 2.36.405.8.
Setting > SD & phone storage > Factory data reset
That 'Factory data reset' will also format/delete your SD card!
Spend nearly the whole night in trying to retrieve all the data that have being lost especially the photos taken. Also found out that the "HTC Sense" sync able to restore all my sms.
But still sad that some of the photos are not able to be retrieve....
EDIT: Thanks to Faugusztin for the info. Take Note: There is a check box if enabled/check, will erase the SD-Card too, in the Factory Reset.
never use that one.. always use from CMW
its just a sharing of experience. nothing is perfect, even CWM can 'c0ck' up too.
just to head up ppl abt the situation, cuz on Froyo, the same function didn't format/delete the SD card.
Maybe you didn't noticed, but there is a "Erase SD card" checkbox on the Factory data reset page. The card will be of course erased when you request it. But if you don't have that option checked, then the SD card will be left as is.
faugusztin said:
Maybe you didn't noticed, but there is a "Erase SD card" checkbox on the Factory data reset page. The card will be of course erased when you request it. But if you don't have that option checked, then the SD card will be left as is.
Click to expand...
Click to collapse
Yeah, you are right! I try it one more time without the checkbox, check, and yes the SD card is not formatted.
Maybe during my last time Factory Reset, i was too 'Gusto' to enable my battery to last 4 days, that i bull through without reading.
Anyway, thanks again!
Has anybody else run into issue with running out of space ???
I just reset my razr M last week to factory because i kept having issue with memory running out. i reset it last week and only reinstalled what i had to deleted a bunch of crap as well as rooting it since i was taking it back to factoory and losing all my setup i figured id root it so i could reset again and not lose stuff but now today it says im out of memory again and clearing cache of a few apps (which is how i was fixing it before reset ) doesnt seem to be working the cache isnt full on anything and i cleared the ones that did have anything built up.....
Any ideas ?? it worked a week without problems and i have plenty of space on SD card if only i could move apps to sd card ???
Any help would be great
Rpatton said:
Has anybody else run into issue with running out of space ???
I just reset my razr M last week to factory because i kept having issue with memory running out. i reset it last week and only reinstalled what i had to deleted a bunch of crap as well as rooting it since i was taking it back to factoory and losing all my setup i figured id root it so i could reset again and not lose stuff but now today it says im out of memory again and clearing cache of a few apps (which is how i was fixing it before reset ) doesnt seem to be working the cache isnt full on anything and i cleared the ones that did have anything built up.....
Any ideas ?? it worked a week without problems and i have plenty of space on SD card if only i could move apps to sd card ???
Any help would be great
Click to expand...
Click to collapse
Do a safe boot. Power up & hold the vol down key, once you see the first splash logo, all the way home.
But I think you need a RSD lite restore. LOOK around with a real browser. I posted a House of Moto link in the general forum. There is one "stock restore" in my stickys
FDR doesn't always clear all the data. Do like Avi said and do a complete restore. Also, the phone doesn't have a lot of memory, so get rid of any apps that you don't use. There's no point in having hundreds of apps if you never use them. I DL less than 20 apps on both my phones and most of them are for root functions and a few "useability" apps.
If you have any big games (like Gameloft and EA games for example), they sometimes use gigs and gigs of space so you don't even need very many apps to fill up your /data partition.
What I do is move the gigs of data off the /data partition and to physical sdcard using the Directory Bind app. You will need to be rooted to use the app.
So recently my device stopped recognizing the SanDisk 64gb micro-SDXC I had formatted as internal storage. As far as I am aware when you format a SD this way the phone turns it into an encrypted volume and stores the key on internal storage, presumably somewhere the user cannot normally access it. The card itself is not dead, plugging it into my computer verifies this, but I cannot access it. I think some write operation failed and made it invisible to the phone. the phone did the same thing to a 128gb PNY card, but I reformatted it on PC, then reformatted it again on the phone and now the PNY is working fine. my question is, is there any way to extract the encryption key for my 64gb card(Root based tool or otherwise) from the card profile on my phone and decrypt it on a PC so I can reclaim my data? The phone still has a profile for the card, so presumably the key is still in internal storage somewhere. I had about 40gb of media on that card that I had not backed up (photos, videos, music and such). My ohone is not currently rooted but i wouldnt mind rooting it if someone has a root only solution.
I would wipe cache, then data then try another ROM.
sciencetor2 said:
So recently my device stopped recognizing the SanDisk 64gb micro-SDXC I had formatted as internal storage.
Click to expand...
Click to collapse
It is possible, though I have not done it before, I avoid adoptable storage for this reason. Do NOT wipe your ROM, or you will permanently lose your encryption key to your data that you have on the card.
If you put the SD card into a Linux PC that can recognize the partitions (Windows will not show it), you will see two partitions, android_meta and android_expand. To decrypt the big one, android_expand, you will need to recover your key from the phone.
To recover the encryption key, you will need either root access or a custom recovery like TWRP, to access '/data/misc/vold' to retrieve the encryption key (aes-cbc-essiv:sha256). Save the .key file to somewhere safe.
Then something like
dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdb2` crypt \
aes-cbc-essiv:sha256 00010203040506070809010a0b0c0d0e0f 0 /dev/sdb2 0"
mount -t ext4 /dev/mapper/crypt1 /mnt/1/
More info here - http://nelenkov.blogspot.com/2015/06/decrypting-android-m-adopted-storage.html
Once you have recovered your data, reformat the card and use it as portable storage
SenK9 said:
More info here -nelenkovDOTblogspotDOTcom/2015/06/decrypting-android-m-adopted-storageDOThtml
Once you have recovered your data, reformat the card and use it as portable storage
Click to expand...
Click to collapse
(url edited due to new user restrictions)
Thank you! this is exactly what I was looking for, but i couldn't find anything on google about anyone figuring out all the details (encryption key location, encryption method, usable tool for decryption)
now is there any way i can root, extract the key, then unroot so that i can RMA the phone? It seems to now render any sd i put into it unreadable by itself within about 5 minutes of formatting, regardless whether i format as internal or portable. not sure if this is hardware (reader malfunction) or some software is writing to the card incorrectly, but it is now doing it consistently.
sciencetor2 said:
(url edited due to new user restrictions)
Thank you! this is exactly what I was looking for, but i couldn't find anything on google about anyone figuring out all the details (encryption key location, encryption method, usable tool for decryption)
now is there any way i can root, extract the key, then unroot so that i can RMA the phone? It seems to now render any sd i put into it unreadable by itself within about 5 minutes of formatting, regardless whether i format as internal or portable. not sure if this is hardware (reader malfunction) or some software is writing to the card incorrectly, but it is now doing it consistently.
Click to expand...
Click to collapse
I do not believe it's possible to root or change the recovery without unlocking the bootloader, unless there's some other method I'm not aware of. Even MM systemless root method - http://forum.xda-developers.com/mot...t-moto-x-style-xt1572-br-marshmallow-t3259380, requires unlocking the bootloader, which of course then technically voids the warranty.
However, in this case, it might be worth contacting Moto to inform them of what's happened, it's definitely some kind of bug in the software which has caused this, and thus you are stuck in this catch-22 situation. They might make an exception or have some other solution. Let us know how you go.
SenK9 said:
... requires unlocking the bootloader, which of course then technically voids the warranty. ...and thus you are stuck in this catch-22 situation.
Click to expand...
Click to collapse
Even more of a catch 22 situation, because if i read that correctly, the process for unlocking the bootloader also requires wiping the phone (and thus, the encryption keys) (i miss geohot with his 1 click soft roots). I will wait a little while and see if I or anyone else reading this thread can find a way around that, but it seems ill have to contact Moto support either way, since my 16gb model is barely usable without an SD card.
This is another example of why taking control of your phone before something goes wrong is so important.
Did you try wiping cache yet?
lafester said:
This is another example of why taking control of your phone before something goes wrong is so important.
Did you try wiping cache yet?
Click to expand...
Click to collapse
I checked the recovery menu but there didn't seem to be an option for wiping cache on this device (recovery menu was a little different than I am used to, only had option for factory reset) Also, while wiping cache might conceivably prevent it from screwing up future cards, I don't know if it will fix this one, and i'm not sure if i wanna risk wiping anything without getting my hands on the encryption keys first. if it becomes apparent that i'm just not getting root without wiping, then I'll try playing around with recovery options to at least get back SD slot usage.
You can erase cache in fastboot. If you are locked there is no way to root without wiping data.
lafester said:
You can erase cache in fastboot. If you are locked there is no way to root without wiping data.
Click to expand...
Click to collapse
Isn't that what the setting "OEM Unlocking" under "Developer Options" is for? I thought I read that, if you enable this option before you unlock the bootloader, it allows you to unlock without the wipe/factory reset?
YITBOS said:
Isn't that what the setting "OEM Unlocking" under "Developer Options" is for? I thought I read that, if you enable this option before you unlock the bootloader, it allows you to unlock without the wipe/factory reset?
Click to expand...
Click to collapse
I hadn't heard that... Got a source?
YITBOS said:
Isn't that what the setting "OEM Unlocking" under "Developer Options" is for? I thought I read that, if you enable this option before you unlock the bootloader, it allows you to unlock without the wipe/factory reset?
Click to expand...
Click to collapse
No all that does is allow you to unlock (providing you have a key of course).
well it looks like nobody has found a non wiping solution to root my phone, so I'm going to have to give up on the data and see if I can get back SD functionality, or just RMA the phone. I think i will also publish a script that allows you to plug in your phone and the SD at the same time and allow you to decrypt an internal formatted card by pulling the keys and using them to mount the drive to help people who are in similar situations, but have root. Thanks anyway for the help.
Hi Everyone, I'm stuck in the same catch 22 situation. Device is not rooted or bootloader unlocked, so can't access the key, and trying to root/unlock bootloader will wipe the keys. Any updates, @sciencetor2??
Have you written to Motorola/google about this?
I'm still not ready to give up on the data... hundreds of vacation pictures, that couldn't get backed up.
I'm in the same boat any good news on this?
As long as the phone can see the card, you can change it to portable storage. However, if something goes wrong and phone can not see the card anymore, it's nearly impossible to access the volume without the retrieving the key from the phone, and you must root the phone in order to get the key, as I understand.
I have another similar problem, SD card becomes locked writing and disappears from phone, even I used it as portable storage. And the card can't be formatted at all. So I believe the phone somehow does something and change the state of SD card!
Did anyone find a solution yet. Stuck with same problem. Will loose very important data.
Same here.
I adopted my sdcard as internal storage in CM13.
It was constantly in bootloop, so I formatted the internal memory of the phone to install a new rom ...
But now I can not recover the data within the sd because I can not access it nor with the new rom (I can not even mount it from TWRP) nor from a linux PC (the filesystem is unknown).
Pretty much ... I did not know that the sdcard adopted were encrypted!
Any solution? :\
Hello everybody!
Is there any way to recover the deleted ".key" file?
so i havent gotten back on this thread in a while but i think i at least figured out the "why" on why the card was no longer being recognized. it seems to come down to read/write speed. my 64GB and 128GB cards that i was having the issue with were both U1 cards, which means their read/write is only sitting around 10Mbps, and both of those had issues being detected by the phone after a little bit of time in use. I replaced the card in the same phone a few months back with a high throughput U3 card, and it has been running smoothly ever since. this leads me to the hypothesis that if the card is not fast enough for the phone's taste, it will just ignore it (or timeout on reads, not sure which is actually happening) which is leading to the issues we are experiencing. unfortunately this doesnt lead us to a solution for recovering from the existing cards, but hopefully it will help avoid making the mistake of using a slow card in the future.
I'm having some issues with trying to figure out how to free up space on my S5. I recently had to encrypt the phone to keep getting school email and it erased everything, however I'd been having issues in the past with low data notifications even though my apps and files are only taking up 1-2 of 12 gb total.
I went through root access and I've gone through a few menus looking for large files and I can't find anything. At this point, I tried doing a factory reset back into cyanogen and that didn't erase those files either.
I'm really confused as to why this is happening and would appreciate any help. I stopped updating nightlys because my phone was stable enough for day to day use and I was happy with it.
Can anyone please help advise me on how to get back to baseline since factory reset didn't clear the space? Or point me to a few threads to try to figure it out. I've spent all day trying to figure this out and I'm getting nowhere.
Edit: Internal storage says 11.17 of 11.58 gb used. Apps are only taking up 888mb. I feel like android system files are taking up the rest due to some error, but I can't figure out what's doing it. Already did a factory reset and dalvik cash reset. I lost all my apps when the phone encrypted and it says there's insufficient storage to add any now even though they were there this morning.
Thanks so much!
I managed to clear out enough space to download DiskUsage and in /data I have files marked lost+found that are taking up about 10 gigs of space!
I tried to delete the files through the program since I've read that these are safe to delete, but I get an error message saying that the files don't exist.
So I made some progress, but I'm still stuck! Does anyone have any insight? It seems like there's a lot of corrupt data here for some reason.
Hi,
So I actually think this issue may be two fold. But first, I must say that to date, the GN4 had been the best handset I've had to date hands down.
Ever since I've updated to Marshmallow however, on occasion the handset will suddenly shutdown due to reported battery drain. This typically occurs around 30% mark. I've seen on some forums that by doing a factory reset could resolve this.
In preparation to do this reset, I decided to decrypt my handset including card so that I could back up my data. However, during the decryption process the handset shutdown. In restarting the GN4 (N910c) the card is now no longer able to mount (getting card not inserted).
If I connect the card to my pc/mac I can see my data filenames but unable to open some of them presumably due to encryption from the GN4. I have managed to create a backup of the card, with what looks like partially encrypted and decrypted files (looks like it was cut off 50% of the way) so i guess what i want to do now is copy those files to a new card and then decrypt the remainder somehow.
I haven't performed a factory reset yet, and I really don't want to lose that data so I've bought a new card. Does anyone have an idea on what I can do to decrypt the data on the new card? I do have the initial GN4 password used to encrypt.
Thanks!
Cheeky bump.. Anyone have a clue?