[Q] /emulated/0 and /emulated/legacy - Verizon Samsung Galaxy S 4

Alright, so I was kinda flipping between ROMs, Hyperdrive, Bonestock, Beanstown, and even a couple of AOSP ROMs. After all that flashing I realized I had a bunch of crap on my internal memory that I didnt need or want in there, so without even thinking about researching it before doing it I booted into recovery (TWRP) and formatted my internal memory.
Oops.
So, since then I have applied the one click return to stock that odins a stock MDK image. I applied the stock MDK recovery. I booted into the stock recovery and wiped and factory reset everything besides doing the reset and delete everything from the settings menu.
Maybe its just me not paying attention but I am noticing something after starting fresh that I dont remember noticing before.
I have moved pictures from my External Memory card back to my internal memory card and I the files show up in two places, /storage/emulated/0 and /storage/emulated/legacy... My pictures in Gallery are also showing up as in two places, even after restoring back to stock mdk, stock recovery, wiping everything, etc. Is this normal? Is it just something that I missed and didnt pay attention to beforehand? I dont remember the internal memory being like this prior to my attempt to format it in TWRP but hey, what do I know... It doesnt look like the files are being duplicated it looks like its a system thing that shows two different locations that are actually the same lcoation but really, I'm too stupid to know better. Is there a way for gallery not to show the same files twice since it doesnt look like the files are actually duplicated but just maybe some sort of internal link from the folders showing two seperate locations?
If I am wanting to restore files from my ext card that I backed up should they be put in /0 or /legacy or does it even matter?
Any help or advice would be greatly appreciated!

I'm pretty sure they are the same thing. I've noticed something similar on my phone.

/0 folder was created when we went to Android 4.2 (becuase of the ability to have user profiles) So system need a way to install apps on a per user basias.
The /legacy is for olders apps that are still written for Android 4.1.2 and below.
I hope I got that right. lol

Gunthermic said:
/0 folder was created when we went to Android 4.2 (becuase of the ability to have user profiles) So system need a way to install apps on a per user basias.
The /legacy is for olders apps that are still written for Android 4.1.2 and below.
I hope I got that right. lol
Click to expand...
Click to collapse
Not on my HTC One. Those two folders appear to be duplicates of my entire sdcard.
Can I delete the legacy directory without issue?

ccs86 said:
Not on my HTC One. Those two folders appear to be duplicates of my entire sdcard.
Can I delete the legacy directory without issue?
Click to expand...
Click to collapse
They are symbolic links that directory. As a result, they take up next to no space. Deleting them would be inviting trouble for, quite literally, no benefit.

Do not delete either one. I did that on my Galaxy nexus and deleted all my files they are linked together somehow
Sent from my SCH-I545 using Tapatalk

Gunthermic said:
/0 folder was created when we went to Android 4.2 (becuase of the ability to have user profiles) So system need a way to install apps on a per user basias.
The /legacy is for olders apps that are still written for Android 4.1.2 and below.
I hope I got that right. lol
Click to expand...
Click to collapse
This is correct. They are simply symbolic links pointing to the same directory. No worries.

same issue but doubleing the space used on internal memory
So I have the legacy and 0 folders same size same files. The problem is I have this awesome HTC one mini but stupid none expandable memory. I have not put but about five gigs in my phone, but with these two folders showing twice my phone is counting it twice. Basically I ha e no free space on my phone. Only half is actually there. WTF do I do?

skoobbarnes said:
So I have the legacy and 0 folders same size same files. The problem is I have this awesome HTC one mini but stupid none expandable memory. I have not put but about five gigs in my phone, but with these two folders showing twice my phone is counting it twice. Basically I ha e no free space on my phone. Only half is actually there. WTF do I do?
Click to expand...
Click to collapse
No, they're not using the space twice.
/storage/emulated/legacy/ is a pointer to /storage/emulated/0/
Anything in /storage/emulated/legacy also shows up in /storage/emulated/0 but they are the same file.
If you delete something in /0/ it will also be deleted in /legacy/ which means it's gone. Same thing happens if you delete anything from /legacy/.
It's not counting twice, you are. If you try to free space by deleting one of these, you will lose files you need. Look elsewhere for ways to free up space.

