SDCARD (as internal storage) not recognized (file system corrupt?) - Moto G 2015 Q&A, Help & Troubleshooting

Hello, my device doesn't recognize my external sdcard I formatted as internal storage any more. I assume that the file system is corrupt. I tried to open it on a linux-based OS on my computer but it didn't work because the file system is (hopefully not) encrypted. As my last backup is 3 months old, it would be not so nice if I would loose all my photos I made until now.
I tried to acces it via ADB but it didn't work. Is it possible to repair the (encrypted) file system?
Thanks in advance.

if memorycard is encrypted, it will not work in any phone as normal SD card,
what we must do is .. Format as External by keeping in same phone , then memory card will work in other devices ( your data will be lost )

of course I can format it. But I like to repair the file system because I don't want to loose my data.

thirdpartycookie said:
of course I can format it. But I like to repair the file system because I don't want to loose my data.
Click to expand...
Click to collapse
No I doubt it. Only your phone will recognize the encryption and if it becomes corrupted you'll probably lose your data. That's why I also have all my photos also backup to Google Photos.

I cloned the SD with dd on my computer. I'll buy a new card tomorrow to exclude hardware reasons. If this doesn't work, I have to reformat it.

It worked!
It seemed that I had read-only acces to the card cause of hardware failure. The 1:1 copy with dd worked, even with the 16 GB partition table (new card has 32 GB). Now I'm do a big Backup at first.

thirdpartycookie: Can u please explain , it's happened samething for my internal SD card

Related

[Q] How can i recover my data from a formatted windows phone 7 sd card?

my windows phone 7 (HD7) the rom crashed so there's only one way to make it work ,that is to restore it and lose everything on it to make it work,,,,but i want all the data on it ,so i took the sd card but ,unfortunately microsoft locked the wp7 sd card, so you have to format it to make it work on a computer ,i formatted it so i can use it on the computer and use a data recovery software to get my data back,,but nothing comes out except sometimes this file (ReadyBoostPerfTest.tmp) and i found out the microsoft didn't just locked the sd it's even used a strange file system not fat or fat32 or ntfs it's something else............
Sad news
sniper1ghost said:
my windows phone 7 (HD7) the rom crashed so there's only one way to make it work ,that is to restore it and lose everything on it to make it work,,,,but i want all the data on it ,so i took the sd card but ,unfortunately microsoft locked the wp7 sd card, so you have to format it to make it work on a computer ,i formatted it so i can use it on the computer and use a data recovery software to get my data back,,but nothing comes out except sometimes this file (ReadyBoostPerfTest.tmp) and i found out the microsoft didn't just locked the sd it's even used a strange file system not fat or fat32 or ntfs it's something else............
Click to expand...
Click to collapse
Sorry to tell you this but... you can't, WP7 uses a TFAT file system, that no os can read except for the same WP7, even if you can unlock the card without formatting it, how could you read the file system? now you have the card unlocked and formatted, no utility for dta recovery can help you because of the file system it has before... :crying:
I'm really sorry.
Kind regards.

Moto G 2015 - Photo Recovery

