[Q] How is the storage space on the N5 divided? - Nexus 5 Q&A, Help & Troubleshooting

I've owned a Galaxy S2, and a Galaxy S1 (Captivate), both of which had external SD card slots. On these devices, there are various system partitions that share the internal 16GB of storage, used for the operating system, caches, user data, app installation, etc. Part of this is user-accessible as /sdcard, which (I think?) had a fixed size. There was also a fixed amount set aside for application installation. Apps could be moved from the application space to /sdcard, or to /sdcard/external, which was the mount point for the MicroSD slot.
That all made sense to me, though of course it would be nice to be able to designate more or less space for the application partition, or the user partition, or caches, etc, as needed.
On the N5, I don't think it works like that. I saw some posts suggesting that the N5 has multiple mounted filesystems for various tasks as above (system data, app data, installed APKs, caches, user files, etc) but that they are dynamically resized somehow. How does this work? Is it documented somewhere? Do I really need to care, or can I just start installing 1GB+ APKs with abandon? Why do they do this instead of mounting one partition on / and just having sub-directories for /system, /data, etc?

Ghengis042 said:
I've owned a Galaxy S2, and a Galaxy S1 (Captivate), both of which had external SD card slots. On these devices, there are various system partitions that share the internal 16GB of storage, used for the operating system, caches, user data, app installation, etc. Part of this is user-accessible as /sdcard, which (I think?) had a fixed size. There was also a fixed amount set aside for application installation. Apps could be moved from the application space to /sdcard, or to /sdcard/external, which was the mount point for the MicroSD slot.
That all made sense to me, though of course it would be nice to be able to designate more or less space for the application partition, or the user partition, or caches, etc, as needed.
On the N5, I don't think it works like that. I saw some posts suggesting that the N5 has multiple mounted filesystems for various tasks as above (system data, app data, installed APKs, caches, user files, etc) but that they are dynamically resized somehow. How does this work? Is it documented somewhere? Do I really need to care, or can I just start installing 1GB+ APKs with abandon? Why do they do this instead of mounting one partition on / and just having sub-directories for /system, /data, etc?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2534010

rootSU said:
http://forum.xda-developers.com/showthread.php?t=2534010
Click to expand...
Click to collapse
So, I asked "why don't they just make one partition with sub-directories", and it sounds like to a certain extent that's exactly what happens. It sounds like /data is one physical partition. When you say that /sdcard "points to" /data/media/0, does that mean that it's just a subfolder that's treated specially, and softlinked to /sdcard? Maybe a loopback device that's mounted at /sdcard? If it's the latter, then does some system process quietly resize the virtual filesystem if /sdcard starts to get full? That's the thing I'd like to be able to read more about....

Ghengis042 said:
So, I asked "why don't they just make one partition with sub-directories", and it sounds like to a certain extent that's exactly what happens. It sounds like /data is one physical partition. When you say that /sdcard "points to" /data/media/0, does that mean that it's just a subfolder that's treated specially, and softlinked to /sdcard? Maybe a loopback device that's mounted at /sdcard? If it's the latter, then does some system process quietly resize the virtual filesystem if /sdcard starts to get full? That's the thing I'd like to be able to read more about....
Click to expand...
Click to collapse
So to elaborate a little,
/data is a physical partition.
/data/data
/data/app
/data/media
Are all just directories within /data
/data is 11.35 GB on a 16 GB Version so the maximum any directory in /data can be is 11.35 GB. All /data directories combine to make up this total, just like any other /partition/directory structure
The fact that within /data/media is a FUSE file system isn't too relevant to space usage really. Nothing needs resizing. /data/media's free space is the same as /data/app's free space because they're all pulling from the same location as a shared resource. If you put 2 GB in /data/app, that's 2 GB less that can be used in /data/media
Hope that helps
Edit... and yes, /data/media/0 is the mount point for the universally used /sdcard
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