Double files for sure.
k1mu said:
No, they're not using the space twice.
/storage/emulated/legacy/ is a pointer to /storage/emulated/0/
Anything in /storage/emulated/legacy also shows up in /storage/emulated/0 but they are the same file.
If you delete something in /0/ it will also be deleted in /legacy/ which means it's gone. Same thing happens if you delete anything from /legacy/.
It's not counting twice, you are. If you try to free space by deleting one of these, you will lose files you need. Look elsewhere for ways to free up space.
Click to expand...
Click to collapse
I used the script SuperWipe_M4_xpirt.zip to completely clean my Phone because after I copied to my pc then deleted all my titanium back up media and DCIM my sdcard only had 1.4gb in on it. On the device all those files still showed under my legacy and /0 folder and I found a third under storage in the device. This is something funky. So after the SuperWipre Script from thread http://forum.xda-developers.com/showthread.php?t=2423576 I then flashed 4.3 sense 5.5 from thread http://forum.xda-developers.com/showthread.php?t=2575766 and now I have 11 gb on my phone. I will pay more attention to my storage when installing and changing things so I can see what, where, and/or how that happened. I have never encountered something like this before, nevertheless, i have never settle for a phone without external storage either. I wont ever do that again. But for a free phone plus a $56 credit to my account, I can't complain too much. Just a little. The One Mini is way better than the crappy lame POS LG Nitro HD .

