[Q] /sdcard /storage - AT&T LG Optimus G

I got question and I apologize if it has been asked, I cannot find any information on it.
I just got this phone a few days ago and have rooted/unlocked and started flashing roms ect. to find the one I like. I would delete the flash zip for roms I no longer was using. I started to notice that my internal storage was starting to fill up pretty fast so I checked out Root Explorer.
I noticed in my root folder I have /sdcard and /storage. In /storage it has several folders (/storage/emulated/0, /storage/emulated/legacy, /storage/sdcard0) that have all of the exact same files as in my root /sdcard folder.
I obviously messed something up and missed some important information here. So... what did I do? How can I fix that, and how can I not do this again?
I'm currently using Rootbox Vanilla and will most likely stick with that until a nice 4.3 comes along.

The /sdcard folder in root should just be a link to the path /storage/emulated/0. Make sure you check the actual paths of each. Create a new file in /storage/sdcard0 and see if it was created in /storage/emulated/0.
Sent from my LG-E970 using xda premium

OK, I'll try that now
Sent from my Optimus G using xda app-developers app

Joecascio2000 said:
The /sdcard folder in root should just be a link to the path /storage/emulated/0. Make sure you check the actual paths of each. Create a new file in /storage/sdcard0 and see if it was created in /storage/emulated/0.
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
OK yeah it created a file in all three folders. So I'm assuming like you said its just creating a path and not just making copies of everything.
Just figured out how to tell which folders link to what. Thanks for the quick response.
Sent from my Optimus G using xda app-developers app

MiZrY said:
OK yeah it created a file in all three folders. So I'm assuming like you said its just creating a path and not just making copies of everything.
Just figured out how to tell which folders link to what. Thanks for the quick response.
Sent from my Optimus G using xda app-developers app
Click to expand...
Click to collapse
No problem. And for future reference /data/media should also contain similar files and those are also no duplicates. It may also contain extra files applications use that are not located in any other location/path.
If you find yourself running into low internal storage, I recommend checking out FolderMount. Just moving over a few large folders in /Android and /Android/obb saved me a lot of space.
In fact, I only moved 7 folders and save 12.8GBs on my internal. Check it out http://forum.xda-developers.com/showthread.php?t=2192122.

Related

Can't seem to locate /sdcard folder in files

So I've been searching the q and a section for a while now to see if anyone else was having the same issue as myself. I am trying to apply the gtabroot.zip in recovery mode but I can't get the .zip to show up when I choose apply. I try to move the file to the root folder but still nothing. What am I not doing correctly?
Sent from my GT-P7510 using XDA Premium App
I'm not rooted yet but from looking at this video, the guy has pasted the file into the 'Tablet' folder after browsing within Kies.
Edit: Perhaps it's advisable that you watch the whole in case the method isn't quite the same as the one you're trying.
http://www.youtube.com/watch?v=krQDP7xYlWg&feature=player_detailpage#t=180s
Thank you
galaxatized with honeycomb™

[Q] Shortcut in sdcard for a folder in sdcard-ext

