Help, Phone Storage cannot be accessed - Android Q&A, Help & Troubleshooting

Hi there,
Got Xiaomi MI3 with Internal storage 16 GB (no external SD card slot). After moving back to stock rom, facing this issue that I cannot access to phone storage. So cannot download, install any apps or use camera. Storage shows only system memory 6.7 GB. File directory shown from ADB is as follows:
[email protected]:/ # df
Filesystem Size Used Free Blksi
/dev 485M 212K 485M 4096
/mnt/secure 485M 0K 485M 4096
/mnt/asec 485M 0K 485M 4096
/mnt/obb 485M 0K 485M 4096
/system 739M 433M 305M 4096
/data 6G 180M 6G 4096
/cache 124M 4M 119M 4096
/mnt/cd-rom 1M 1M 0K 2048
/protect_f 8M 4M 4M 4096
/protect_s 8M 4M 4M 4096
/mnt/shell/emulated 6G 180M 6G 4096
/storage/emulated 485M 0K 485M 4096
from above there is another 6 GB but same is missing. File manager shows blank. So is this problem of phone storage not being mounted?
Thanks

Moving back to stock rom? Were you on like a CM based rom? How did you reinstall the stock rom? Do you have a custom recovery? Can you access your phone storage there, if so?
I would try to copy phone storage to PC from recovery, if you have a custom one. If not, I would use adb to pull the /sdcard/ to a PC and then use a custom recovery to format the data and reload the stock rom again. This should put everything back to normal.

pass

es0tericcha0s said:
Moving back to stock rom? Were you on like a CM based rom? How did you reinstall the stock rom? Do you have a custom recovery? Can you access your phone storage there, if so?
I have TWRP installed. I tested one MIUI based custom ROM but later move back to stock rom by SP flash tools. In TWRP, i can see phone memory which is around 6.5 GB., which is for system files and data only Until now i know that, in such device, where there is no SD slot, a part of Internal memory has partition as "emulated SD card" which behave like real SD card. From ADB, I can see that ""/mnt/shell/emulated" has rest 6 GB space. But i am unable to use that. Is that folder need to be mounted ?
I cannot create any file in file explorer or use camera or gallery in absence of phone memory. Please help.
Click to expand...
Click to collapse

Related

[Q] Internal Storage

I just wonder how this phone manages its internal storage and phone storage. If I go to 'settings' - 'storage', I see the attached page, while says my phone has about 1.8G internal storage, some it used by `apps' and some by `misc'. If I click on `apps', I get a list of my downloaded apps; if I click on `misc', I can see my own files on the phone (/sdcard contents).
IIUC, Android should have 'internal storage' (mounted as "/data") and 'phone storage' (mounted as "/sdcard"). Does L9 somehow mix these two (say they are on the same partition, and 1.8GB is the total volume)?
I'm just confused. Anyone with better understanding please explain? Many thanks. Also I'm on stock ROM with P769, but I guess the same applies to all versions of L9.
mrmathematica said:
I just wonder how this phone manages its internal storage and phone storage. If I go to 'settings' - 'storage', I see the attached page, while says my phone has about 1.8G internal storage, some it used by `apps' and some by `misc'. If I click on `apps', I get a list of my downloaded apps; if I click on `misc', I can see my own files on the phone (/sdcard contents).
IIUC, Android should have 'internal storage' (mounted as "/data") and 'phone storage' (mounted as "/sdcard"). Does L9 somehow mix these two (say they are on the same partition, and 1.8GB is the total volume)?
I'm just confused. Anyone with better understanding please explain? Many thanks. Also I'm on stock ROM with P769, but I guess the same applies to all versions of L9.
Click to expand...
Click to collapse
Yes. L9 and most new devices merge /data and /sdcard to same internal phone partition. I'm confuse at first but after google more info on web I know that it's google ICS design. Not sure what's good for this but many people complain about it, me too. It make external SD card less useful to store app/game data. You must root your phone and do some extra work to fix this. And this is a main reason why I rooted my phone.
Thanks bro. That explains it. Also I did a df:
C:\>adb shell df
Filesystem Size Used Free Blksize
/dev 383.57M 52.00K 383.52M 4096
/mnt/asec 383.57M 0.00K 383.57M 4096
/mnt/obb 383.57M 0.00K 383.57M 4096
/system 985.59M 646.19M 339.40M 4096
/data 1.80G 1.11G 703.00M 4096
/cache 738.20M 12.55M 725.66M 4096
/dvp 4.84M 1.04M 3.80M 1024
/persist 7.26M 1.51M 5.75M 1024
/mpt 15.48M 11.10M 4.39M 4096
/mnt/sdcard 1.80G 1.11G 703.00M 4096
Seems the /cache and /dev could be a bit smaller for more space for /data and /sdcard. But I haven't found any way to adjust internal partition sizes...
AW: [Q] Internal Storage
P760 has 2.33Gb for data/sdcard.