rootSU said:
So to elaborate a little,
/data is a physical partition.
/data/data
/data/app
/data/media
Are all just directories within /data
/data is 11.35 GB on a 16 GB Version so the maximum any directory in /data can be is 11.35 GB. All /data directories combine to make up this total, just like any other /partition/directory structure
The fact that within /data/media is a FUSE file system isn't too relevant to space usage really. Nothing needs resizing. /data/media's free space is the same as /data/app's free space because they're all pulling from the same location as a shared resource. If you put 2 GB in /data/app, that's 2 GB less that can be used in /data/media
Hope that helps
Edit... and yes, /data/media/0 is the mount point for the universally used /sdcard
Click to expand...
Click to collapse
OK, I think I get it. I'd still be interested in seeing what "ls -l /data/media" looks like -- is "0" a *file* or a *directory* or some kind of block-device? I'm just experienced enough at Linux to be intrigued but inexperienced enough not to have dealt with this kind of thing (on a computer) before...

Here you go...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Welp, sure looks like a normal directory to me. I'm guessing that /sdcard is just a plain softlink then? Seems like the right way to do it...

Yeah its a "mount -o bind"
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Related

How do you create the FAT32 / EXT2 combo partitions??

i need help on this to install apps on my sd card
I've been meaning to ask this for a while as well, but was shy to ask and make a thread about it.
How would you create one on a mac?
im wondering how to create them on WINDOWS XP
I have read all around on this subject and from what I've read its not possible for windows xp users.
you can create it on windows using Paragon Partition Manager 9. Make sure you partition the sd card using a microSD reader, because issues will arise if you try to partition with your memory card still connected to your G1.
85Mario85 said:
im wondering how to create them on WINDOWS XP
Click to expand...
Click to collapse
Use Paragon Patition Manager 9 for XP then you can make all the partitions you want
Is this the program i need? I want to be sure you say use a disk reader i have the one built into my P.C is that o.k?
http://www.partition-manager.com/
I had problems with this to both the ubuntu live cd and partition maneger works for me. But i had to make sure my init.rc had
mount ext2 /dev/mmcblk0p2 /system/sd noatime nodiratime
not
mount ext2 /dev/mmcblk0p2 /sd noatime nodiratime
Finaly to mwke the partitions in windows i used HP USB format tool to format the card as fat16 and then detleted the partition in partiton maneger and created my FAT32 and EXT2 partitions (*make shure you hit apply*) in partition maneger
manup456 said:
Is this the program i need? I want to be sure you say use a disk reader i have the one built into my P.C is that o.k?
http://www.partition-manager.com/
Click to expand...
Click to collapse
Yes that is the program you use. It is very easy to use. Good Luck!
cchap07 said:
Yes that is the program you use. It is very easy to use. Good Luck!
Click to expand...
Click to collapse
I used this program to try to partition my sd card, I made the partitions, applied them, it finished. I put all my stuff back on my sd card, put it back in my G1 I tried to flash the update.zip and it said no update.zip. I was like wtf, so I put the sd card back in my comp and it said this card is not formatted. I had to use a program to recover everything on it, and havent tried again since. What went wrong?
do you got root? if so, then check the partition table using fdisk:
# fdisk /dev/block/mmcblk0
Command (m for help): p
the "p" option prints the partition table for the device you specified when invoking fdisk (your SD card). you should have two partitions listed - one using a Win95 FAT32 filesystem (hex ID "b"), and a second partition labeled as a Linux partition (hex ID "83). Here's my partition table if you want to try to match it up to your own:
Code:
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 218751 7000024 b Win95 FAT32
/dev/block/mmcblk0p2 218752 249296 977440 83 Linux
So long as that all looks good, it *should* work. I think i used gparted when i partitioned my SD card. I have a theory that you can do it through fdisk too, directly on the G1, but i didn't really spend too much time trying this.
.haNk said:
do you got root? if so, then check the partition table using fdisk:
# fdisk /dev/block/mmcblk0
Command (m for help): p
the "p" option prints the partition table for the device you specified when invoking fdisk (your SD card). you should have two partitions listed - one using a Win95 FAT32 filesystem (hex ID "b"), and a second partition labeled as a Linux partition (hex ID "83). Here's my partition table if you want to try to match it up to your own:
Code:
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 218751 7000024 b Win95 FAT32
/dev/block/mmcblk0p2 218752 249296 977440 83 Linux
So long as that all looks good, it *should* work. I think i used gparted when i partitioned my SD card. I have a theory that you can do it through fdisk too, directly on the G1, but i didn't really spend too much time trying this.
Click to expand...
Click to collapse
Thanks, but wtf, it says I have 4 partitions, and it doesnt know the system, on Partition Manager it says 1 last time I checked
AsaSpades said:
I used this program to try to partition my sd card, I made the partitions, applied them, it finished. I put all my stuff back on my sd card, put it back in my G1 I tried to flash the update.zip and it said no update.zip. I was like wtf, so I put the sd card back in my comp and it said this card is not formatted. I had to use a program to recover everything on it, and havent tried again since. What went wrong?
Click to expand...
Click to collapse
I have no idea, but the same thing happened to me and I just repartitioned it and retried it with only the update.zip and it worked. If you dont have your sd card partitioned just copy everything you have on it to your computer, erase the current formatting and try it again. It should work. Good luck!
AsaSpades said:
Thanks, but wtf, it says I have 4 partitions, and it doesnt know the system, on Partition Manager it says 1 last time I checked
Click to expand...
Click to collapse
You can try to follow these instructions that I wrote on another thread.
Back up any data that you can because this will erase it all.
Ok so Open Paragon, click ADVANCED PARTITIONING on bottom right, on your sd card right click on the partition and click Delete partition. Then Delete all other partitions on the SD card.
After you have deleted them all, click on the apply button on the top of Paragon. Then after that is finished, right click on the sd card and click create partition. The first drop down box will say: Create Partition as: and select Primary Partition. Then select the size you want the FAT32 Partition to be and on the Second drop down box select FAT 32. Then click yes.
Then Right click on the sd card again on the part that says (unallocated) and click Create partition. Select the partition as primary, and this time select the Linux Ext2 option of the second drop down box. Then click yes. Finally, Click on the top button to apply changes (Green Check mark) and you are done partitioning. Then just follow these instructions.
BTW the Ext2 partition has to be less than 2GB.
Good Luck!
yeah dude, i would say just give it another try in partition manager. if that don't work, then i guess you can try using a Linux live CD (or USB...) to partition it. just don't accidentally reformat your hard drive. make sure you select the option to manually setup your partition table, and then make sure you're working with the SD card and not your HDD. i've seen too many people wipe their hard drives on accident.
alright ill jus try it again, after its partitoned correctly will the sd card directory be different? Like would there be a folder for Ext2 or no?
nah, you won't see an additional folder. the second partition (EXT2) will be mounted under /system/sd, so you won't see it unless you specifically browse to it. if you want to make sure that it partitioned and mounted correctly, run the 'mount' command as root on your phone. you should see /dev/block/mmcblk0p2 mounted to /system/sd.
hmmm its not letting me create a partition after I deleted what was on it. When I click the sd card in "Create Partition" it says "A new partition cannot be created on this hard disk. Most probably/all primary slots are occupied and there is no extended partiton."
Hi Asa,
Check out this diagram I made when I was transferring my apps and caches to the sdcard.
You should run the busybox command and see if your ext2 partition shows.
In the diagram, it is the one that has a size of 1.6 gb.
So you should see something similar in your phone.
After I transfered all my caches and apps the ext2 partition no longer shows up in partition manager but I know it is working and present by the busybox output shown in the diagram.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Let me know if it helps.
Do i need the full version? Because the demo does not give the create partition option its there but disabled.

[Q] sd not recognized after creating ext3 partition

I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Also, I installed the update from Mioze7Ae, by copying the .zip to the OpenRecovery/updates folder on my SD, doing a recovery boot, and applying the update. When the update was applied it said successful, but there was a message before this line saying:
​ E: Can't mount /dev/block/mmcblk0p2
​ (Invalid Argument)
​
​ Install from sdcard complete.
I think this is part of the issue, but I don't really know what I'm doing. After this I rebooted the phone, and got a notification Removed SD card, and when I connect to PC no drive is shown (just Removable Disk G:, and nothing in shown in MiniTool Partition Wizard.
I'm guessing the issue was caused my me not formating the SD properly. Can anyone help out? I would like to avoid loading Dexter's rom from scratch if possible, to keep my data/apps, but am willing if that's the only way.
Sorry for the long post and if this question's been answered before, as I said I did do quite a bit of searching and couldn't find any comprehensive solution. Thanks
berlin85 said:
I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Click to expand...
Click to collapse
From what I've read, I'm pretty sure you have to use primary partitions and logical's don't work on the phone. You also have to set the boot flag (a.k.a. active partition) on the fat partition. Based on what you've written (which was very good by the way, the detail was helpful), I don't think you have to reinstall the ROMs. I think you just need to repartition/format your card properly.
This is probably an even dumber question, but I'm not sure how to repartition/format the card at this point. Nothing is showing up in Windows, just Removable Disk with size shown of 0 bytes, and when I open MiniTool Partition Wizard, all I see is my PC drives, nothing for the SD.
I'm connecting with the SD in my phone if that makes a difference, I don't have a reader on my pc.
berlin85 said:
This is probably an even dumber question, but I'm not sure how to repartition/format the card at this point. Nothing is showing up in Windows, just Removable Disk with size shown of 0 bytes, and when I open MiniTool Partition Wizard, all I see is my PC drives, nothing for the SD.
I'm connecting with the SD in my phone if that makes a difference, I don't have a reader on my pc.
Click to expand...
Click to collapse
Maybe try a linux boot CD. Ultimately, you may have use an adapter and go directly to the PC, though. It could be that the phone doesn't understand the partition table with the logical partitions so it can't export it anymore.
The phone's software (even recovery) doesn't expect that partitions can change while it is booted. For example, (you don't have one working but if you did) when you export the partitions for USB access, the sd-ext partition is both *not* unmounted and also simultaneously exported as a raw device. This can cause all sorts of filesystem corruption on the ext partition because of kernel caching on the desktop and in the phone.
Yay, used a comp at school with a microSD reader, repartitioned the ext3 making it primary rather than logical... seems to be working fine
easy solution after all! thanks for the help, really appreciate it
berlin85 said:
I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Also, I installed the update from Mioze7Ae, by copying the .zip to the OpenRecovery/updates folder on my SD, doing a recovery boot, and applying the update. When the update was applied it said successful, but there was a message before this line saying:
​ E: Can't mount /dev/block/mmcblk0p2
​ (Invalid Argument)
​
​ Install from sdcard complete.
I think this is part of the issue, but I don't really know what I'm doing. After this I rebooted the phone, and got a notification Removed SD card, and when I connect to PC no drive is shown (just Removable Disk G:, and nothing in shown in MiniTool Partition Wizard.
I'm guessing the issue was caused my me not formating the SD properly. Can anyone help out? I would like to avoid loading Dexter's rom from scratch if possible, to keep my data/apps, but am willing if that's the only way.
Sorry for the long post and if this question's been answered before, as I said I did do quite a bit of searching and couldn't find any comprehensive solution. Thanks
Click to expand...
Click to collapse
Did you try to format sd card with your phone in sd card and memory setting and then to create again ext3 partition with MiniTool Partition Wizard ?
Be sure to save data in your card first.
Mine is a galaxy SII, but I'm facing the same problem. I've formatted my microSD to EXT3 via MiniTool Partition but phone does not recognize it.
It says it's damaged and asks if I want to format it, after formatting thru the phone it returns to FAT32 and works perfectly again.
I've read more than 20 threads among several forums but I'm still not able to fix it.
Can you guys help me?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Did you create a second partition as ext3? AFAIK the first partition must be FAT (and marked bootable). Maybe you got that backwards?
Are you trying to partition the internal SD or the external. Samsung already has the internal partitioned into one Fat and another for your apps and cache. That is why your phone specs show 16gb internal but you only really have 14gb to put music, pix,...on. 2gb are already allotted for apps and cache. You can and should only partition the external one. My question is why are you trying to do this on an SGSII when it is not needed. No SGSII rom needs to have a partition and any Voodoo kernel will convert your system, data, cache and DB.data files to Ext4 anyways. Seems needless.
Mioze7Ae said:
Did you create a second partition as ext3? AFAIK the first partition must be FAT (and marked bootable). Maybe you got that backwards?
Click to expand...
Click to collapse
Had no success doing this, it shows the same information saying that "SD card is damaged". I really don't know what to do to make this work.
---------- Post added at 09:26 PM ---------- Previous post was at 09:24 PM ----------
Woodrube said:
Are you trying to partition the internal SD or the external. Samsung already has the internal partitioned into one Fat and another for your apps and cache. That is why your phone specs show 16gb internal but you only really have 14gb to put music, pix,...on. 2gb are already allotted for apps and cache. You can and should only partition the external one. My question is why are you trying to do this on an SGSII when it is not needed. No SGSII rom needs to have a partition and any Voodoo kernel will convert your system, data, cache and DB.data files to Ext4 anyways. Seems needless.
Click to expand...
Click to collapse
I'm trying the external SD. It's a ADATA 32GB microSD.
The reason I want to do this is to be able to copy files over 4GB.

Data2ext get more room for apps.

Ive been looking for something since I got this phone. Today with just system apps and 20 user apps on the internal partition I ran out of space yet again. So off to search google and I found this.
http://forum.xda-developers.com/showthread.php?t=1342387
What this will do is create a link from /data/app to a created partition on your sd card. It can move dalvik and a few other things to the /sd-ext partition.
I created a 1 gig partition and I have over 300 megs left for apps. I dont forsee a problem in the near future.
Good find. I'll need to check this out.
I just glanced at this briefly, but isn't this the same as app2sd which our phones already have? Or do o need to look at it closer? Lol
Sent from my SGH-I727 using xda app-developers app
Look closer!
Appps2SD isn't compatible with all apps, and it doesn't move the whole app.
Data2ext moves the whole thing to sd partition as well as all dalvik cache.
Good find eollie I yesterday saw this script that let's user fix the "low storage" this script works for our with cm9, aokp and nexus beam(haven't test the other roms)
So if you guys test with data2ext here's the link http://forum.xda-developers.com/showthread.php?p=26375859
Sent from my SGH-T959V using Tapatalk 2
Huh, I have 100+ apps, and lots of free space!
And all of them are 2mb +
I go to settings and manually move unmoved apps to sd card. For some reason CM isn't doing it automatically
thomas.raines said:
I just glanced at this briefly, but isn't this the same as app2sd which our phones already have? Or do o need to look at it closer? Lol
Sent from my SGH-I727 using xda app-developers app
Click to expand...
Click to collapse
Like airflip said read closer. This does more than just move the app to the sdcard. It fools your phone into thinking it has a larger /data partition and also moves a lot of stuff to the /sd-ext partition and sym links it back to the /data partition.
Im going to try this for a couple days and make sure it doesnt give me some wild errors.
Airflip I had a lot more apps installed when I was on stock roms. But cm based roms seem to fill the data cache up super fast. Atleast that is what I can figure out. The "app" I linked to has a option to fix the cm based data issues. I havent enabled it yet want to read up on it more.
Are your apps on SD? On CM9 I have a lot more storage than kj6.
Sent from my SGH-T959V using xda premium
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Woops posted the wrong picture initially. See how much free space it says I have?
Sent from my SGH-T959V using Tapatalk 2
Hi eollie
This looks amazing.
I hate it when I restore with TB and have to push apps one by one to sd card, to spare space and not all apps like it (dropbox) ..
I will definately test it on my next ROM flash.
sent from me
I dont suggest turning on the cmdalvik option or swap. Both of those made me extremely laggy. So far no issues.
Hey eollie,
This brings up an interesting discussion.
I've been thinking about moving to the SGS/Aries partitioning scheme.
MTD:
0 = boot (kernel)
1 = recovery (not usable... Maybe steal this space for system)
2 = /system
3 = /cache
4 = /efs
5 = /radio
6 = /datadata (mounts to /datadata which is symlinked to /data/data)
7 = reservoir
SD:
1 = /sdcard
2 = /data
This would of course mean that those with bigger sd cards will have more room for data.
Let me know what you think.
Sent from my SAMSUNG-SGH-I717 using xda premium
Basically it would work kinda like this zip does then right?
For this zip to work you have to have a ext2/3/4 partition.
Would adding data to sdcard work on the native partition?
The reason for needing the ext partition is it is much faster than the fat partitions.
Im all for giving people more rom for apps without having to flash apps and zips.
bhundven said:
Let me know what you think.
Click to expand...
Click to collapse
Yes please. I would really like to see this.
This phone's lack of internal memory drove me to buy a 32GB SD Card (Sandisk, ebay, fastest, claimed to be 'special for Android apps & games', for only 32$).
Looking forward towards this implementation.
sent from me
That scheme is confuzzling me.
So, /datadata is the same as our current data, but only important stuff like dalvik and etc will be there.
/mnt/sdcard/data is real data that the system will think is an internal data partition right?
/mnt/sdcard/SD is SD card right?
If I am right, boot will be faster, you will rarely run out of sd space unless you depleat sd card, if you pull out your sd card, then you will have no data partition, but sd mount from SystemUI will just mount /mnt/sdcard/SD right?
And in a perfect world, only apps will be there and not settings data which should remain in /datadata because if you boot without sd card, then phone will reset every time and ask to sign in, but then again, it'd look for a non-existant symlink and phone would still reset.
But won't widgets and other downloaded home replacements take forever to load? Or is there a way to move an app to /datadata?
In a way it's good cause you won't need apps2sd to auto move without the fear of low internal space.
Bad: Just like apps on Sd card that take 2-3 minutes to populate on app drawer, this would be consistent for all downloaded apps. Unless it mounts sd during boot proccess.
---------- Post added at 02:11 PM ---------- Previous post was at 02:08 PM ----------
This reminds me of my G1.
Swap partition wouldn't allow me to boot w/o sd card.
That is why a ext 2/3/4 partition is used because android read them faster. They are native to the os. I have only noticed problems with things when the sdcard used is a cheap four dollar one you find on ebay.
Basically what he is looking to do is build this .zip into the rom natively. Right now the only problem with this is a permissions issue. But other than that is has worked on other devices just fine without problems. Hopefully the permissions will not be a issue once we can move to mtp insteadof mass storage like bhundven is hoping for.
What is mtp?
Also, this will change the phones mounts completely, not just inbuilt zip. Resulting a new recovery.fstab, and new twrp requirement.
Sent from my SGH-T959V using xda premium
airfluip1 said:
What is mtp?
Also, this will change the phones mounts completely, not just inbuilt zip. Resulting a new recovery.fstab, and new twrp requirement.
Sent from my SGH-T959V using xda premium
Click to expand...
Click to collapse
MTP
Ill defer the rest of those questions to bhundven.
SO... I assume that the under MTP, /mnt/sdcard/SD will be mounted, but we will still be able to use it as a normal transfer method for roms and such not just media, correct?
Also, thanks for not sending me to LMGTFY despite my laziness in not googling it for myself.

need urgent help with partition

Dear Friends!!!
I have puchased a memory stick micro sd 32 gb for my LWW.
I've tried several times to partition it with two primary partition. One Fat32 primary partition about 30 gb, and the other primary partition about 1 gb. I've tried to use for the second partition Ext. 2, 3 and 4, but when I play "Aply" , the mini partition wizard creats it with non free space on the second partition.
I can´t understand what is going on with it. I formatted the microsd several times and the result is always the same, no free space on the ssecond partition.
I've tried to use Easus too, the result is the same. I've tried to make 3 partition, the 3rd. one Linux swap, about 32mb. Same result, non free space on second partition.
I need your help, I am worried about buying another and having the same problems. Please, please, help me please.: Llorando:
eli_porto said:
Dear Friends!!!
I have puchased a memory stick micro sd 32 gb for my LWW.
I've tried several times to partition it with two primary partition. One Fat32 primary partition about 30 gb, and the other primary partition about 1 gb. I've tried to use for the second partition Ext. 2, 3 and 4, but when I play "Aply" , the mini partition wizard creats it with non free space on the second partition.
I can´t understand what is going on with it. I formatted the microsd several times and the result is always the same, no free space on the ssecond partition.
I've tried to use Easus too, the result is the same. I've tried to make 3 partition, the 3rd. one Linux swap, about 32mb. Same result, non free space on second partition.
I need your help, I am worried about buying another and having the same problems. Please, please, help me please.: Llorando:
Click to expand...
Click to collapse
With which partition manager did you format the card and have you tried to partition the card with a computer?
eli_porto said:
Dear Friends!!!
I have puchased a memory stick micro sd 32 gb for my LWW.
I've tried several times to partition it with two primary partition. One Fat32 primary partition about 30 gb, and the other primary partition about 1 gb. I've tried to use for the second partition Ext. 2, 3 and 4, but when I play "Aply" , the mini partition wizard creats it with non free space on the second partition.
I can´t understand what is going on with it. I formatted the microsd several times and the result is always the same, no free space on the ssecond partition.
I've tried to use Easus too, the result is the same. I've tried to make 3 partition, the 3rd. one Linux swap, about 32mb. Same result, non free space on second partition.
I need your help, I am worried about buying another and having the same problems. Please, please, help me please.: Llorando:
Click to expand...
Click to collapse
if you're willing to use a computer I would recommend Paragon Partition Manager (for Windows), or gparted (for mac).
Although I haven't created or used more than one partition on an sd card, I would recommend changing to see if the partition is mounted. It could be that it has 0MB because it is not mounted.
Hope this helps.
I always use MiniTool® Partition Wizard Home Edition (http://www.partitionwizard.com/download.html) to do partitioning, and have had no problems with it. Creating ext2/3 partiotions on windows can be tricky however. There is a possibility that it is created alright, but that your partition manager just says that the space is not free.
Did you check if it works on your phone and if you can see if the partition has free space on your phone (check for example with rootexplorer)? You can also just try a script and see if it works. I recommend the d2ext+ script from here.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
this is what I'm trying to do
this is what I get
Man it has been a long time since I used that program but IIRC you can only have 1 Primary partition. I think the others need to be set to Logic.
When I get home tonight, I'll boot it up and see if I can find anything that you might be missing. Seems like it should be a small little drop down or tick. From your screenies, it looks like it is set up correctly but I'll look at it when I get home from work and post some thoughts.
eli_porto said:
View attachment 1260726
this is what I'm trying to do
View attachment 1260728
this is what I get
Click to expand...
Click to collapse
Could it be that you are not setting the partition type correctly? If you set up a new partition it should look like this:
So, file system ext3/4, primary partition.
Woodrube said:
Man it has been a long time since I used that program but IIRC you can only have 1 Primary partition. I think the others need to be set to Logic.
Click to expand...
Click to collapse
This is incorrect, you can have 4 primary partitions, so there's no need to set them up as logical.
eli_porto said:
View attachment 1260726
this is what I'm trying to do
View attachment 1260728
this is what I get
Click to expand...
Click to collapse
Can your Windows version read ext4 partitions? That could be a clue as to why it can't read/mount the new partition.
I would also like to suggest to make one partition primary and the other one logical just to be one the safe side.

Nougat Android 7.1.1, Emulated SD card, extremely annoying

Titanium Backup, ES Explorer, and many other Apps that correctly sees the Internal and External SD card works as expected.
However some "Poorly written Apps" that uses Emulated SD card as Default (expecting to point to Internal SD) they don't seem to work, as it seems to be a BUG or there's some sort of permission issue, because when I try to manually browse into Emulated SD, it's unable to link properly over to Internal SD.
Smarter Apps will let you choose alternate path, but some lazy Apps, will just fail as it doesn't allow you to choose another location.
So, as a workaround I'm looking for a way to Disable to System default "Emulated SD" this way it will force the apps to see the actual Internal SD without going through the Emulation SD link.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
See here if I go into Emulated SD, it's "empty" which is not true, since the actual Internal SD is full of files and folders as seen here.
How does this relate to U11?
Sent from my HTC U11 using Tapatalk
richteralan said:
How does this relate to U11?
Sent from my HTC U11 using Tapatalk
Click to expand...
Click to collapse
Because that's the phone I'm using, and I want to get rid of the Emulated SD from our U11, there are some apps that doesn't play well with it.
I'll rather have those Apps sees the real Internal SD instead.
The problem seems to be that most Apps expects the Samsung directory naming and emulation, so when it comes to other phones, they go kind of crazy when they try to use the emulated drive and lands on a different location.
/storage/emulated/0 means there is a folder named 0 which contains everything for user 0...
/storage/emulated/1 for user 1 and so on...
user 1 cannot see files from user 0, because its mounted with fuse.
but, you can still access everything in /data/media (this is where it is stored "physical")
if you need a single solution just for your phone, you can write a init.d script, which deletes the symlinks, umount the fuse stuff, and recreate symlinks for your needs.
edit: be aware the file system type of /data/media is ext4 and not vfat as expected from lazy apps, which means file names are case sensitive and duplicates upper/lower case are allowed.
so, try to modify the symlinks /sdcard /mnt/sdcard /storage/emulated/legacy or whatever, and if your app works, create a init.d script
edit 2: have a look at /mnt/media_rw/xxxx-xxxx also, if this is what you mean with internal sd, than its a separate vfat partition and not emulated storage. in this case /data/media should be empty. symlink /storage/xxxx-xxxx to /storage/emulated/legacy (or the expected samsung path) should be enough for your needs
My question is, why do you still use ES Explorer? It was great back in the day, but became trash when they introduced ads. Solid Explorer is much better if our ask me.

Categories

Resources