Hey guys!!!
Does anybody know a way to create a shortcut in sdcard where files stored in that folder is actually a shortcut to the folder in sdcard-ext....
I dont know if any one is getting this....
I mean to say that my sdcard is very low on memory and most of the applications requires memory in it...i want to create a shortcut in sdcard which is actually a shortcut to a folder in Sdcard-ext...so that any application would recognize it as a folder in sdcard when it actually stores in sdcard-ext and executes the function of the file in the shortcut folder properly...
I actually found a thread but no explanations....
sorry if anyone finds this thread unnecessary but if someone knows the answer that would be helpful for so many of us...
Thanks
Harish
harishjkhv said:
Hey guys!!!
Does anybody know a way to create a shortcut in sdcard where files stored in that folder is actually a shortcut to the folder in sdcard-ext....
I dont know if any one is getting this....
I mean to say that my sdcard is very low on memory and most of the applications requires memory in it...i want to create a shortcut in sdcard which is actually a shortcut to a folder in Sdcard-ext...so that any application would recognize it as a folder in sdcard when it actually stores in sdcard-ext and executes the function of the file in the shortcut folder properly...
I actually found a thread but no explanations....
sorry if anyone finds this thread unnecessary but if someone knows the answer that would be helpful for so many of us...
Thanks
Harish
Click to expand...
Click to collapse
I assume you are on a stock ROM?
On CM7 I can mount the say internal sdcard to something like /sdcard/internal. On CM7 internal is mounted as /emmc and external is /sdcard.
Have to change fstab and build.prop and reboot.
Sent from my MB860 using Tapatalk
If I remember correctly, we used to do this with the ZT180 tablet, have a look at creating a symlink.
Thank you karloos and dennis for the prompt reply....
@dennis....yeah I am using a stock rom...is there any way to make it work...
@karloos....would you mind giving me the instructions as to how to create a symlink
And did it work in the tablet....
Thanks guys
harishjkhv said:
Thank you karloos and dennis for the prompt reply....
@dennis....yeah I am using a stock rom...is there any way to make it work...
@karloos....would you mind giving me the instructions as to how to create a symlink
And did it work in the tablet....
Thanks guys
Click to expand...
Click to collapse
Not sure on stock but if you would like send me your /system/build.prop and /system/etc/vold.fstab files and I can modify them.....basicly find where is mounts the /sdcard and /sd-ext and change them.
Like I said no idea if it will work on stock rooted roms.
The sdcard can not accept symlinks from my research. It will not allow it do to permissions on the partition.

Folder disappear.

During the weekend, and I tried to order the space in my SD card erase some duplicate files, and create folders inside PICTURES folder in the Sd. I created sub folder named Photos which obviously included all the pictures storage and from camera. I opened two screen in myWin7 pc to easily move the files. Surprised for me the sub folder PHOTOS destapar without any notice. For a while I think could be move to another folder but I revised one by one and nothing happen. I revised Recicle Folder and it's empty.
Are someone know about any app which open in invisible folder/files to rescue the info.
Sorry if this one could be OFF TOPIC
Sent from my SGH-I777 using xda premium
Can you view the missing folder on your phone's file explorer?
Jemack said:
Can you view the missing folder on your phone's file explorer?
Click to expand...
Click to collapse
No way. I checked both. PC and phone. It's curious. I know it's exist some apps to rescue recicled/erase files on PC. I don't remember the name to test both phone and pc.
Thanks for your help guy.
Sent from my SGH-I777 using xda premium
Undelete for root users and hexamob recovery, both in play store, may be what you're looking for on your phone. As far as your pc I can't help you there.
Jemack said:
Undelete for root users and hexamob recovery, both in play store, may be what you're looking for on your phone. As far as your pc I can't help you there.
Click to expand...
Click to collapse
Thanks a lot dude. I found an old recovery and save most of them photos. I will revise in my nandroid if this info is include and extract with an app which bought in the GP.
Thanks again.
Sent from my SGH-I777 using xda premium

[APP] JB ExtSD App Binder