Xperia U - No usb storage available after root

Hi all !
I've got a massive problem with my xperia y which I unlocked bootloader & root using transcendance kernel : http://forum.xda-developers.com/showpost.php?p=43516134&postcount=271
After rooted the mobile, wanted to install CM9 using CWM but after wipe data, I forgot to copy in sdcard my new rom & the gapps...arf !
So, I turned off the mobile to connect it to my computer using usb cable and it's not working !
When I turn on the mobile, I can see the freexperia icon, and it's starting almost well (apn is not working, my SIM card is not recognized...etc) so I have to fix it !
The mobile is recognized (can hear windows sound when I plug it) I've got the adb interface in my system settings. But i can't have access to the sdcard like before, it's not appeared in my computer window...
How can I fix it ?
Regards
freud44 said:
Hi all !
I've got a massive problem with my xperia y which I unlocked bootloader & root using transcendance kernel : http://forum.xda-developers.com/showpost.php?p=43516134&postcount=271
After rooted the mobile, wanted to install CM9 using CWM but after wipe data, I forgot to copy in sdcard my new rom & the gapps...arf !
So, I turned off the mobile to connect it to my computer using usb cable and it's not working !
When I turn on the mobile, I can see the freexperia icon, and it's starting almost well (apn is not working, my SIM card is not recognized...etc) so I have to fix it !
The mobile is recognized (can hear windows sound when I plug it) I've got the adb interface in my system settings. But i can't have access to the sdcard like before, it's not appeared in my computer window...
How can I fix it ?
Regards
Click to expand...
Click to collapse
Since are about to flash new rom anyways, you dont need to worry about your SIM not getting detected and stuff right now.
Code:
adb kill-server
adb devices
Your device should be listed. You already said it, but just in case.
Now see if your card is already mounted:
Code:
adb shell "df"
This command will list mounted partitions. You will get something like
Code:
Filesystem Size Used Free Blksize
/dev 390.6M 64.0K 390.6M 4096
/mnt/asec 390.6M 0.0K 390.6M 4096
/mnt/obb 390.6M 0.0K 390.6M 4096
/system 1.1G 739.0M 444.1M 4096
/data 1.5G 642.1M 962.9M 4096
/cache 252.1M 4.3M 247.7M 4096
/persist 15.7M 4.0M 11.6M 4096
/ftmd 7.9M 4.0M 3.8M 4096
/lta-label 15.7M 4.2M 11.5M 4096
/ftma 63.0M 4.0M 58.9M 4096
/firmware 63.9M 39.5M 24.4M 16384
/storage/sdcard1 29.6G 1.1G 28.5G 4096
/storage/sdcard0 4.0G 831.5M 3.2G 32768
/mnt/secure/asec: Permission denied
/mnt/asec/com.quoord.tapatalkxda.activity-1 5.0M 3.1M 1.8M 4096
/mnt/asec/com.kiloo.subwaysurf-1 27.0M 25.8M 1.2M 4096
If it doesnt, try
Code:
adb shell "cat /proc/mounts"
If your card is not mounted ( very less likely ) you will have to get your hands dirty with more commands. But I hope tats not the case.
Find where is your SD card is mounted. Usually its like /storage/sdcard1
Now that you know where your card is, simply push your zip file with adb
Code:
adb push file.zip /storage/sdcard1/
If you are on windows, use adb.exe.
Now you can boot into recovery and do whatever you want
Only one thing to say....thank you !
It worked fine !
I fixed my mobile and install cyanogenmod 9 on it.

[Q] How is storage counted in in HDX?

