Storage not mounted properly. - Android Q&A, Help & Troubleshooting

Hi everyone.
After some snafu while trying to update Gapps to the latest package, which wrecked my phone ;
I re-flashed the ROM (CM11.0 from Maclaw's), doing full wipe of dalvik/cache/data/system. I reinstalled the previously working Gapps package.
Everything is working fine, but the way the storages are mounted is not correct. For instance, Gallery won't display pictures from the external sdcard.
Yet, if I use file manager, I can access it, and all my personal files are still there. When connecting to the PC, internal storage takes me to the actual internal storage being used by the phone but external storage appears empty.
/sdcard points to /storage/emulated/legacy it contains my old files from before flashing anew.
tree of /storage :
/storage
---/emulated
------/0 <-- this seems to be the same folder as legacy
------/clockworkmod <-- never mind, it's just there, empty. A remnant of my previous recovery
------/legacy
------/obb <-- empty
---/sdcard0 <-- redirects to /storage/emulated/legacy
---/sdcard1 <-- external sdcard
I hope I'm being clear enough. Basically, external sdcard doesn't seem to get mounted at a correct place which would allow apps to read from it.
While in recovery, if I go to the file manager,
external sd card is mounted in /external_sd
/sdcard is the internal storage
/data/media is the same as /storage/emulated as before. ./0 is populated, ./legacy is not.
So, basically, I should find a way to mount the external card to /data/media right?
Edit : I kept trying stuff. I created a folder from my PC on the apparently empty sd card, and put a photo in it. It displays in the gallery, and the folder is at the root of the sd card, just like every other folder that are not detected by either my phone and PC. The hell is that about?

Related

Where to find SD card files

Hi,
I need to factory reset my phone and have used App List Backup to genereate the list of apps to be restored. However, I cannot find the file and the sdcard folder on my phone is empty.
Anyone able to help me out here? I think I've backed up everything else, but I'd really like to get this file out just in case...
Cheers!
Once you mount your phone, you'll see two mounted drives. The folder 'External_SD' is empty on the 'internal mount'. Select the other drive to see the data.
Have you checked the folder 'data' or 'android'?
Are you rooted? My external SD is always visible in /mnt/emmc Internal is visible as /mnt/sdcard
Longun said:
Are you rooted? My external SD is always visible in /mnt/emmc Internal is visible as /mnt/sdcard
Click to expand...
Click to collapse
Thanks, but it wasn't there. Managed to get the files by removing the sd card and running it again. It then created a folder on the root of the main storage

CyanogenMod 9 for Huawei Mediapad (15.08.) - sdcard issue

Hello,
I noticed an empty directory at /mnt/sdcard after installtion of CM9. All of my data (internal storage + external storage) is now in /mnt/sdcard2. Here I see folders like 'Android', 'data', 'DCIM' etc., which I actually expected to find in /mnt/sdcard (internal storage location). In addition to that this folder houses also my data of the external storage, i. e. my sdcard.
As soon as I unmount my external card, the folder /mnt/sdcard2 appears to be completely empty, even the content of the internal storage is gone. Moreover, the folder /mnt/sdcard is also empty. Where did this data vanish?!? Strangely enough, the rom works just fine apart from the aforementioned problem.
Is this the default behavior or did I go wrong during flashing/setting up TWRP?
Best regards,
Michael
Check what is set to default storage in settings - storage/memory (depending on locale). Possibly something went wrong when you tried to change it.
Internal storage is stored in /data/share
Have you tried using root explorer and checking the mnt folder?

[Q] AOKP system can't read external storage

Sorry to repost this question, but I've been banging my head over it for too long! I can access both the internal and external storage through file browsers, but the Android system/apps can't seem to access the external storage. Tried this on CM10, AOKP 10-11, and now AOKP 10-17. Even tried changing from Joker's recovery to TWRP, thinking it had to do with the formatting/mounting. I've tried both SD and EMMC as primary in Option's chooser. Nothing works...
At one pont when going from CM9 to CM10/AOKP I did format /emmc... could that have done something? Also, I notice the new JB mounts the cards to /storage/sdcard0 or sdcard1. If I look in the /mounts folder I see /sdcard (which right now maps to my internal) but no /emmc or any other link to the external storage. Also, when I look in settings-storage, I see the system, "sdcard" (which is internal right now), and "internal storage" (which is my external), but only the first two have details on what types of files (apps/music/pictures/etc). The last partition (my external) is all grey
I've deleted all the .nomedia files, cleared app data in gallery/music/media storage... help!
The storage which u use as a main is called sdcard0 and other well called 1 u should find them in /storage folder not the mount
Sent from my MB855 using xda app-developers app

[Q] emmc not mounting

Currently having an issue with my SGS2.
Have been installing the custom vanilla rootbox roms for a while and the most recent update process has been from 3.2 -> 3.3.1 -> 3.4.
What has happened seems to have happened on the last update is the internal (non removeable) mmc card doesn't seem to be mounting.
Going into CWM recovery and choosing the "install zip from sd card" to use as a pseudo file browser, i can view both /sdcard (removeable sd) and /emmc (internal sd) and see all the files, but when the phone boots up only the external card is visible.
Browsing the files system:
/extSdCard - has external card files
/sdcard - is empty
/storage/sdcard0 - is empty
/storage/sdcard1 - has external files
/emmc - does not exist
So for some reason /emmc is not mounting to /sdcard + /storage/sdcard0
Is there a way to fix this issue? Also does CWM have a file-backup facility that i can backup my hidden files to the other sd card, or is there another method i can do this?
Flash different kernel.
TheATHEiST said:
Flash different kernel.
Click to expand...
Click to collapse
Doesn't seem to have fixed the issue.
(Flashed siyah).
Does anyone have any other suggestions that might help?
I had this issue...
I had this issue and managed to resolve it by using the following steps:
I backed up the phone using Titanium Backup to the external SD card (mmcblk1) and then shut the phone down and removed the SD card (to ensure it wasn't erased at any point).
I then booted into CWM recovery and re-partitioned and re-formatted the internal SD Card (mmcblk0p11). I then formatted /data, /cache and wiped the Dalvik cache to start afresh.
Once booted, I made sure that the internal SD card mounted correctly and was showing the correct amount of space (approx. 11.5GB).
On my computer I then copied the Titanium Backup files off the external SD card, repartitioned it as a single partition (MBR-style, not GUID/GPT!) and then then reformatted the partition as FAT.
I re-copied the TB backups back onto the external SD card and put it back into the phone. On reboot, the phone mounted both partitions as expected.
I then restored from the TB backups and I've not had any trouble since.
I'd been living with the issue for a while and it was driving me insane. The turning point came for me when I removed the external SD card once and it mounted the internal SD card correctly (which it hadn't done in a long time). It was then I realised that it was something about having the two together that wasn't working properly for some reason. This is why I repartitioned and reformatted them both as "stock" as I could to ensure that they worked in their "out of the box" state.
I'm not entirely sure why this happened as it did, but it seems to be working correctly now for me (and I'm very happy!).
I hope this works for you!!