Hi,
I would like to share with you my new app. In few words... this app let you move Android folder (which usually contains app/game data) to external SD.
ROOT and BUSYBOX required!!!!!
How does it work? It's simple. It's a binder that binds Android folder from ext to int SD, all what you have to do is:
Move Android folder from internal to external SD (automatic in the future)
Install my app
Open app
Check "Bind Android folder blablabal"
Click Save
Reboot phone
1.0 - Initial release
Cheers
QBANIN
Cool will test
Sent from my GT-N7100 using Tapatalk 2
Me too, thanks.
Tried this.
I moved the Android folder which contain all the data to my SD card and run the app, checked the box and restart my phone.
But when I run those games, it ask me to download all the data again. And even the fancy widgets can't detect the skins which downloaded earlier.
Any advice?
Sent from my GT-N7105 using xda premium
kevinlow said:
Tried this.
I moved the Android folder which contain all the data to my SD card and run the app, checked the box and restart my phone.
But when I run those games, it ask me to download all the data again. And even the fancy widgets can't detect the skins which downloaded earlier.
Any advice?
Sent from my GT-N7105 using xda premium
Click to expand...
Click to collapse
Is your device rooted and do you have busybox installed?
Yes. It is rooted and with busybox installed.
I moved the entire Android folder to external SD and run the app but with no luck.
Sent from my GT-N7105 using xda premium
kevinlow said:
Yes. It is rooted and with busybox installed.
I moved the entire Android folder to external SD and run the app but with no luck.
Sent from my GT-N7105 using xda premium
Click to expand...
Click to collapse
Did SU app ask for granting su permission to my app after tapping SAVE button?
[Comment deleted. Need to test this app more.]
QBANIN said:
Did SU app ask for granting su permission to my app after tapping SAVE button?
Click to expand...
Click to collapse
Yes. Permission granted.
Sent from my GT-N7105 using xda premium
No dice. Just creates a new android folder on the sdcard. Keep it up and let us know when you have it working.
Please, pm me output of
Code:
logcat |grep qbanin
and
Code:
mount
commands from adb terminal.
QBANIN said:
Please, pm me output of
Code:
logcat |grep qbanin
and
Code:
mount
commands from adb terminal.
Click to expand...
Click to collapse
I think I might know what the issue is. Once you move the folder into the sdcard, and the use the app to bind the folder. If you then delete the Android folder from the internal sd, all stuff gets deleted from the extSdCard as well. Once you bind the two folders, I think whatever is in one automatically is in the other one as well. I maybe speaking n00bishly here but that is what I observed.
Maybe the person for whom this is not working deleted the Android folder from the internal sdcard after he used the app. Thats why the files got removed from the extSDcard as well.
I think a working way would be to copy the data to ext sdcard first, delete from the internal, then use the app. Although from what little use I experienced was that whatever data is coming in after using the app is present in both locations. I maybe wrong though, maybe I'm using it wrongly. Please correct me if I'm using it wrongly.
if4ct0r said:
I think I might know what the issue is. Once you move the folder into the sdcard, and the use the app to bind the folder. If you then delete the Android folder from the internal sd, all stuff gets deleted from the extSdCard as well. Once you bind the two folders, I think whatever is in one automatically is in the other one as well. I maybe speaking n00bishly here but that is what I observed.
Maybe the person for whom this is not working deleted the Android folder from the internal sdcard after he used the app. Thats why the files got removed from the extSDcard as well.
I think a working way would be to copy the data to ext sdcard first, delete from the internal, then use the app. Although from what little use I experienced was that whatever data is coming in after using the app is present in both locations. I maybe wrong though, maybe I'm using it wrongly. Please correct me if I'm using it wrongly.
Click to expand...
Click to collapse
Yes. you're right I'm gonna make some of these steps automatic in the next release
QBANIN said:
Yes. you're right I'm gonna make some of these steps automatic in the next release
Click to expand...
Click to collapse
Ok. Well. It is not correct anyway.
This is how i did.
1) MOVE the ANDROID folder from internal SD to External SD by MY FILE
2) Once file moved, i never delete any folder from internal SD.
3) Run the app. Check the box, save and grant permission.
4) Reboot the phone.
And once phone starts, apps like fancy widgets, or games will require me to download the data file again. And there's one more ANDROID folder being generated in Internal SD
Rooted N7105 with busy box installed
Let me know if i miss out any steps
Thanks
Hi,
Does your app use mount-o bind ?
I so, install instruction:
1) COPY android folder to extsdcard
2) DELETE content of android folder, but then leave the empty android folder there.
3) run app
If that doesn't work, check that you have a kernel that uses init.d, if the method is the one I think.
Am I right ?
Otherwise, will try this app, DirectoryBind keeps crashing and randomly forgetting the location of my spotify cache...
francois13 said:
Hi,
Does your app use mount-o bind ?
I so, install instruction:
1) COPY android folder to extsdcard
2) DELETE content of android folder, but then leave the empty android folder there.
3) run app
If that doesn't work, check that you have a kernel that uses init.d, if the method is the one I think.
Am I right ?
Otherwise, will try this app, DirectoryBind keeps crashing and randomly forgetting the location of my spotify cache...
Click to expand...
Click to collapse
You dont need this for making Spotify use the external Sd card. Install an older Spotify apk. Start it and in loginscreen press menu button and change sd location to exSdCard. Then you can update Spotify in Market to the newest and it will use the external sd card.
Sorry for the ot
francois13 said:
Hi,
Does your app use mount-o bind ?
I so, install instruction:
1) COPY android folder to extsdcard
2) DELETE content of android folder, but then leave the empty android folder there.
3) run app
If that doesn't work, check that you have a kernel that uses init.d, if the method is the one I think.
Am I right ?
Otherwise, will try this app, DirectoryBind keeps crashing and randomly forgetting the location of my spotify cache...
Click to expand...
Click to collapse
Yes, it does use mount -o bind command, but not via init.d scipt.
Ad 2. When you tap "Save" button, my app check if Android folder exists on internal sd and creates it if necessary.
Work great with crash rom v3.1
Odoslané z GT-N7100 cez Tapatalk 2
This is the same kind of app as "Directory Bind" ?
(Also here on Xda for quite some time)
Send from my SG Note 2 International LTE
fotoingo said:
This is the same kind of app as "Directory Bind" ?
(Also here on Xda for quite some time)
Click to expand...
Click to collapse
Yes it is. But directory Bind also have the ability to choose the directories and so it is more complicated