I deleted /storage because the only thing inside it was "emulated" which appeared to be a random file, as opposed to a folder with a 0 inside of it. Expectedly, it seems, I lost everything. (Even though it was inside /mnt/sdcard/ with all my other files, i.e. /mnt/sdcard/DCIM, /mnt/sdcard/Music, /mnt/sdcard/storage, etc, so I didn't think it could somehow lead back to my files). Am I totally screwed and everything is gone or is there a way to like recreate the links to the files or something? Not sure if this made things worse too, but I've already restarted the phone somehow hoping it would recreate the directory structure or something.

Anyone know how to fix this issue.
Build Number: LMY47X.G928PVPU2AOI6
Model Number: SM-G928P
/storage/emulated/0
/storage/emulated/legacy
They both contain the same files and are linked together. So if I erase something from one it is erased on the other. That's fine I understand they have the same files.
The issue is my phone is counting the space being used twice. Say I have 14 gb's of free space. Then I download a 2 gb file and I go from 14 gb to 10 gb free.
I also noticed that these 2 paths are linked and have the same files /storage/sdcard0 and /sdcard.
Now I've discovered that all 5 of these paths have the same files I have a Galaxy S6 so I only have internal memory.
/storage/emulated/0
/storage/emulated/legacy
/storage/sdcard0
/storage/sdcard
/mnt/sdcard
Please help it's bad enough I only have 25 gb of space to begin with. Having 12.5 is even worse.

Sharpshank said:
Build Number: LMY47X.G928PVPU2AOI6
Model Number: SM-G928P
/storage/emulated/0
/storage/emulated/legacy
They both contain the same files and are linked together. So if I erase something from one it is erased on the other. That's fine I understand they have the same files.
The issue is my phone is counting the space being used twice. Say I have 14 gb's of free space. Then I download a 2 gb file and I go from 14 gb to 10 gb free.
I also noticed that these 2 paths are linked and have the same files /storage/sdcard0 and /sdcard.
Now I've discovered that all 5 of these paths have the same files I have a Galaxy S6 so I only have internal memory.
/storage/emulated/0
/storage/emulated/legacy
/storage/sdcard0
/storage/sdcard
/mnt/sdcard
Please help it's bad enough I only have 25 gb of space to begin with. Having 12.5 is even worse.
Click to expand...
Click to collapse
Dammit this thread screwing with everyone. Every path is like the way to get to a file in your sd card. The two paths are like different sets of directions, but both lead to the same place.

I know they are different paths but why the double space
whowatchlist said:
Dammit this thread screwing with everyone. Every path is like the way to get to a file in your sd card. The two paths are like different sets of directions, but both lead to the same place.
Click to expand...
Click to collapse
I know they are different paths but why are they taking up twice the space? My S4 had the same paths but it didn't count the files twice towards used storage.
/storage/emulated = 7 gb
/storage/emulated/0 = 3.5 gb
/storage/emulated/Legacy =3.5 gb
Shouldn't /storage/emulated = only say 3.5 gb?

Related

[Q] Can't free space on my phone?

My phone is NOT rooted.
Few days ago, it started saying not enough storage space, uninstall some programs, 200 mb left free.
First of all, i moved what can be moved from phone to SD, and actually i was already doing that since i bought the phone (2 months ago), and still it didn't help.
So i uninstalled programs which can't be moved from phone, cleared all cache and some data, and had 240 mb free.
Now it's back again to 188 mb free! And i calculated the sum of the downloaded programs and they don't get past 100 mb! I don't understand? Why a 2 GB memory get used up like that?
Further more, one of the programs i had was 7 mb, and when i uninstalled it, it freed only 1 mb!
Do these programs gather some data in a way that can't be deleted?
first of all, moving apps 2 sd does not really make sense. then, your 2gb data partition, that is meant for apps stays empty, while you waste space on your sdcard, which could be used for files of all sorts, like music, pictures and video.
since obviously, in your case, something went wrong, you should format the /data/ partition. without root privileges, it is not that easy to do though. apparently, you are not very attached to your apps' data, since you said you deleted most of that. if you have backed up everything else, like contacts, calendar and so on to your google account, make a backup of your sms and then the sdcard to your pc through usb and perform a full factory reset, then when you set up your phone, your apps will be downloaded again and should not waste as much space anymore.
My USB storage is 12 GB, and SD card is 32: i am not worried about that. Actually i prefer nothing to be on the 2 GB of system storage, even apps! I just don't understand: what eats up the root partition like that? I don't want it to happen again. I will do what you said, but i need to prevent this from happening again. You know what could have done this?
MagnumJoe said:
My USB storage is 12 GB, and SD card is 32: i am not worried about that. Actually i prefer nothing to be on the 2 GB of system storage, even apps! I just don't understand: what eats up the root partition like that? I don't want it to happen again. I will do what you said, but i need to prevent this from happening again. You know what could have done this?
Click to expand...
Click to collapse
Perusing your past posts, it appears you have an I9100G.
This may be of some interest to you. You will need root in order to even see if this is your problem, though; not to mention in order to implement the workaround presented in that thread.
why in the world would you want the 2gb data partition to be empty. it is on the same physical internal sdcard as the 12gb partition?
Chef_Tony said:
why in the world would you want the 2gb data partition to be empty. it is on the same physical internal sdcard as the 12gb partition?
Click to expand...
Click to collapse
No no! I am not partitioning anything! The phone's settings are this way!? The internal memory is: 2 GB system memory: which has the system files, which are full and i can't access these 2 GB because they are system storage and i am not rooted, and 14 GB called "USB" Storage. I didn't do this partition. And i want to keep these 2 GB free for system only, not even apps or anything.
Edit: sorry i thought the thread was irrelevant, but it is relevant. But i don't understand: that dump file, what does it do? I am not following what thy are saying? Also i have another problem: I don't know how to back up my phone while Kies and my PC both utterly refuse to recognize my phone. I gave up on them. It's useless.
MagnumJoe said:
No no! I am not partitioning anything! The phone's settings are this way!? The internal memory is: 2 GB system memory: which has the system files, which are full and i can't access these 2 GB because they are system storage and i am not rooted, and 14 GB called "USB" Storage. I didn't do this partition. And i want to keep these 2 GB free for system only, not even apps or anything.
Edit: sorry i thought the thread was irrelevant, but it is relevant. But i don't understand: that dump file, what does it do? I am not following what thy are saying? Also i have another problem: I don't know how to back up my phone while Kies and my PC both utterly refuse to recognize my phone. I gave up on them. It's useless.
Click to expand...
Click to collapse
The issues are related. The dump file being generated is saved to the /data partition, which is part of the 2gb system storage. This is what is eating up your space in the 2gb. The 2gb is for system apps, installed apps, etc. The dump file is more or less an error log dump. It is supposed to stay relatively small, but on some versions of GB for the i9100G, this for some strange reason (that I don't know, since I don't have an i9100G) grows erroneously large.
The workaround detailed in the thread I linked above is to remove execute permissions from the dumpstate file. This has the effect of the system being unable to create the wifi dump file, thus no longer eating up the space on that 2gb partition.
ctomgee said:
The issues are related. The dump file being generated is saved to the /data partition, which is part of the 2gb system storage. This is what is eating up your space in the 2gb. The 2gb is for system apps, installed apps, etc. The dump file is more or less an error log dump. It is supposed to stay relatively small, but on some versions of GB for the i9100G, this for some strange reason (that I don't know, since I don't have an i9100G) grows erroneously large.
The workaround detailed in the thread I linked above is to remove execute permissions from the dumpstate file. This has the effect of the system being unable to create the wifi dump file, thus no longer eating up the space on that 2gb partition.
Click to expand...
Click to collapse
Read only, either by adb or terminal. Now what? That G variation should be burned alive! I found the dump files, they are text logs for god's sake! And they are freaking huuuge! What the hell?
MagnumJoe said:
Read only, either by adb or terminal. Now what? That G variation should be burned alive! I found the dump files, they are text logs for god's sake! And they are freaking huuuge! What the hell?
Click to expand...
Click to collapse
From my post above. (post 4)
ctomgee said:
Perusing your past posts, it appears you have an I9100G.
This may be of some interest to you. You will need root in order to even see if this is your problem, though; not to mention in order to implement the workaround presented in that thread.
Click to expand...
Click to collapse
So if you see the file, I can only assume you are rooted? Then delete the file.
Follow directions in the linked thread to prevent further dump files from being created.
ctomgee said:
From my post above. (post 4)
So if you see the file, I can only assume you are rooted? Then delete the file.
Follow directions in the linked thread to prevent further dump files from being created.
Click to expand...
Click to collapse
Ummm... I deleted the dumpstate file, and then when i do the adb trick or the terminal one, it says: Bad mode?
MagnumJoe said:
Ummm... I deleted the dumpstate file, and then when i do the adb trick or the terminal one, it says: Bad mode?
Click to expand...
Click to collapse
It really says "Bad mode"?
I take it you read post 10 of the thread I linked above?
If you are having issues with adb, then use option c from that post. You need to mount /system as R/W before you will be allowed to change permissions on the dumpstate file though.
EDIT: wait a sec. You actually DELETED the /system/bin/dumpstate file? Well, I wouldn't have done that, but that should also solve your problem, since now the file just doesn't exist, so no more dump files will get generated. It also would probably be the reason you can't change permissions on that file. Since you deleted it, it doesn't exist anymore, so you can no longer change permissions on it. ( :facepalm: )
The file(s) I was telling you to delete was whatever wifi dump files were in /data. NOT the /system/bin/dumpstate file. I was saying you just needed to remove execute permission from that file so it would be unable to generate any more dump files.
ctomgee said:
It really says "Bad mode"?
I take it you read post 10 of the thread I linked above?
If you are having issues with adb, then use option c from that post. You need to mount /system as R/W before you will be allowed to change permissions on the dumpstate file though.
EDIT: wait a sec. You actually DELETED the /system/bin/dumpstate file? Well, I wouldn't have done that, but that should also solve your problem, since now the file just doesn't exist, so no more dump files will get generated. It also would probably be the reason you can't change permissions on that file. Since you deleted it, it doesn't exist anymore, so you can no longer change permissions on it. ( :facepalm: )
The file(s) I was telling you to delete was whatever wifi dump files were in /data. NOT the /system/bin/dumpstate file. I was saying you just needed to remove execute permission from that file so it would be unable to generate any more dump files.
Click to expand...
Click to collapse
Oh! I misunderstood you. No of course i tried this adb thing before deleting it. And it said bad mode. Then i deleted it. Isn't this a file to give the command of making these dump files about wifi error? To hell with it! What would i do with that anyway? Nothing wrong will happen. It's like ending the dumprep.exe process on windows xp. And by the way, even when i did the R/W thing, it still said that the file is Read only, and i can't access its permissions. That I9100G is a pain in the freaking a$$: it always needs a "special" kind of everything!
Thank you very much anyway for your help That was too the point and very professional It's sure that you will have my thanks.
MagnumJoe said:
No no! I am not partitioning anything! The phone's settings are this way!? The internal memory is: 2 GB system memory: which has the system files, which are full and i can't access these 2 GB because they are system storage and i am not rooted, and 14 GB called "USB" Storage. I didn't do this partition. And i want to keep these 2 GB free for system only, not even apps or anything.
Edit: sorry i thought the thread was irrelevant, but it is relevant. But i don't understand: that dump file, what does it do? I am not following what thy are saying? Also i have another problem: I don't know how to back up my phone while Kies and my PC both utterly refuse to recognize my phone. I gave up on them. It's useless.
Click to expand...
Click to collapse
the entire storage inside the phone is one 16GB sd card which is built into the phone. there are different partitions on there:
your system is on the 1GB partition /system/, your rom, your system apps and settings are stored there.
then there is a 2GB partition /data/, that is exclusively for user installed apps and their data, from the play store for instance.
there are some other minor partitions and then there is about 12GB of "usb storage", shown as /sdcard/.
if you don't use the /data/ partition for apps, it will remain entirely empty and unused. and in the last sentence of the first paragraph you state you want it for the system, but that does not work, the /system/ partition will always be 1GB and not use /data/.
Another reason I asked and informed you of the fact that it is the same card is, some people think, app2sd is faster, or slower or makes any difference whatsoever to the system, but it is the same card, same speed, only that app2sd wastes space.
i know, this still does not do anything about your problem, but is meant purely for your information, so in the future you can make an informed decision, where what data goes and that you should use the data partition.
i currently have 130 apps installed (some of which are games of >40MB), all internally and use 1GB of the /data/ partition, at the most i had 340 apps (most of them rather small though) and it still was not full.

[Q] SD card folder structure?

When I got my Notea few months ago I installed the SD card from my Streak into it, without reformatting as I was short on time. Now that I have a moment I reformatted that card so could get rid of the Streak data and gain some space.
Does the Note create the file structure that it wants as I use it or should I recreate folders in whatever structure I want? Previously I had media, music, video...etc folders; created by the Streak I guess I am asking if whatever folders I create have an impact on the device or will it just find whatever I put in there?
The Note created a Lost.dir folder immediately, as well as DCIM. In addition I now have a external_sd folder on the card with another DCIM folder inside.
The rom will create the file structure...
Additionally ....some apps will use the space as well ...
It is known as the EMMC partition ...g
gregsarg said:
The rom will create the file structure...
Additionally ....some apps will use the space as well ...
It is known as the EMMC partition ...g
Click to expand...
Click to collapse
Thanks!
I forgot to mention that I am on stock AT&T ICS. Not rooted or anything (yet). I assume that doesn't matter in this issue? The Streak was on a bunch of ROMs over the year or so I had it but I never looked to see if any had an impact on the SD structure.
delawaredrew said:
Thanks!
I forgot to mention that I am on stock AT&T ICS. Not rooted or anything (yet). I assume that doesn't matter in this issue? The Streak was on a bunch of ROMs over the year or so I had it but I never looked to see if any had an impact on the SD structure.
Click to expand...
Click to collapse
Nope...no impact at all..
And just FYI...
You do not need root to flash custom roms...only the custom recovery....It can be found in the note everything thread, at the top of the general section...g

Internal memory almost full, no idea why

Hi, I have a s3 international version, rooted and cm11 on it. My internal memory is almost full and I can't seem to move apps to external sd card. Also, a few months ago I had 5 gigs of space left, now 900mb... Did a complete whipe and started all over again, but still 900mb free memory. Is there a way I can delete everything, maybe go back to stock an start all over?
Thanks
Camera, or game data files, or changing rom to rom
1.When you switch from rom to rom( like 4.1.2 to 4.2.2) it leaves the previous rom's files in an folder named '0'..
2. when you may put some pirated games, after wipe.. the folder( data files) still exist
3. well, have you been recording a lot of videos or took a lot of pics??
I did have a few '0' folders, but I deleted them al.
Could be a few app folder, but definitely not 4gigs.and I have maybe 50 photos on it and no films.
Would it be bad if I deleted everything on the internal sd?
I also have a folder storage/emulated/0 and storage/emulated/legacy. In both are the same files. Can I delete 1 of the 2 entirely?
Thanks for the fast reply btw
tanghe05 said:
I did have a few '0' folders, but I deleted them al.
Could be a few app folder, but definitely not 4gigs.and I have maybe 50 photos on it and no films.
Would it be bad if I deleted everything on the internal sd?
I also have a folder storage/emulated/0 and storage/emulated/legacy. In both are the same files. Can I delete 1 of the 2 entirely?
Thanks for the fast reply btw
Click to expand...
Click to collapse
To be on your place I would install Root Manager from G.Play and carefully looked inside. In acc to result i would be acting next step. And probably you will find another 0 folder. ( personal experience)
https://play.google.com/store/apps/details?id=com.speedsoftware.rootexplorer&hl=en
tanghe05 said:
Hi, I have a s3 international version, rooted and cm11 on it. My internal memory is almost full and I can't seem to move apps to external sd card. Also, a few months ago I had 5 gigs of space left, now 900mb... Did a complete whipe and started all over again, but still 900mb free memory. Is there a way I can delete everything, maybe go back to stock an start all over?
Thanks
Click to expand...
Click to collapse
Use any file explorer (ES file explorer has one) which has storage space analysis tools.
That'll help you to locate the folders which are using most of the space.

[Q] Use /storage/external_SD instead of /storage/sdcard0

I have a LG Optimus L3 II, and since it has less than 2 GB of total ROM, I have bought an external SD card. I have some experience with Linux desktop systems, but not really with Android. On a Linux desktop, if I lack disk space, I can mount /home to the device I want using /etc/fstab, so all my personal files are transparently saved to the specified device.
I have noticed that my user files on the LG Optimus are all saved to /storage/sdcard0. Also, that there is a symlink from /sdcard to /storage/sdcard0.
What I would like to accomplish is to transparently have all my personal files on /storage/external_SD, but I'm not sure if I can just change /sdcard to point to the new location, or if I would need to change mount points somewhere, etc. I have searched on Google about this, but found nothing clear, and it seems this may vary from device to device. Also, I haven't tried anything yet, because I don't really think I would be able to recover if anything goes bad.
Thanks for your attention!
teresaejunior said:
I have a LG Optimus L3 II, and since it has less than 2 GB of total ROM, I have bought an external SD card. I have some experience with Linux desktop systems, but not really with Android. On a Linux desktop, if I lack disk space, I can mount /home to the device I want using /etc/fstab, so all my personal files are transparently saved to the specified device.
I have noticed that my user files on the LG Optimus are all saved to /storage/sdcard0. Also, that there is a symlink from /sdcard to /storage/sdcard0.
What I would like to accomplish is to transparently have all my personal files on /storage/external_SD, but I'm not sure if I can just change /sdcard to point to the new location, or if I would need to change mount points somewhere, etc. I have searched on Google about this, but found nothing clear, and it seems this may vary from device to device. Also, I haven't tried anything yet, because I don't really think I would be able to recover if anything goes bad.
Thanks for your attention!
Click to expand...
Click to collapse
You can't just replace /sdcard to point to a new location, as Android is always expected to run from the internal storage, and this can cause mayhem. Now, the first question you should answer to yourself is what you mean when you say "personal files": if you just need to store songs, pictures, movies etc., you can store them on the external SD without any issues.
However, the main problem with Android in this aspect is the applications (apps and their data). The best thing would be if you could natively install them on the SD. But this is not always possible, since SD cards are usually formatted with non native Linux file systems (such as FAT) ,in order for them to be mounted on Windows, meaning that they lack the infrastructure to run apps from within (like file permissions or symlinks).
Solution here is the following: Format your SD card to be either all or partially of an ext3/4 file system type (so it can at least hold all apps and their data), then install the Link2SD app, which moves the application to this SD partition and creates all links from the internal drive to this partition. The paid version of this app (Link2SD+, which costs $1) allows you to link also the application data to the SD card (not only the app itself). I have used this solution on many low end devices I had in the past (like yours basically), and it solved this issue perfectly.
Digdis said:
You can't just replace /sdcard to point to a new location, as Android is always expected to run from the internal storage, and this can cause mayhem. Now, the first question you should answer to yourself is what you mean when you say "personal files": if you just need to store songs, pictures, movies etc., you can store them on the external SD without any issues.
However, the main problem with Android in this aspect is the applications (apps and their data). The best thing would be if you could natively install them on the SD. But this is not always possible, since SD cards are usually formatted with non native Linux file systems (such as FAT) ,in order for them to be mounted on Windows, meaning that they lack the infrastructure to run apps from within (like file permissions or symlinks).
Solution here is the following: Format your SD card to be either all or partially of an ext3/4 file system type (so it can at least hold all apps and their data), then install the Link2SD app, which moves the application to this SD partition and creates all links from the internal drive to this partition. The paid version of this app (Link2SD+, which costs $1) allows you to link also the application data to the SD card (not only the app itself). I have used this solution on many low end devices I had in the past (like yours basically), and it solved this issue perfectly.
Click to expand...
Click to collapse
Thanks for your answer, Digdis! What I'm really looking for is not to have applications installed on the external SD card, since 2GB is more than enough for applications for me. What I really want is to have stuff that generally goes to /storage/sdcard0 in /storage/external_SD, because this is where my personal files and settings goes to. For example, if I download something, no matter what size, or record videos, I would expect them all to go directly to the SD card. I know a few applications, not all, can be directly configured to use the external card, but it would be a rather unintelligent way, unless Google has decided to throw basic Linux design out of the window.
Also, what you are telling me is that applications will fail to run if Android/data/ is on an external SD card? Because if I just install applications on SD card, it won't really solve my problem, because I have few applications installed, but data on /storage/sdcard0 tends to grow a lot.
teresaejunior said:
Thanks for your answer, Digdis! What I'm really looking for is not to have applications installed on the external SD card, since 2GB is more than enough for applications for me. What I really want is to have stuff that generally goes to /storage/sdcard0 in /storage/external_SD, because this is where my personal files and settings goes to. For example, if I download something, no matter what size, or record videos, I would expect them all to go directly to the SD card. I know a few applications, not all, can be directly configured to use the external card, but it would be a rather unintelligent way, unless Google has decided to throw basic Linux design out of the window.
Also, what you are telling me is that applications will fail to run if Android/data/ is on an external SD card? Because if I just install applications on SD card, it won't really solve my problem, because I have few applications installed, but data on /storage/sdcard0 tends to grow a lot.
Click to expand...
Click to collapse
OK understood. First of all 2GB seems a bit low for both ROM and apps, but if you say it works for you...
Now, regarding automatic download of pics etc. to SD. You can try Xposed module Downloads2SD . Didn't try it, but you can give it a try.
You can actually do that by telling the system to mount them differently but LG handles that by initiation not fstab. I can try and help you.
Didn't explain it very well. Mount the External SD as sdcard0 and sdcard0 as External_sd so the phone will safe on sdcard0 which we just made the external_SD. There can be problems with pictures recognition or music stuff like that but it should work.
Thanks a lot, @Digdis, I'll keep everything you said for reference.
@christi9503 OK, please, let's try it!
teresaejunior said:
Thanks a lot, @Digdis, I'll keep everything you said for reference.
@christi9503 OK, please, let's try it!
Click to expand...
Click to collapse
Are you rooted with a custom recovery? We need root for this and also you need to give me some files.
christi9503 said:
Are you rooted with a custom recovery? We need root for this and also you need to give me some files.
Click to expand...
Click to collapse
Yes, it is rooted, but what do you mean with "a custom recovery"?
teresaejunior said:
Yes, it is rooted, but what do you mean with "a custom recovery"?
Click to expand...
Click to collapse
CloworkMod(CWM) or TWRP recovery. So you can flash flashable zip.
christi9503 said:
CloworkMod(CWM) or TWRP recovery. So you can flash flashable zip.
Click to expand...
Click to collapse
Are both supported on this device?
teresaejunior said:
Are both supported on this device?
Click to expand...
Click to collapse
Search around the forum a guy around ported all from what I know. Anyway install one of the recoveries to get ready.
What I want you to do now is this:
Check in storage path (with a root explorer) what folder you have like sdcard0, external_sd etc. Tell me all and what is the address (where it links)
EX: sdcard0 -> internal storage.
Also go in system/etc/ and copy me with a root explorer to sd card and then upload it on forums this file : init.qcom.post_boot.sh
christi9503 said:
Search around the forum a guy around ported all from what I know. Anyway install one of the recoveries to get ready.
What I want you to do now is this:
Check in storage path (with a root explorer) what folder you have like sdcard0, external_sd etc. Tell me all and what is the address (where it links)
EX: sdcard0 -> internal storage.
Also go in system/etc/ and copy me with a root explorer to sd card and then upload it on forums this file : init.qcom.post_boot.sh
Click to expand...
Click to collapse
Installing will probably take me some time, because Android is refusing to install anything now saying I don't have enough free space (although I have 199MB, but maybe it thinks is too little). The information you have requested I have already:
There is /sdcard/, which is just a symlink to /storage/sdcard0/.
/storage/sdcard0, which is the internal memory, is mounted like:
Code:
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
And there is also /storage/external_SD/, which is mounted like:
Code:
/dev/block/vold/179:33 /storage/external_SD vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
init.qcom.post_boot.sh is attached.
teresaejunior said:
Installing will probably take me some time, because Android is refusing to install anything now saying I don't have enough free space (although I have 199MB, but maybe it thinks is too little). The information you have requested I have already:
Click to expand...
Click to collapse
This is why I urged you to start moving apps to the SD card. Android will refuse to install anything on your internal memory unless you have at least 10% free space.
teresaejunior said:
Installing will probably take me some time, because Android is refusing to install anything now saying I don't have enough free space (although I have 199MB, but maybe it thinks is too little). The information you have requested I have already:
There is /sdcard/, which is just a symlink to /storage/sdcard0/.
/storage/sdcard0, which is the internal memory, is mounted like:
Code:
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
And there is also /storage/external_SD/, which is mounted like:
Code:
/dev/block/vold/179:33 /storage/external_SD vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
init.qcom.post_boot.sh is attached.
Click to expand...
Click to collapse
Well install recovery by adb with dd (in shell).
---------- Post added at 06:43 PM ---------- Previous post was at 06:31 PM ----------
@teresaejunior
Under /mnt (on the root I think) you will have some folder like sdcard, external_SD etc inside that folder. Tell me what folders are there and the one that gets you in internal and the one that gets you in external pls.
CWM is installed!
In /mnt there are:
Code:
asec
obb
sdcard -> /storage/sdcard0
secure
teresaejunior said:
CWM is installed!
In /mnt there are:
Code:
asec
obb
sdcard -> /storage/sdcard0
secure
Click to expand...
Click to collapse
Ok gonna give you a flashable zip in a second that will replace your post boot script. If it goes into bootloop we got a backup don't worry.
teresaejunior said:
CWM is installed!
In /mnt there are:
Code:
asec
obb
sdcard -> /storage/sdcard0
secure
Click to expand...
Click to collapse
Flash this and tell me if they are swapped. Through CWM.
View attachment SwapL32.zip
christi9503 said:
Flash this and tell me if they are swapped. Through CWM.
View attachment 3082829
Click to expand...
Click to collapse
I think it swapped, but now many applications are crashing or failing to open files. I copied all files from sdcard0 to external_SD and rebooted, but it still doesn't seem to help. Maybe I should have formatted the external SD to ext*?
teresaejunior said:
I think it swapped, but now many applications are crashing or failing to open files. I copied all files from sdcard0 to external_SD and rebooted, but it still doesn't seem to help. Maybe I should have formatted the external SD to ext*?
Click to expand...
Click to collapse
Nope you do not need to format it in order to work. Just make a clean install and use this swap. Maybe you copied them wrong. If the swap worked all is fine my friend.
christi9503 said:
Nope you do not need to format it in order to work. Just make a clean install and use this swap. Maybe you copied them wrong. If the swap worked all is fine my friend.
Click to expand...
Click to collapse
OK, thank you so much, now _this is_ going to take a good time!

Storage issue Asus Padfone S SKU WW_12.2.2.41

Hello fellow Asus Padfone S users, my name is Andy.
I have a question regarding Internal Storage. Using Asus File Manager, I open the Storage Analyzer at bottom.
There I noticed something fishy,there are 9 Gb of memory in Others Tab. When I click the detail, it is said that I'm using only 3 Gb of space. So,where is the other 6 Gb...?
OK,so then I check in Asus File Manager Internal Storage. Then I click the root (my phone isn't rooted) directory withou hiding the system files. There, I see 2 folder, sdcard and storage, which has the same amount as my internal storage.
The sdcard folder contains my internal storage data. But in the storage folder, it contains emulated and sdcard0 folder which the sdcard0 folder has the same data as the sdcard folder in root.
Then I open the emulated folder. In there, I found 2 folders, 0 and legacy folder. And it has the same amount of data as my sdcard folder in root.
So what is this folders means...? They duplicate my internal storage data and making my phone internal storage full. Can I delete the other folders...? Will it corrupt my phone...?
Any opinion on this is much appreciated.
Thank you before.
winged_potato said:
Hello fellow Asus Padfone S users, my name is Andy.
I have a question regarding Internal Storage. Using Asus File Manager, I open the Storage Analyzer at bottom.
There I noticed something fishy,there are 9 Gb of memory in Others Tab. When I click the detail, it is said that I'm using only 3 Gb of space. So,where is the other 6 Gb...?
OK,so then I check in Asus File Manager Internal Storage. Then I click the root (my phone isn't rooted) directory withou hiding the system files. There, I see 2 folder, sdcard and storage, which has the same amount as my internal storage.
The sdcard folder contains my internal storage data. But in the storage folder, it contains emulated and sdcard0 folder which the sdcard0 folder has the same data as the sdcard folder in root.
Then I open the emulated folder. In there, I found 2 folders, 0 and legacy folder. And it has the same amount of data as my sdcard folder in root.
So what is this folders means...? They duplicate my internal storage data and making my phone internal storage full. Can I delete the other folders...? Will it corrupt my phone...?
Any opinion on this is much appreciated.
Thank you before.
Click to expand...
Click to collapse
Asus roms structure these folders differently than other phones. It differs from other devices.
They are basically the same, basically serves as symlinks to internal storage. (It does the same with my phone)
Your actual SD card should be under removeable/MicroSD if its inserted. No other paths unlike internal storage.
With the exception of the padfone s plus...
They do that so apps can save their data directly into internal storage, and the reason why there are many paths to the same is to maximize app saving compatibility.
Regarding to your issue with you running out of memory around 6gbs is taken out right away because the system uses it. You can use 10.77GB out of the 16GB available. After you first set up your device (Im sure its different with custom roms) Different reasons for that.
Its different with different devices and maybe different roms.
Anything other than that just for say around the system takes more, means there is something is wrong and a factory reset usually fixes that. Pretty confusing stuff I know but other manufacturers do the same thing, samsung got backlash when GS4 got released after users complained that the OS used up almost half of their internal storage.
Justatechie said:
Asus roms structure these folders differently than other phones. It differs from other devices.
They are basically the same, basically serves as symlinks to internal storage. (It does the same with my phone)
Your actual SD card should be under removeable/MicroSD if its inserted. No other paths unlike internal storage.
With the exception of the padfone s plus...
They do that so apps can save their data directly into internal storage, and the reason why there are many paths to the same is to maximize app saving compatibility.
Regarding to your issue with you running out of memory around 6gbs is taken out right away because the system uses it. You can use 10.77GB out of the 16GB available. After you first set up your device (Im sure its different with custom roms) Different reasons for that.
Its different with different devices and maybe different roms.
Anything other than that just for say around the system takes more, means there is something is wrong and a factory reset usually fixes that. Pretty confusing stuff I know but other manufacturers do the same thing, samsung got backlash when GS4 got released after users complained that the OS used up almost half of their internal storage.
Click to expand...
Click to collapse
Thank you very much for your respon.
Yes,I do know that my SD Card is under Removable.
And yes,I know that 6Gb are taken out for the system. I can looked it in Setting/Storage section.
But what I meant is that the reduction is from the 10 Gb that I have.
What if i delete those copied folders...? Is that OK...?
I'll try to factory reset it and see if the issue occurs. It may take somewhile cause it's frustrating if you Factory Reset your daily devices.
Thank you for your respons...

Categories

Resources