Folder not mounting

My galaxy s5 started showing memory full when all storage programs said there was about 5 gb left.
I downloaded foldermount and it said it found the issue so it was going to repair it.
Well after I rebooted. The internal sd card(phone memory) is not mounting.
When connected to the PC, it shows 128mb.
on ES FIle explorer SDCARD shows "???" and when I attempt to open it ask what file I want to open it with, but with the program storage analyzer it finds the "data" folder just fine and lists all the files and folders within it.
In the phone settings options, it can show the amount of memory being used along with the media, mp3, apps, so the Folder is still there along with all the info, it is simply not mounting properly?
Thank you.
UPDATE: I found the path of where all my files are at, but the phone is not mounting it as the internal storage?
It is located at data/media/0 and mnt/sdcard0 or mnt/sdcard1 are missing.
* Aside from Phone being rooted, there were no other modifications
* Phone is running on original OS(as opposed to roms or such)
*There is not an external sd card in the phone
Folder mount will not do anything for you really without an SD card. After you use it to clear space you need to unmount all the folder it mounted to view what is actually in the folders. If not it will show the folder that it is linked to and look like it never worked. Changing your system data to SD data in your case keeps it in internal memory and does not free it up. You need to use folder mount with a SD card for it to help you. Saved me over 500Mb with it on my s5
intenselyinsane said:
Folder mount will not do anything for you really without an SD card. After you use it to clear space you need to unmount all the folder it mounted to view what is actually in the folders. If not it will show the folder that it is linked to and look like it never worked. Changing your system data to SD data in your case keeps it in internal memory and does not free it up. You need to use folder mount with a SD card for it to help you. Saved me over 500Mb with it on my s5
Click to expand...
Click to collapse
Sorry, long story short,
My phone mnt/sdcard and sdcard links are no longer there. Is there a way to recreate the links? Certain apps are still able to function because they are using the actual link, device/media/ect, ect, /0/ folders as opposed to mnt/sdcard/
I saw on another forum that
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
May help, but not sure if it is only for roms and not for original OS.
On another forum there was talk about recreating a syslink?
Solved:
Simply went to "system/bin" and erased the "sdcard" file and renamed the file "sdcard.backup" to "sdcard". Rebooted and it solved the issue.

Categories

Resources