Being a naturally curious guy I decided to figure out why my KHDX with 64GB, but using a Safestrap ROM slot, is "running out of space".
Generally when that happens, I use "DiskUsage", an app in PlayStore by "Ivan Volosyuk", which I'd been using when my phone was an OG Droid, and this app was updated for KitKat and everything. I'm sure everybody had used it at some time. If you haven't... You should.
https://play.google.com/store/apps/details?id=com.google.android.diskusage
It's a storage visualizer, much like SequoiaView or WinDirStat on PC.
Any way, generally, when DiskUsage is on a phone, I should see
App Storage
Storage Card
/storage/sdcard0 (and perhaps sdcard1 as well)
[Root Required]
(That's the way my Droid Bionic is setup, running stock-based ROM and a Cyanogen Mod 10.2 in slot 1)
However, when the same app is on the HDX, running inside ROM slot 1... I get...
Storage Card
[Root Required]
No app storage, eh?
Also, the normally accurate progress bar where it reads all the directories and sizes? Jumped all over creation, counted up to like 312% and such crazy things. But eventually it told me that TOTAL storage I have on the 'storage card' is 6192MB with ZERO free space detected (eh?)
using "Root required" option lets you browse the directories with root permissions and yielded a bunch of interesting stuff under storage
/storage/emulated
/storage/emulated/0
/storage/emualted/0/Android/obb
/storage/emulated/legacy
/storage/emulated/legacy/Android/obb
None of these "emulated" stuff exists on my phone. (Droid Bionic has ROM, 8 GB "internal" SD, and I have a 32GB microSD in there too).
So, after all that blah blah blah... The question...
Can someone explain or link to article that explains how the storage is counted in the HDX?
How can there be no app stroage?
What is that "emulated" and "emulated/legacy"? (I 'll research that myself too)
And perhaps related to Hashcode's Safestrap HDX... Where is the rest of my 64GB?
You should issue a "df" command in a terminal (adb shell from pc, or from pc with JuiceSSH for example. Here is my output on a slot rom on my 16G kindle. You can see that i have 3G left on 11G for sdcard.
What is probably happening is your virtual /data partition (slot) which store downloaded apps runs out of space (i think your limited with safestrap when creating the slot, i did choose 2G for me).
Now most games should install theire game data on sdcard, else i guess you should be able to use some move to sd options in applications settings or with an app.
Filesystem Size Used Free Blksize
/dev 871M 48K 870M 4096
/dev 871M 48K 870M 4096
/mnt/secure 871M 0K 871M 4096
/mnt/secure 871M 0K 871M 4096
/mnt/asec 871M 0K 871M 4096
/mnt/asec 871M 0K 871M 4096
/mnt/obb 871M 0K 871M 4096
/mnt/obb 871M 0K 871M 4096
/datamedia 11G 8G 3G 4096
/ss 11G 8G 3G 4096
/system 1G 1009M 74M 4096
/system/fonts 79M 79M 0K 1048576
/cache 295M 9M 286M 4096
/data 2G 905M 1G 4096
/persist 31M 4M 27M 4096
/firmware 63M 18M 45M 16384
/persistbackup 31M 4M 27M 4096
/mnt/shell/emulated 11G 8G 3G 4096
/storage/emulated/legacy 11G 8G 3G 4096
/storage/emulated 871M 0K 871M 4096
/storage/emulated/0 11G 8G 3G 4096
/storage/emulated/0/Android/obb 11G 8G 3G 4096
/storage/emulated/legacy 11G 8G 3G 4096
/storage/emulated/legacy/Android/obb 11G 8G 3G 4096
Sent from my KFTHWI using xda app-developers app

[Q] Repartition internal storage

I'm running a SlimKat ROM on Sony Xperia Z Ultra. Officially the device has 16GB storage installed, but only 11.79GB are available to the user. I know that all the rest is reserved for the OS needs. May be the official Sony ROM really needs 3.5GB of space to function properly, but since SlimKat is a very compact ROM, I'm sure it doesn't need so much storage (am I right?).
So is there any way to make more storage available for the user needs and less for the OS? May be there are some ways to repartition the device memory.
When I tried to google the question, I learned that there are some tricks to make the device treat the external SD card as internal storage, but that's not what I'm looking for now
I believe the NAND (internal SSD) capacity is reported using the the binary system (base 2 i believe), so 16GB won't actually be 16GB, same as your 1TB HDD won't give you the full 1TB, because 1000GB isn't 1000GB, like 1MB isn't 1000KB, but 1024KB as an example. It's math. I have no idea how a typical SSD's capacity is counted though, but you can't "recover" those 3.5GB and have all 16GB to yourself. A part of the 3.5GB simply doesn't exist.
LordManhattan said:
I believe the NAND (internal SSD) capacity is reported using the the binary system (base 2 i believe), so 16GB won't actually be 16GB, same as your 1TB HDD won't give you the full 1TB, because 1000GB isn't 1000GB, like 1MB isn't 1000KB, but 1024KB as an example. It's math.
Click to expand...
Click to collapse
Yes, I know, but 16GB would be 14.9 "real" GB, not 11.79
netimen said:
Yes, I know, but 16GB would be 14.9 "real" GB, not 11.79
Click to expand...
Click to collapse
the storage isn't empty you know ...there is allot of files stored there other than your personal files
SÜPERUSER said:
the storage isn't empty you know ...there is allot of files stored there other than your personal files
Click to expand...
Click to collapse
Yes, I understand that. But does the system really need 3GB to store it's files? SlimKat is very compact, my /system partition is 500MB currently
netimen said:
Yes, I understand that. But does the system really need 3GB to store it's files? SlimKat is very compact, my /system partition is 500MB currently
Click to expand...
Click to collapse
if I select everything excluding /sbin, /sdcard and /storage I get 9.34GB
if i select everything excluding /sbin, /sdcard, /storage and /data I get 3.71GB
I am on slimkat rom with pimped kernel
netimen said:
Yes, I know, but 16GB would be 14.9 "real" GB, not 11.79
Click to expand...
Click to collapse
Sure, but the flashed size isn't the installed size. The ROM can be 200MB when downloaded, but it can easily be 1GB when installed. It's compressed like crazy. The stock ROM is even larger at what? 800MB? Installed, that'll be 2.5-3GB, easily. I backed up my GPe ROM (NAND) last week. It's around 3GB with all my apps, and I have (only) around 20 apps installed.
Just let this go now before you do some damage to your device.
Here is the mounted partitions in carbon only 2.2 GB for system, but there is 1.6 free. At the most I would think you could get back would be only a little over ~1 GB. not worth the risk I feel
Code:
[email protected]:~/dev/carbon> adb shell
[email protected]:/ $ df
Filesystem Size Used Free Blksize
/dev 904.7M 132.0K 904.5M 4096
/sys/fs/cgroup 904.7M 12.0K 904.6M 4096
/mnt/asec 904.7M 0.0K 904.7M 4096
/mnt/obb 904.7M 0.0K 904.7M 4096
/mnt/fuse 904.7M 0.0K 904.7M 4096
/tmp 904.7M 0.0K 904.7M 4096
/system 2.2G 657.6M 1.6G 4096
/cache 196.7M 5.8M 191.0M 4096
/data 11.8G 5.3G 6.5G 4096
/mnt/idd 7.5M 1.0M 6.5M 1024
/lta-label 15.7M 4.8M 10.9M 4096
/mnt/shell/emulated 11.8G 5.3G 6.5G 4096
/mnt/media_rw/sdcard1: Permission denied
/storage/sdcard1 29.5G 22.6G 6.9G 32768
1|[email protected]:/ $

SDCard was obviously completely deleted (As well as emulated sdcard on internal)

Hi there,
yesteday I wanted to update the build of my CM12 nightly by Archi. Since I was somewhat low on free space I decided to cleanup some old files before and did so. After that I copied the newest nightly to my phones sdcard and rebooted into recovery mode.
When trying to install the zip file I didnt see any files or folders on the sdcard. There only was a "Android" and "LOST.DIR" folder. Booting back into android (without installing or doing anything further) i noticed ALL of my sdcard data was simply gone. The external as well as the internal, everything is just deleted. No "SDCard Error" or something, it looks loke the ROM just decided to format it and use the then empty sdcard(s) again. How is such a thing even possible?!
I have recovered at least parts of the original content by using testdisk on my laptop, but still I really want to know how such a "desaster" can happen and ideally how to prevent it from happening again.
$ df
/mnt/shell/emulated 11.4G 7.3G 4.1G 4096
/storage/emulated 417.4M 0.0K 417.4M 4096
/mnt/media_rw/sdcard1 29.3G 864.0K 29.3G 32768
/mnt/secure/asec 29.3G 864.0K 29.3G 32768
/storage/sdcard1 29.3G 864.0K 29.3G 32768
/storage/emulated/0 11.4G 7.3G 4.1G 4096
/storage/emulated/0/Android/obb 11.4G 7.3G 4.1G 4096
/storage/emulated/legacy 11.4G 7.3G 4.1G 4096
/storage/emulated/legacy/Android/obb 11.4G 7.3G 4.1G 4096
Before the sdcard was like 25G of the 29.3G used...
Your internal card still has data present but your external has clearly been formatted.
Either the card is faulty or something happened after you copied the .zip across, premature ejection?

Categories

Resources