Storage Mountpoints..... - LG Optimus L9 P760, P765, P768, P769

So, I've been playing and looking at the filestructure/mountpoints. As we know, the 'internal' memory available for apps is only 2Gb.
To me, it looks like this 2Gb is shared with the /data directory.
Code:
1|[email protected]:/mnt # df
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 984.27M 678.05M 306.22M 4096
/data 1.80G 1.10G 718.43M 4096
/cache 738.20M 12.57M 725.64M 4096
/dvp 4.84M 1.04M 3.80M 1024
/persist 7.26M 1.17M 6.09M 1024
/mpt 15.48M 11.28M 4.21M 4096
/mnt/sdcard 1.80G 1.10G 718.43M 4096
Now, the external SD gets mounted to /mnt/sdcard/external_sd. I'm dabbling and learning here - but what would be the best way to mount the partitions to maximize the use of the external SD card?
John.

Exchange sdcard and extsdcard
Sent from my LG-P765 using xda premium

What are the odds that this will enable app2sd on android 4.0.4? even if they are low, what should I alter in /etc/rc.d to make sure that the sd card is mounted quickly during the boot process? and finally, precisely how might one go about altering the fstab mounts properly? i could probably fumble through it but im not sure what's different about a phone's boot process as opposed to a normal linux box.

so it looks like /mnt/sdcard is mounted from /dev/fuse (filesystem in userspace)
/dev/block/platform/omap/omap_hsmmc.1/by-name/userdata is mounted as /data
/dev/block/vold/179:61 is mounted as /mnt/sdcard/external_sd
/etc/vold.fstab has mount data for external_sd:
dev_mount extsdcard /mnt/sdcard/external_sd auto /devices/platform/omap/omap_hsmmc.0/mmc_host
it still isnt obvious to me how /data and /mnt/sdcard are linked, though they are. /data seems to be using a block device and /mnt/sdcard is using the fuse filesystem. if there is a way to unlink the two we may be able to alter the mount point for the sdcard. does anyone know how this mounting works with a 4.0.4 device that DOES have the sd card mounted correctly?
let me know if im derailing the original point of the thread and ill make a new one
edit:
this forum page seems to have some of the droids im looking for.
http://forum.xda-developers.com/showthread.php?t=1786014 (the thread)
http://forum.xda-developers.com/showpost.php?p=29413682&postcount=53 (for cm9)
http://forum.xda-developers.com/showpost.php?p=29901478&postcount=70 (for stock ics)
this is for the galaxy tab 2, but is written for ics and will probably work for other ics devices with a little modification

Related

Access To Entire NT Filesystem Storage

