2

First of all, my SD card is not corrupted and I can access all my files with TWRP recovery file manager after entering my pattern to decrypt my storage, all of my files are not corrupted either. This question is not about how to restore files.

My Android 6 phone (Alcatel 5010D) fails to mount internal SD card on boot as adopted storage. It does mount the card only at /mnt/expand/5cf86564-54ca-4bbf-85e7-1f491f7ef923 (/dev/block/dm-1) but my /sdcard directory is empty (actually, it is a link to /storage/self/primary which in turn is a link to /mnt/user/0/primary). In settings > Storage & USB I can see my SD card, it says "8.21 GB used of 28.50 GB" (this is correct). But if I click on it, Apps, Images and everything else are using "0.00 B" which obviously is not correct. I have plenty of applications and some images. If I click "Explore", it shows empty screen.

So, how can I manually mount it? Or at least understand why Android does not do it automatically anymore? I have root access.

Please note that I know for a fact that mounting /sdcard manually is possible. TWRP recovery does this somehow, and I can access all my files in its file manager. In the past I was able to fully recover by copying all of them with adb pull while in TWRP recovery, format SD card for internal storage, copy everything back and then it works again normally. But sometimes Android stops mounting internal SD card on boot automatically for no apparent reason. If I knew how to do it manually, I would at very least had a quick fix for this issue and perhaps I could understand why Android fails to mount it automatically. I tried to Google an answer to this question, but usually I find methods like to mount encrypted storage on PC which is not what I'm looking for.

Also, as I already mentioned, my SD card is not physically corrupted, and I can read all files on it just fine. I know how restore everything, I'm aware of an option to format SD card as portable. But I would like to try to fix the issue at hand without reformating my card.

2
  • See this which talks of mounting adoptable-storage nelenkov.blogspot.in/2015/06/…
    – beeshyams
    Commented Jul 16, 2017 at 17:03
  • This is one of articles I already saw. It is about how to decrypt internal SD card on PC. I reread it more carefully but I still do not understand how to manually mount adoptable storage in Android. The article mention "sm" command. "sm list-volumes" returns that volume 5cf86564-...: "private:179,130 mounted" (on /mnt/expand/5cf86564-54ca-4bbf-85e7-1f491f7ef923). It contains some internal Android data. But I want to mount /sdcard (symlink to /mnt/user/0/primary/). And currently I have no idea how to do that in Android. I only know that TWRP recovery somehow achieves this. Commented Jul 16, 2017 at 18:11

2 Answers 2

1

I had the same problem and did the following (you can try upfront whether step 7 does it already for you):

  1. Backup old card (whole disk) as an image using ddrescue, save decryption key on your computer

  2. Remove adopted card

  3. Take a new card, format as internal, migrate data to this card, save decryption-Key on your computer, shutdown phone, remove new card

  4. mount image and new sdcard unencrypted to Folder A and B

  5. rsync A -> B

  6. new card into phone, start debugging

  7. Reset SELinux permissions using

    restorecon -R -v /mnt/expand/[yourpartition]/*

as root in adb shell.

This did the trick for me. The new card did not vanish anymore and keeps persistently mounted.

0

I got a similar issue, my sd was defined as internal memory in my moto E 3gen, Checking the surface everything was clear but like you the sd does not mount and format is RAW(+GBT) so unreadable on any kind of OS + certainly secured by Motorola process

My workaround was to use "HDD Raw Copy Tool" make a clone in a file then copy this clone to a new fresh sd card New sd card mounted successfully in moto E and I can then make a backup of my 1700 pictures

On old SD , I try then to format or change GBT to MBR but something wrong with it, so I guess the SD card is really corrupted or damaged

rgds Syl

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .