i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
k2828 said:
i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
Click to expand...
Click to collapse
As stated many many times. The only recovery you can use is TWRP. Your sdcard shows 0 mb because it became part of your internal storage. So reflash TWRP and try again.
after flashing cwm i did nothing but booting once the rom and notice that everything was wipped and then flash twrp.
the result is i cant axcess my sdcard as the rom sais that the sdcard needs to prepared.
so my question is, can i recover the data on the sd card?
Not if you're at the point where the card needs to be prepared. What you should have done if you wanted to decrypt the MicroSD, is pulled the data off both card and internal storage, then gone into Settings > Storage & USB and converted the card to portable storage.
One thing. With CWM running, did you have any nandroid backups? If you did, you likely will have to reinstall CWM to free up the internal storage reserved for the nandroid backups. CWM by default allocates space for its nandroid backups that cannot be touched by the system or TWRP. Once you do that, you can then reinstall TWRP.
OK THX. I just created a image of the SD card.maybe in the future there will be a toop to decrypt such SD cards. For the future:
Is the SD card lost everytime i update the Rom build?
Is the SD card lost Ehen i change the Rom to another Android 6 Rom?
What do i have to do when updating to a Newer build oft the same rom,vor change to another Android 6 rom? Pull everything from bouth cards? Really? Thats a pain in the ass even with a uhs 1 SD card.
Whats the best way for backing up the data, so i can cop them back without trouble? Maybe ADB?
Whats about changin the recovery? Thats a nogo i think and whats about updating twrp?
What is a absolut nogo? What i ahouldnt do to f*** up the card again?
So many questions, but I'm going to answer just the last two, as their answer covers every other question in your post.
What is an absolute no go? What shouldn't I do to f*** up the card again?
Click to expand...
Click to collapse
The answer to this is so easy it's astounding. The answer is to not combine the card with the internal storage. Here's why. If you switch ROMs regularly in order to try them out, every single time you combine the storage the card has to be prepared for use, which means all data on it gets wiped. If you do a clean install of your current ROM and combine the storage, all data on the card is wiped. The reason the card gets wiped is because Android 6.x creates a virtual volume which spans both internal storage and the MicroSD. In order to ensure the data is secure Android encrypts the volume. This encryption is part of the reason Google throws up a warning to restore the card if you pull it out of the device.
By not combining the storage, you avoid the encryption problems, but you do have to deal with the issue of apps not seeing the MicroSD card. Unless an app with this issue is no longer being updated, this problem will resolve itself. Developers have to adapt to the new setup.
The encryption also impacts performance, though on my tests with it I didn't notice anything. The one thing it will do is impact the ability to perform backups. In my tests, the encryption prevented TWRP from doing anything useful, meaning no ability to install flashable zips or updated TWRP recovery images from the storage and no ability to do nandroid backups. TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD. TWRP's developers will need to adapt to this and custom ROM developers will have to recommend that users not combine storage.
Strephon Alkhalikoi said:
So many questions, but I'm going to answer just the last two, as their answer covers every other question in your post.
The answer to this is so easy it's astounding. The answer is to not combine the card with the internal storage. Here's why. If you switch ROMs regularly in order to try them out, every single time you combine the storage the card has to be prepared for use, which means all data on it gets wiped. If you do a clean install of your current ROM and combine the storage, all data on the card is wiped. The reason the card gets wiped is because Android 6.x creates a virtual volume which spans both internal storage and the MicroSD. In order to ensure the data is secure Android encrypts the volume. This encryption is part of the reason Google throws up a warning to restore the card if you pull it out of the device.
By not combining the storage, you avoid the encryption problems, but you do have to deal with the issue of apps not seeing the MicroSD card. Unless an app with this issue is no longer being updated, this problem will resolve itself. Developers have to adapt to the new setup.
The encryption also impacts performance, though on my tests with it I didn't notice anything. The one thing it will do is impact the ability to perform backups. In my tests, the encryption prevented TWRP from doing anything useful, meaning no ability to install flashable zips or updated TWRP recovery images from the storage and no ability to do nandroid backups. TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD. TWRP's developers will need to adapt to this and custom ROM developers will have to recommend that users not combine storage.
Click to expand...
Click to collapse
thx for your very detailed answere. but whats about when i am using i.e. kushan rom build 07.12.2015 and i update to kushan rom build 11.12.2015. will the sd card have to be prepared to use also? and what about when i update twrp to a marshmellow support twrp. di i need prepare the sd card then again?
TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD.
Click to expand...
Click to collapse
This is the point where my trouble began. as so as the sd card is prepared as internal you cant even see files of the real internal storage. flashing zips you can still do with adb sideload. another question could we backup the internal flash inlcuding prepared sd card with this:
http://forum.xda-developers.com/showthread.php?t=1818321
?
If yes, is there also a way to restore the backup made?
To make things crystal clear, once the card is set for portable storage you will not have to reconfigure the card again unless you choose to combine the storage. Upgrading a ROM to a newer version will generate a message in the notification bar that you have to prepare the card, but you simply select the portable storage option and the notification goes away. Upgrading TWRP doesn't require doing anything to storage.
Should you choose to combine storage, upgrading a ROM may cost you whatever is on both the internal storage and microSD. Upgrading TWRP with combined storage would require you to flash it using Odin, because you wouldn't be able to copy the TWRP image to the device storage.
Backing up the internal storage doesn't require anything more than a copy operation from the S4 to the PC, so no special tools should be required. That applies regardless of whether the storage is combined or separate. However, for best results with TWRP, the storage should not be combined.
Sorry for reviving this old thread, but I've the same issue.
I flashed a new rom without getting the decryption code or backing anything up(No NANDs, no sd backup). Is there still currently no way to retrieve the files that are encrypted on this SD?
I've done exactly the same, I'm hoping theres a way to decrypt it.
k2828 said:
i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
Click to expand...
Click to collapse
Have you found solution to decrypt the Sdcard.
I was facing this problem for almost 1 year I need only sdcard not data in it but I am unable to format it due to encryption but any device able to read the data and copy from that.
Even I can play Music out that SD card
Unless you're immortal, you're not decrypting the MicroSD card via brute force. Currently, the amount of time required to find the decryption key is longer than the current age of the universe.
If looking to simply format an existing card, use SDFormatter from http://www.sdcard.org.
Hello,
I root my n6p and decrypt the user data. After I flash SinLess Rom and now are my system and internal sd card write protected. I can't do a titanium backup (say not enough space), chrome don't download and I can't delete files with file manager. Can anyone tell me please how I get write permissions?
Hello, in this thread I'll show you how to move the /data partition to your microSD card in order to increase the storage space, and bypass the speed limits of our poor eMMC memory.
Disclaimer:
I'm not responsible for any data loss or any other kind of problems. Follow the tutorial and everything will be fine. In case of problems, reflash the boot.img of your ROM or reflash the whole ROM and you'll reboot to Android using the usual /data partition.
Pros:
more storage space
slightly shorter app loading times
Cons:
you cannot eject your SD card from your phone when it is turned on
Requirements:
a computer
some kind of adapter to put the microSD into the computer
a 16 GB (or higher), class 10 (or better) microSD
Any recent L (untested), M (tested) or N (tested) ROM and TWRP 3
these two zips: https://www.androidfilehost.com/?w=files&flid=113749
Step 0: prepare the SD card
using your computer, shrink the only partition you have on your SD card and leave at least 6 or 7 GB of unallocated space. Be sure not to shrink too much the first partiton (which will continue to be used as a normal storage partition) because you'll have to store a nandroid backup in it! This is why I recommend you to use a 32 GB SD card. Then create a new partition using the unallocated space. If you're using Windows or OS X, create a fat32 partition, if you're using Linux, create an ext4 partition.
Step 1: patch the recovery and backup, then restore
In the AFH folder I posted in the requirements you'll find two zips. Download them and reboot to recovery, then take a nandroid backup of your /data partition and store it on your SD card (TWRP will automatically use the first partition of the SD card, the one with all your current content). Now flash twrp_fstab_patcher.zip. Power off your phone and then turn it on and boot into TWRP. Now go to Wipe > Advanced Wipe > select Data > Change Filesystem > choose ext4 or f2fs (as you prefer). Confirm and check that the Data partition has been formatted to the chosen filesystem. Restore the backup you've made.
Step 2: migrate the data of the internal storage
Reboot to Android and using a file manager that lists both of your SD card's partitions (FX works for me) and copy all the content of your internal storage (photos, music, app data etc.) to *2nd_sdcard_partition*/media/0.
Step 3: patch the kernel
Now you're ready for the last step. Flash kernel_fstab_patcher.zip and reboot. The end!
Warning: you need to reflash kernel_fstab_patcher.zip after you change/update ROM/kernel otherwise your phone will use the "old" data partition! Similarly, you must flash twrp_recovery_patcher.zip each time you update TWRP 3 (this doesn't happen very often).
Well, I hope I put all the needed info in this thread, I'll keep it updated with my latest suggestions etc. If you have got problems, report them. If you find something that doesn't make any sense in this post, tell me. Enjoy!
Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recovery-internal-storage-android-phone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
Johnn78 said:
Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recovery-internal-storage-android-phone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
Click to expand...
Click to collapse
Nope. No way to get the lost data.
first of all this is not a place to post this ?
i request thread mods to move it to proper place ??
Ojaswi said:
Nope. No way to get the lost data.
Click to expand...
Click to collapse
Anyway, how to dump my entire internal storage as raw file ?
I followed this method and I was able to successfully dump my phone internal storage data into raw. But please be aware that successful recovery of your data from the dump file is not quaranteed.
Please read carefully the instructions and always make a backup before u proceed.
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
davidbiate said:
I followed this method and I was able to successfully dump my phone internal storage data into raw. But please be aware that successful recovery of your data from the dump file is not quaranteed.
Please read carefully the instructions and always make a backup before u proceed.
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
Click to expand...
Click to collapse
In the beginning writes "This method does not seem to work on newer phones that apply TRIM or some other type of partition clearing implementation. If anyone has recovered their data on a device newer than Android 4.3 please pm me and let me know." Does it mean that it is for older mobiles or you did it for Mi A1 with android 8.1 ?
hi ,
my mobile switch off mi redmi 5 pro note internal storage how to recovery
deleted
assuming you're talking about /sdcard what is just a bind mount of /data/media/0 and not related to /external_sd MicroSD card, that indicates your whole phone storage is encrypted.
no-verity-opt-encrypt-6.1.zip does not decrypt phone, it is prerequisite to run phone unencrypted. to remove encryption, formatting userdata is required (aka factory reset)
however the mentioned zip has a bug, it will mix up file-based encryption with full-disk encryption.
Luckily it does not have any effect on read-only vendor partition, as it tries to modify /vendor/etc/fstab.* file.
official TWRP is capable of decrypting userdata partition (except for stock samsung encryption), it will ask for lock screen pin. if it's a pattern you can translate into password (not sure TWRP provides pattern screen, though)
https://twrp.me/faq/openrecoveryscript.html
if you're talking about encrypted MicroSD Card that is probably Samsungs own encryption feature and can only decrypted within the ROM itself.
https://www.samsung.com/ca/support/mobile-devices/galaxy-phone-use-a-microsd-card
deleted