So... I'm showing /data mounted with 11GB free, and all of the custom apps I've loaded from the Market are in /data/app. The 1GB of "user" storage is mounted at /mnt/media.
Either I'm really stupid, or perhaps we already have access to the full NT memory???
anlog said:
So... I'm showing /data mounted with 11GB free, and all of the custom apps I've loaded from the Market is are in /data/app.
Either I'm really stupid, or perhaps we already have access to the full NT memory???
Click to expand...
Click to collapse
That's weird. Has there been an OTA update that we weren't told about, or did the root do a whole lot more than we thought? I'm confused.
conundrum768 said:
That's weird. Has there been an OTA update that we weren't told about, or did the root do a whole lot more than we thought? I'm confused.
Click to expand...
Click to collapse
I haven't received any OTA. I think root basically gave us access to the /data mount. B&N wasn't anticipating root or the ability to load Amazon/Android markets...
anlog said:
I haven't received any OTA. I think root basically gave us access to the /data mount. B&N wasn't anticipating root or the ability to load Amazon/Android markets...
Click to expand...
Click to collapse
Well, isn't that dandy.
Get busy and try side-loading 10GB of applications and see what happens!
Although I suspect /data is a mount point for the two file systems, app and whatever the B&N one is called.
What does /etc/fstab show?
rmm200 said:
Get busy and try side-loading 10GB of applications and see what happens!
Although I suspect /data is a mount point for the two file systems, app and whatever the B&N one is called.
Click to expand...
Click to collapse
It looks like the standard /data mount from any other Android device. They just didn't anticipate end users having access to it...
anlog said:
So... I'm showing /data mounted with 11GB free, and all of the custom apps I've loaded from the Market are in /data/app. The 1GB of "user" storage is mounted at /mnt/media.
Either I'm really stupid, or perhaps we already have access to the full NT memory???
Click to expand...
Click to collapse
Not to discredit you at all, but would you be able to post a screenshot for the guy who was asking for proof on repartition info earlier in another thread?
Speaking of which, is there an easy method to take a screenshot?
Sent from my Nook Tablet using Tapatalk
downsay said:
Not to discredit you at all, but would you be able to post a screenshot for the guy who was asking for proof on repartition info earlier in another thread?
Speaking of which, is there an easy method to take a screenshot?
Sent from my Nook Tablet using Tapatalk
Click to expand...
Click to collapse
You can run a "df" from an ADB shell to see the mount points.
/data is there with over 11GB free.
This is all stock - no repartitioning required.
Unfortunately I have not had the chance to root yet. I guess tons of others have and they should easily be able to verify your findings. Looking forward to your one click root btw.
Sent from my Nook Tablet using Tapatalk
Could you post the contents of /etc/fstab and the output of these two commands:
Code:
df -h
mount
I'd appreciate it. I am currently deciding between the KF and the NT, leaning towards the NT, and I think being able right away to use the entire space available for apps would seal the deal.
Thanks.
downsay said:
Looking forward to your one click root btw.
Click to expand...
Click to collapse
Indirect has incorporated my gapps install into his root script, so it's better to use his now.
Good luck!
rmm200 said:
Get busy and try side-loading 10GB of applications and see what happens!
Although I suspect /data is a mount point for the two file systems, app and whatever the B&N one is called.
What does /etc/fstab show?
Click to expand...
Click to collapse
See below...
tsubus said:
Could you post the contents of /etc/fstab and the output of these two commands:
Code:
df -h
mount
I'd appreciate it. I am currently deciding between the KF and the NT, leaning towards the NT, and I think being able right away to use the entire space available for apps would seal the deal.
Thanks.
Click to expand...
Click to collapse
I've loaded over 500MB in apps from the Android Market and can see all of my apps and settings stored in /data. It's the real deal.
# df
df
Filesystem Size Used Free Blksize
/dev 456M 44K 456M 4096
/mnt/asec 456M 0K 456M 4096
/mnt/obb 456M 0K 456M 4096
/system 602M 392M 209M 4096
/data 11G 580M 11G 4096
/cache 419M 7M 412M 4096
/bootdata 47M 3K 47M 512
/rom 47M 15K 47M 512
/mnt/media 1021M 7M 1014M 4096
/mnt/secure/asec 29G 5G 23G 32768
/mnt/sdcard 29G 5G 23G 32768
/mnt/secure/asec 29G 5G 23G 32768
500MB still fits within the 1GB user area.
Can't you dummy up a copy to exceed the 1GB boundary, just to see if it is real?
Easy for me to dream up work for other folks...
anlog said:
I've loaded over 500MB in apps from the Android Market and can see all of my apps and settings stored in /data. It's the real deal.
# df
df
Filesystem Size Used Free Blksize
/dev 456M 44K 456M 4096
/mnt/asec 456M 0K 456M 4096
/mnt/obb 456M 0K 456M 4096
/system 602M 392M 209M 4096
/data 11G 580M 11G 4096
/cache 419M 7M 412M 4096
/bootdata 47M 3K 47M 512
/rom 47M 15K 47M 512
/mnt/media 1021M 7M 1014M 4096
/mnt/secure/asec 29G 5G 23G 32768
/mnt/sdcard 29G 5G 23G 32768
/mnt/secure/asec 29G 5G 23G 32768
Click to expand...
Click to collapse
Thanks!
10char
rmm200 said:
500MB still fits within the 1GB user area.
Can't you dummy up a copy to exceed the 1GB boundary, just to see if it is real?
Easy for me to dream up work for other folks...
Click to expand...
Click to collapse
The 1GB area is mounted at /mnt/media, but sure I can try pushing more data to it...
downsay said:
Speaking of which, is there an easy method to take a screenshot?
Click to expand...
Click to collapse
Screenshot = press 'n' button and '-' volume button. It ends up in your Pictures folder.
I have read through those instructions many times. Unfortunately the instructions aren't clear cut enough for me. I have no idea on how to change to the proper directory, nor what that proper directory may be. I will wait for someone to create a step by step guide with numbers and every specific so that it is noob proofed for people like me.
I guess i should add...do i need to unzip the files first after downloading and before running the script.
Sent from my Nook Tablet using Tapatalk
Even before root all of my side loaded apps and amazon apps were getting installed into the B&N content storage(or what ever you want to call it.) I've already used 1.17 gb's in there.
Apps installed from market are one thing, but are we able to mount the partition as well? I.e. to sideload music or video files from our computers, in the usual drag and drop manner.
Sorry if I'm repeating the same question again!
Edit: i.e. Similar to in the SGS II, where there is 2GB for apps (more than enough), 11gb for app data/internal sd, plus external sd.

[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.

[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?

Help, Phone Storage cannot be accessed

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

Categories

Resources