Moving Google Access Music To SD With FolderMount??

I cannot get folder mount tovmove my Google Access music. In fact when I use it to browse my SD card, it never populates folder sizes or anything else.
I used this for the sane purpose on my Razr, with success. Has anyone got this app to work on their S4?
jeepguy_1980 said:
I cannot get folder mount tovmove my Google Access music. In fact when I use it to browse my SD card, it never populates folder sizes or anything else.
I used this for the sane purpose on my Razr, with success. Has anyone got this app to work on their S4?
Click to expand...
Click to collapse
I'm also having the same problem. Are the files stored somewhere else, because they don't appear to be in com.google.android.music.
EDIT: I think I figured it out! The location for the music is actually /data/data/com.google.android.music. Happy listening!
First kill play music app so it is not running
Then (I used solid explorer, but I am sure you could use a terminal app. adb shell, or any other app you prefer to use.
In Solid Explorer by deleting the music folder located in /data/data/com.google.android.music/files/music and then I created a symlink from /storage/extSdCard/files/music to /data/data/com.google.android.music/files which makes a music folder that points back to the external sdcard.
Last reboot your phone
It works very very well and all the music I want to cache from what I have stored in google works well.
Hope this helps you out.
Does it still let you write new music to this location?
It has for me. I have cached about 400 songs offline after doing the symlink
Sent from my SCH-I545 using Tapatalk 4 Beta
Ainvar said:
First kill play music app so it is not running
Then (I used solid explorer, but I am sure you could use a terminal app. adb shell, or any other app you prefer to use.
In Solid Explorer by deleting the music folder located in /data/data/com.google.android.music/files/music and then I created a symlink from /storage/extSdCard/files/music to /data/data/com.google.android.music/files which makes a music folder that points back to the external sdcard.
Last reboot your phone
It works very very well and all the music I want to cache from what I have stored in google works well.
Hope this helps you out.
Click to expand...
Click to collapse
symlinks are the way to go. do it with my solid state hard drive to a bigger drive, works great
This worked for me. But every time I reboot I get a "Google Music has stopped working" error. It onky does it once, right as the OS loads back up.
Ainvar said:
First kill play music app so it is not running
Then (I used solid explorer, but I am sure you could use a terminal app. adb shell, or any other app you prefer to use.
In Solid Explorer by deleting the music folder located in /data/data/com.google.android.music/files/music and then I created a symlink from /storage/extSdCard/files/music to /data/data/com.google.android.music/files which makes a music folder that points back to the external sdcard.
Last reboot your phone
It works very very well and all the music I want to cache from what I have stored in google works well.
Hope this helps you out.
Click to expand...
Click to collapse
It worked. Thank you.
Fixed the error. Now it's 100%
jeepguy_1980 said:
Fixed the error. Now it's 100%
Click to expand...
Click to collapse
How'd you fix it? Or did it just stop?
Sent from my SCH-I545 using xda app-developers app
I assume the problem was because I had converted Play Music to a use app. I just reinstalled my Rom and then recreated the symlink and it seeme to be working now.
darek65 said:
It worked. Thank you.
Click to expand...
Click to collapse
Anytime!
Ainvar said:
Anytime!
Click to expand...
Click to collapse
Is this really working or is it just duplicating your device folder on your sdcard? Since our phone's file system doesn't support symlinks, I don't understand how this is working! I've read many threads and no one can get this to work on the verizon version. Just curious!
Working for me! Symlink does work... thats what folderMount does.
Sent from my GT-N8013 using xda premium
krazykevin76 said:
Is this really working or is it just duplicating your device folder on your sdcard? Since our phone's file system doesn't support symlinks, I don't understand how this is working! I've read many threads and no one can get this to work on the verizon version. Just curious!
Click to expand...
Click to collapse
I did not symlick the folder from the phone to the sd card. I actually deleted the cache and files folder located in /data/data/com.google.android.music and then I created a symlink from the cache and files folder I created on the sdcard to the system root partition.
So look at it like this. I created shortcuts inside the system root folder from the source located on the sdcard. So when Google Music go to place content in the cache and files folder in the system root partition it is actually placing this content on the sdcard.
This has been keeping my internal storage from diminishing and is using the sdcard.
I would say why not try it out yourself and test it out. You will be able to see everything for yourself.
This is doing exactly what FoulderMount does from internal storage to sdcard, but for the system root. I actually got the idea to try this when I got an error from FolderMount stating it cant be done from within the app.
Hope this answers your questions and concerns on this.
---------- Post added at 12:57 AM ---------- Previous post was at 12:53 AM ----------
chewwy420 said:
Working for me! Symlink does work... thats what folderMount does.
I am actually using FolderMount to do this for AmazonMP3 folder, DCIM, Downloads, Wallbase, and quite a few other apps. Specially with the beta setting os excluding the duplicate folders from being scanned into the media apps. The folder I have the files and cache in I have a .nomedia file in the rot folder to keep duplicate files from showing up in the media apps.
Sent from my GT-N8013 using xda premium
Click to expand...
Click to collapse
Exactly, it is what made me try it for Google Music. I was thinking of doing this for the space time studios games but they don't hit over 50 megs each when you download the content.
i did try folder mount. And that's why I'm asking how yall two got it working. Our phone's, GS4's, does not support symlinks. Google it. There is no one else on the net with a verizon phone that has this working. Yes, there are tutorials on the net about using folder mount and various other ways, but they don't work for our verizon model. There are many many threads on the verizon gs4 forums about people asking about foldermount. When most verizon gs4 users use foldermount, it just makes a duplicate folder on the sdcard, both the device folder and the sdcard folders just mimic each other, not gaining you any space on the phone itself.
krazykevin76 said:
i did try folder mount. And that's why I'm asking how yall two got it working. Our phone's, GS4's, does not support symlinks. Google it. There is no one else on the net with a verizon phone that has this working. Yes, there are tutorials on the net about using folder mount and various other ways, but they don't work for our verizon model. There are many many threads on the verizon gs4 forums about people asking about foldermount. When most verizon gs4 users use foldermount, it just makes a duplicate folder on the sdcard, both the device folder and the sdcard folders just mimic each other, not gaining you any space on the phone itself.
Click to expand...
Click to collapse
I am guessing you did not read what I have said in this thread. I did not use foldermount for this one but I did list the ones I did use foldermount for. I did state however that I did a "symlink" for google music folders. I never stated that I used foldermount for that. But no matter what I have said in the past few posts you dont want to listen or even try it out for yourself. I am very happy to know there are so many threads stating this cant be done.
Here is some information about symbolic links as I think you should read more about it.
Also you can create a symlink on an ext4 FS which is where the link resides and its target is on a fat32 FS. I never stated that I created the target on a fat32 you assumed this.
Also googling around about this I found an actually XDA thread that talked about yet someone else who was able to do this back in Nov 2012....
More links for your reading pleasure.... link 1, link 2, and last but not least one about the space usage which seems pretty clear that it does not do double space. Depending on how the software reads it, it may think it is using that space but it really is not. Read a little more next time. Google is not a hard thing to use when searching for answers. Also it is not hard to accept something works when others in this thread and others have plainly stated that it works.
Also just a little more information just in case you aren't sure about everything you read
Screenshot of files symlink and screenshot of cache symlink
Screenshot of files folder on the SDCARD and now for the screenshot of the cache folder on the SDCARD
I removed some songs to see if the device would record different storage use on the system root folder and it did not.
All in all believe what you want and do what you want, this works for me and it has worked for others on this thread and another thread I found earlier tonight.
Now....
You must be rooted....
Force Stop Google Music
In Solid Explorer (this is what I used)
go to system root and /data/data/com.google.android.music/ and delete files and cache (cache if you want to)
go to sdcard and make a folder called Google Music (or anything you want to name it...) create a folder called files and cache in this folder.
now right click and chose properties on files and chose create a symlink and give the path of the "/data/data/com.google.android.music/files This will be the target that is created.
now right click and chose properties on cache and chose create a symlink and give the path of the "/data/data/com.google.android.music/cache This will be the target that is created.
Now you are done. This is exactly what I did and it works very very well........
I'm man enough to admit when I'm wrong. I should have dug some more on the symlinks. I got even more confused when chewy said he made symlinks, that's what folder mount does. How do you have your sd card partitioned and formatted if you don't mind answering?
Sent from my SCH-I545 using xda premium
krazykevin76 said:
I'm man enough to admit when I'm wrong. I should have dug some more on the symlinks. I got even more confused when chewy said he made symlinks, that's what folder mount does. How do you have your sd card partitioned and formatted if you don't mind answering?
Sent from my SCH-I545 using xda premium
Click to expand...
Click to collapse
Not a problem, I just wanted you to be able to see the info.
My sd card FS is fat32 formatted by winbloze 7. Now my real test will be to replicate all of this once I get my 64gb sd card which will be formatted in exFAT.
I use foldermount for everything else though. It does well from my usage so far for the base few days and I dont have to remember which folders I use symlinks on. I just know from reading either on here or on the app page that the app does not make links in the system root. So I just tried to do a symlink and it worked well. Googling tonight actually showed me someone else did it before me.
Since you are having issues can I ask what type of sdcard do you have and what fs is on it? Also what app are you using to do the symlink? is it an app or are you doing it from a terminal emulator or through adb shell?
Ainvar said:
Now....
You must be rooted....
Force Stop Google Music
In Solid Explorer (this is what I used)
go to system root and /data/data/com.google.android.music/ and delete files and cache (cache if you want to)
go to sdcard and make a folder called Google Music (or anything you want to name it...) create a folder called files and cache in this folder.
now right click and chose properties on files and chose create a symlink and give the path of the "/data/data/com.google.android.music/files This will be the target that is created.
now right click and chose properties on cache and chose create a symlink and give the path of the "/data/data/com.google.android.music/cache This will be the target that is created.
Now you are done. This is exactly what I did and it works very very well........
Click to expand...
Click to collapse
Just wanted to say thanks for this! I ended up buying Folder Mount thinking it would do it but I couldn't seem to access root folders. I didn't realize Solid Explorer could do it too and I already own it. The steps made it a snap

Categories

Resources