Hello Everyone. I have a MOTO G 3rd Gen with a 32 GB Class 10 Sandisk sdcard. I originally posted this issue on the Lenovo Forum MOTO G 3rd Gen - Photo Recovery (can't post a direct link just yet), where they suggested that I look here for advice.
I originally used my sdcard for portable storage, although I had to periodically move my photos from internal storage to the sdcard, I was satisfied with the operation of my phone. However, as I added a few apps, I started to have some issues with running out of space in internal storage IIRC.
Earlier this year, it appears that I picked up a virus, which caused Chrome to always want to open to what seemed to be a malicious page (don't recall exactly what now). I decided to do a factory reset using the Settings option to return to a clean installation of Android. I decided at that time to configure the sdcard as extended internal storage, and the process appeared to work properly.
A few months later, I started getting messages informing me that an app update failed because I had run out out storage. After some investigation, it looked like most (all?) of my apps were continuing to use the built-in internal storage rather than the sdcard's extended storage. I tried uninstalling my apps an then reinstalling them - hoping that reinstalled apps would take up residence on my sdcard but they did not. However, it looked like I had uninstalled a few too many programs and my phone lost a lot of its functionality.
One of the functions that it lost was the ability to connect to my PC with the USB cord. Another was the ability for my google contacts to sync with the phone. Yesterday, I tried everything I could thing of to back up my data but I could not figure out how to get the USB to work properly. I decided that I would do another factory reset and removed the sdcard as I knew a reset would wipe all of my data. I removed my sdcard but the factory reset through Settings did not work this time and I instead had to do a hard factory reset. My phone is now working properly with a minimal number of installed apps.
When I reinstalled my sdcard, my phone does not recognize it and wants to format both as portable and internal storage. I was hoping that it would pick up where it left off.
As a last resort, I thought I might have to format my sd card and then try to recover deleted image files. Do you have any advice about recovering the photos on my sdcard?
The last reply on the Lenovo forum was:
When you formatted the card as internal/adopted the card was encrypted amd the key was stored on the phone in a secure location. A reset has deleted the key.
Your data on the sd card is not recoverable as the card is encrypted and the key is lost.
Click to expand...
Click to collapse
Essentially, when I configured my phone to use my sdcard as extended internal storage, all I ended up with was encrypted portable storage. I would rather that there was a 3rd option for having unencrypted extended internal storage.
How would I get this into the Android developers suggestion box?
TP380Z said:
The last reply on the Lenovo forum was:
Essentially, when I configured my phone to use my sdcard as extended internal storage, all I ended up with was encrypted portable storage. I would rather that there was a 3rd option for having unencrypted extended internal storage.
How would I get this into the Android developers suggestion box?
Click to expand...
Click to collapse
No, you ended up with encrypted internal storage... The fact that you didn't understand it is the real issue.
Adopted storage is tied to not only the device, but the current installation... When an sd card is adopted as internal storage, a encryption key is generated semi-randomly and the file system is of the card becomes ext4 and encrypted, the system is decrypted automatically on boot because the key is stored in the phone. If you factory reset, it wipes your internal storage, which in this case is your sd card, and you would be fine. If you remove the card and factory reset, the key is gone forever and you have to reformat the card for it to be usable. So everything you were told in the Lenovo forums was correct, and the files are no longer recoverable by any known means.
your SD card would be nolonger useful , sorry to break this to you bro..
if your card is now encrypted state, i heavily doubt it would work again..talking of recovering photos,when encrypted.. HELL NO! it cant..
what i do is :
i always keep my memorycard as Portable, but not as internal to avoid such problems..
incase if i have formatted as internal, then while formatting or resetting.. i would take full bakup, and then Format as portable, then carryon resets..
i know these encryptions would give such a pain..
next time takecare of these issues..
suggestion: what i do is i install Googlephotos, it takes a backup of every photo & video which i have in either SDcard/internal .. so i would take necessary files while taking backup, to save time..
next time you try using GooglePhotos, it takes backup when i keep my phone in charge, (note: my internet is unlimited- so its ok for me)
acejavelin said:
No, you ended up with encrypted internal storage... The fact that you didn't understand it is the real issue..
Click to expand...
Click to collapse
Thank you for the very thoughtful reply. I thought that I understood my two sdcard formatting options but I obviously did not. When I first installed my sdcard, I selected portable storage as I did not want my sdcard to be encrypted. Only after discovering that the internal storage of my phone was inadequate for my very limited number of installed apps did I switch to encrypted adopted storage.
If I understand you correctly, the reason that the adopted storage storage is encrypted is because the internal storage is encrypted.
My expectation was that the phone would seamlessly treat the adopted storage as internal storage so I am still at a loss to understand why my phone would not automatically install apps into the available in the adopted storage.
TP380Z said:
Thank you for the very thoughtful reply. I thought that I understood my two sdcard formatting options but I obviously did not. When I first installed my sdcard, I selected portable storage as I did not want my sdcard to be encrypted. Only after discovering that the internal storage of my phone was inadequate for my very limited number of installed apps did I switch to encrypted adopted storage.
If I understand you correctly, the reason that the adopted storage storage is encrypted is because the internal storage is encrypted.
My expectation was that the phone would seamlessly treat the adopted storage as internal storage so I am still at a loss to understand why my phone would not automatically install apps into the available in the adopted storage.
Click to expand...
Click to collapse
No, anytime the SD card is adopted as internal storage it is encrypted... This is a privacy/security measure by Google and is not optional and it doesn't matter if your original internal storage was encrypted or not. Adopted storage basically brings the SD card into the "internal family" and it cannot be used elsewhere. Period (OK, yes, I know there is a way to get the encryption key and mount the volume in Linux, but it is still not perfect).
The reason it still wasn't treated as you expect is probably 2-fold... First, the Moto G3 has a tendency to miss the last step of adoption, called data migration, which is the act of moving existing data to the card and it needs to be initiated manually in many cases. Until this is done, the card is not used by Android except when you specify it because it doesn't think the card is ready yet. This can be done in Settings - Storage then selecting the 3 dot menu and Migrate Data. If this option doesn't appear or is grayed out, then the migration completed successfully (or you are using the card as portable storage, obviously).
The second reason is apps themselves... some of them have not been fully updated to the API standard used by Marshmallow and just don't honor the request to use the card as internal, and Android has a facility to allow this to happen for compatibility. It just uses the internal storage of the device so the app works. Some apps specifically request to be only on real device internal storage for whatever reason as well.
nandakis4 said:
your SD card would be nolonger useful , sorry to break this to you bro..
Click to expand...
Click to collapse
Thanks. Your sympathy is appreciated.
nandakis4 said:
if your card is now encrypted state, i heavily doubt it would work again..talking of recovering photos,when encrypted.. HELL NO! it cant..
Click to expand...
Click to collapse
I put my sdcard back in my phone just now and it did not recognize it. However, when I went to Settings > Storage and USB, I had no problem formatting it as portable storage.
nandakis4 said:
what i do is :
i always keep my memorycard as Portable, but not as internal to avoid such problems..
incase if i have formatted as internal, then while formatting or resetting.. i would take full bakup, and then Format as portable, then carryon resets..
Click to expand...
Click to collapse
I expect that this will once again cause me to have app storage space issues. I only ran into problems with data backups once I started uninstalling apps. I had hoped that uninstalling and then reinstalling apps would then cause the phone to correctly place them into adopted storage. I cannot believe that I was so careless as to not have downloaded my photos earlier but here we are.
After apparently successfully formatting my sdcard as portable storage, I went back and converted to adopted internal storage (also apparently successfully) just now. I've re-installed MS OneNote and my phone is reporting that is taking up 85.70 MB in Internal Storage. When I go to Storage and USB, I see that 44.46 MB is used of 28.32 GB of SanDisk SD Card and 3.00 GB of 4.53 GB is being used of Internal Storage. When I reinstall 63.40 MB MS Word, I see that I'm now using 2.97 GB of Internal Storage and 173 MB of SanDisk SD Card.
[As of 1:50 pm, my phone is now reporting using 3.00 GB of Internal Storage and 137 MB of SanDisk SD Card.]
It looks like adopted internal storage is working properly. I never previously suspected that there was a problem with adopted storage and installed several large apps. The storage space problem surfaced only when there was a MS OneNote update that would not install because of insufficient internal storage space.
nandakis4 said:
suggestion: what i do is i install Googlephotos, it takes a backup of every photo & video which i have in either SDcard/internal .. so i would take necessary files while taking backup, to save time..
next time you try using GooglePhotos, it takes backup when i keep my phone in charge, (note: my internet is unlimited- so its ok for me)
Click to expand...
Click to collapse
Thanks! I will try GooglePhotos. I hope I can set it up to only do backups when I'm connected to WIFI.

Corrupted my adopted SD storage during 5.1 update - is reformat my only option?

The update process hung for ages, so I restarted the device. This seems to have resulted in a corrupted sd card - which was being used as adoptable storage.
The tablet now no longer recognises that there's even an sd plugged in. If I connect it to my computer it seems like the partition table is still all there, but something fundamental has broken making it impossible to use the sd.
A brief Google seemed to suggest that, if it was even possible to recover the card, it would require reformatting. I'll do that if I have to, but I was hoping there was another option...
phunni said:
The update process hung for ages, so I restarted the device. This seems to have resulted in a corrupted sd card - which was being used as adoptable storage.
The tablet now no longer recognises that there's even an sd plugged in. If I connect it to my computer it seems like the partition table is still all there, but something fundamental has broken making it impossible to use the sd.
A brief Google seemed to suggest that, if it was even possible to recover the card, it would require reformatting. I'll do that if I have to, but I was hoping there was another option...
Click to expand...
Click to collapse
Most probably the update was taking long because ur sdcard isnt fast. I own a shield k1 with a 32gb extreme pro sandisk sdcard as adoptable storage full of games, the whole update took like 10min including the optimising apps part. And rebooting it midway of course corrupted its data that is encrypted specifically to your device, that's why it PC cant view its data (even the parts not corrupted). So ur best choice would be to format it.
Unfortunately, I think it must be properly dead. I tried to format it - in fact I didn't even get that far. When I went to delete the partitions in order to create and format a new one, cfdisk said the write had all worked, but, in fact, the old partitions remained intact. I tried some other software to re-partition it, but the result was the same.
no problem
use this app on windows ¨HP USB Disk Storage Format Tool v2.1.8 Español (Portable)¨
sure recover it
open with administrator
ever when i use win32diskimager , i need tu use only this program to recover all gigabites of my sd and usb memorys
sorry for my english im from spain!
good luck!!

Broken storage and /boot missing (or unmounted)

Hi,
so I have a really weird issue with my Redmi 6. As you've read from the title my phone's storage is broken and /boot is missing (or maybe unmounted).
Let me explain what happened.
So my bro needed 16 GB SD card for postmarketos (the SD card was in my phone) so I told him that he could have it. He had 4 GB SD card which wasn't enough for the postmarketos so he gave me the SD card. When I inserted it to my phone, MIUI asked me what to do with it. There were 2 options. Use it as external storage or extend internal storage so I selected extend internal storage. When the process was done, internal storage was unmounted... I tried mount /sdcard but it didn't work. Then I came across a video that has sm command in it and it was a partition management command or whatever. So I tried mounting internal storage, and it worked! BUT when I opened file manager it detected internal storage as USB. I literally have NO idea why (MIUI file manager detects it as USB but Google file manager detects it normally). I tried to fix it with the sm command, but I only made it worse... When I tried mixing the partitions I accidentally typed disks instead is disk (sm partition mixed disk"s":128,179 50). Then I think is started formating the partitions. I was lucky enough to cancel it, before it formats the whole /. It formated only the SD card and I think /boot. I don't think I can give any more info about what is did. I hope someone could help me.
Thanks for your time.
Sucharek
PS I don't have my phone rooted or unlocked bootloader or a custom ROM
Note: Everything happened when the phone was on
Please someone tell me a fix
I'm waiting almost a month and so far, no answer
Please, if you can, tell me a fix
Thanks
Hi guys I have an update that I reset my phone and everything works now!

How to prevent Android 11 from using the SD card?

Dear all,
the following problem might be unusual and the opposite of what other people want, but as the title says:
Is it possible to prevent Android 11 (and custom ROMs based on it) from writing to the external SD card? That is, I don't want apps or the O/S itself to store any data there. You now probably are asking yourself whether I have gone totally crazy, putting an external SD card into the phone and not wanting it to be used, so I'll give a bit of background:
I have a Samsung S9 plus Duos (G965F/DS) and have installed a custom recovery (TWRP 3.5.2) and a custom ROM (ArrowOS 11) onto it. Then I have installed SSHelper 13.2 and have put an external SD card into the phone.
I am taking backups very seriously. I don't want to root my phone, but nevertheless want bit-for-bit backups of all partitions or data, respectively. I don't have much data on the phone, but the data and the O/S configuration I *do* have must be regularly backed up no matter what. The backup must *not* be in the cloud. That led me to the following idea for the backup process:
- Boot into TWRP
- Let TWRP make the backup, using the partitions of the internal storage as source, and using the external SD card as destination
- Reboot to system
- Fire up SSHelper
- Copy the backup from the external SD card to a PC, e.g. via WinSCP.
That process works like a charm; I have done it several times.
[ Side note: The SSHelper / WinSCP combo is ingenious. It enables me to transfer data (e.g. backups) between my PC and my phone without involving the cloud and without having to pull out the external SD card all the time. Doing the latter every other day would probably damage the phone or the external SD card quite fast. ]
Now I have only one small problem left: Android itself of course recognizes the external SD card as well and installs a folder structure on it (e.g. Downloads, Movies, Pictures etc.). Although I actually haven't seen files (other than placeholders) in there yet, I have no clue if and under which circumstances apps or the O/S might put important data in these external SD card folders. I have to prevent the latter, because it would render my backup method (backup internal storage completely to external SD card) useless.
Hence the question: Is there a method to tell the O/S and all apps that they may read the external SD card, but under no circumstances must place data there?
Thank you very much in advance for any ideas!
P.S. I have seen many threads where users had problems with the external SD card, e.g. not being able to make apps use it or not being able to see its contents. But I somehow have the opposite problem: Of course, I need to see the external SD card's contents (which is no problem), but I want to prevent normal apps and the O/S from writing something there.
No you can't prevent android from creating default folders on it, but I'm pretty sure you can exclude them from backup.
Thank you very much!
However, excluding these folders from backup wouldn't be wise if Android or an app would have put data in them ...
D9yHyi8Fe3mo1YgM said:
Thank you very much!
However, excluding these folders from backup wouldn't be wise if Android or an app would have put data in them ...
Click to expand...
Click to collapse
Then don't exclude the whole Android folder, just some folders inside. Like /obb folder or system apps data inside /data
Or just exclude "LOST" or other cache folders.
D9yHyi8Fe3mo1YgM said:
Dear all
Is it possible to prevent Android 11 (and custom ROMs based on it) from writing to an SD card? That is, I don't want apps or the O/S itself to store any data there.
Click to expand...
Click to collapse
Assuming you are speaking of an External SD-card ( Note: As with Android internal storage memory by default is named SD-card ).
As long as you don't use an external SD-card ( completely or partially ) as Adoptable Storage by default neither apps nor OS itself write to it ( store data on it ).
@jwoegerbauer Thank you very much! This what I have experienced, too. I have seen the folders, but no data in them. I am still wondering why it creates those folders at all if it doesn't put data in them.
I eventually have missed it, but I think I have gone through every option of ArrowOS, but didn't find a menu item where I could activate (or inactivate) the external SD card as adoptable storage. Therefore I suspected it would do that automatically, depending on circumstances.
Another mystery (for me) is that (AFAIK) data would go into subfolders of the "Android" folder on the external SD card. But the Android folder is nearly empty, while the rest of the folder structure (Documents, Pictures etc.) is at the root level of the external SD card (i.e. at the same level as the "Android" folder).
P.S. Yes, I was speaking of the external SD card. I'll check if it's still possible to edit my posts and make that clear.
Thank you very much again!
XDHx86 said:
Then don't exclude the whole Android folder, just some folders inside. Like /obb folder or system apps data inside /data
Or just exclude "LOST" or other cache folders.
Click to expand...
Click to collapse
Thank you very much again!
I should have made myself more clear: My plan is to have all data only in internal storage and to back up internal storage to the external SD card.
When there is normal data (besides these backups) on the external SD card, three problems arise:
1) The normal data on the external SD card takes up space. If I can't control which data Android and the apps put there, the remaining space may not be sufficient for the backups one day.
Every portion of normal data which is on the external SD card counts twice in that sense. First, it increases the backup size by its own size; secondly, it reduces the space which remains for the backups by its own size.
2) I know that I wrote that I will transfer the backups to a PC wirelessly. However, I still want the phone to run normally even after I have removed the external SD card. If Android or the apps put normal data on the external SD card, this is not possible any more.
3) Excluding certain data on the external SD card from backup is problematic and would void the main advantage of my backup strategy:
I really don't need to think about what to exclude or include. I just back up all internal partitions, completely and bit by bit, to the external SD card. If I lose the phone, I can buy another one, flash TWRP onto it, restore those backups, and have the original O/S, apps and all data, and even dm-verify will be no issue.
I have no clue about Android and I am not able (or would be too lazy anyway) to decide which data to include or exclude to achieve the same. So I really would like to avoid that triage.
I believe that some time ago I had found an ugly trick to keep Android and the apps from creating and using those folders. I'll have to check whether I have taken notes about it ...
Thank you very much again!
@D9yHyi8Fe3mo1YgM
To clarify things:
You have to distinguish between portable storage and adoptable storage. Adoptable storage really extends device's internal storage, whereas portable storage does not.
If apps are granted WRITE_EXTERNAL_STORAGE / READ_EXTERNAL_STORAGE permission then they can access the external SD-card, too.
jwoegerbauer said:
You have to distinguish between portable storage and adoptable storage. Adoptable storage really extends device's internal storage, whereas portable storage does not.
Click to expand...
Click to collapse
Thank you very much again! I suspected so, but didn't find the setting in the UI of ArrowOS yet. I am nearly sure that I just missed it, and will research again (just out of curiosity, because extending the internal storage to the external SD card is exactly the opposite of what I want).
jwoegerbauer said:
If apps are granted WRITE_EXTERNAL_STORAGE / READ_EXTERNAL_STORAGE permission then they can access the external SD-card, too.
Click to expand...
Click to collapse
I see. Thank you very much for the explanation. I'll go through the app permissions and check that. Then only the O/S itself could put data there.
[ Side note: In the meanwhile, I have corrected my posts according to your hint regarding the term "SD card". ]
I don't know if this topic has aged or not, have you found any solution?
I don't want Android system to write files like Android-Podcast-Alarms-Music-Notification into my sd card, I want my sd card to be clear and clean
this order system which android uses is very useless and annoying, when will they remove that??!!

Categories

Resources