sdcard 0 in AOSP ROMs - LG Optimus G (International)

I have the Bell Canadian Optimus G and I like to switch between stock and AOSP ROMs sometimes. The problem is that, unlike my old phone, whenever I go back to a stock ROM after an AOSP one all of the data on my internal memory is moved to a folder labeled "0" in the internal sdcard. It screws up my backups from my stock ROM because all of the apps expect the data to be in the root of the internal memory. Is there a way to prevent the AOSP ROMs from moving the files to the 0 folder or a better way to deal with it?
I appreciate all help!! Thanks in advance,

royoshukrun said:
I have the Bell Canadian Optimus G and I like to switch between stock and AOSP ROMs sometimes. The problem is that, unlike my old phone, whenever I go back to a stock ROM after an AOSP one all of the data on my internal memory is moved to a folder labeled "0" in the internal sdcard. It screws up my backups from my stock ROM because all of the apps expect the data to be in the root of the internal memory. Is there a way to prevent the AOSP ROMs from moving the files to the 0 folder or a better way to deal with it?
I appreciate all help!! Thanks in advance,
Click to expand...
Click to collapse
i downloaded root explorer just see if it viewed the folder with the 0 and it does not. it views it as sdcard. strange.

any info on the reason for having the sdcard0, sdcard1 and emulated folders would be appreciated.

gentledroid17 said:
i downloaded root explorer just see if it viewed the folder with the 0 and it does not. it views it as sdcard. strange.
Click to expand...
Click to collapse
That IS strange. And yeah, it keeps the second sdcard there, too, which is always empty and so useless. I'm afraid to delete it though.
Maybe it's because the ROMs are based on the Nexus ROMs and the Nexus is formatted that way? (I don't actually know if the nexus is formatted that way, this is just a guess).

That's how android does the things for 4.2+.

chadouming said:
That's how android does the things for 4.2+.
Click to expand...
Click to collapse
Oh it's a google thing. Thanks for the clarification!!

Related

[Q] From 4.2.1 back to 4.1.2.

Hey,
I went back to 4.1.2 (JellyBam) after using 4.2.1 (PA ROM). But there's a 0 folder inside my internal memory folder which leads to all my real files (music, pics etc etc).
So it's like.
-sdcard0
.....-0 (Folder)
..........-DCIM
..........-Downloads
..........-Music
..........-Titanium Backup
..........-etc etc etc
.....+'Music' which is empty
.....+'Downloads' which is empty
.....+etc etc etc
I searched on XDA, but the only solutions I found were:
1. copy every file to my computer, delete the 0 file (or not) and then put the copied files from my computer onto my phone. But there was no progress in the copying process as it was freezing.
2. Format everything, recovery, and some other things I didn't understand.
So I came here asking for help. Hopefully someone knows any other answer.
P.S. I know I can just chance the location of my backed-up files from TB, so there's no problem in that case.
But it is just annoying and sometimes it confuses me.
Thanks in advance :good:
I'm thinking of the same I'm not digging 4.2.1 that much.
Sent from my Galaxy Nexus using xda premium
I believe in 4.2 the /0 folder is the new location for the pseudo SD card instead of under /storage/
That's 4.2+ file structure to support multiuser and mentioned in dozens of threads. Just learn to live with it. Google knows what they're doing.
Meh well that's gonna be 4.2.1 for me...this is way too annoying with the files and folders
Rapydax said:
Meh well that's gonna be 4.2.1 for me...this is way too annoying with the files and folders
Click to expand...
Click to collapse
how is it annoying? you dont see really anything different other than going 1 more folder deeper.
Zepius said:
how is it annoying? you dont see really anything different other than going 1 more folder deeper.
Click to expand...
Click to collapse
Because change is bad obviously. Especially when it adds features.
Zepius said:
how is it annoying? you dont see really anything different other than going 1 more folder deeper.
Click to expand...
Click to collapse
I went back to CM10 (4.1.2) from CM10.1 (4.2.1) and just found it easiest to backup all my files and format the storage. Windows wasnt seeing the storage correctly until after I did that.
brooksyx said:
I went back to CM10 (4.1.2) from CM10.1 (4.2.1) and just found it easiest to backup all my files and format the storage. Windows wasnt seeing the storage correctly until after I did that.
Click to expand...
Click to collapse
How'd you do this? I'm curious to try the cm10.
Sent from my Galaxy Nexus using xda premium
What recovery are you using?
The issue is with resets and CWM recovery. The problem is your app back ups get covered under 0,0,0 and can't be restored, music apps can't see music, gallery can't see pics etc.
Switch to TWRP Open Recovery and the 0 problem goes away.
Best way to get your SD back in line is to use your PC to move everything back up where it should be. Hope this helps, freaked me out when I thought I lost my SD.
Sent from my Galaxy Nexus using Tapatalk 2
I think some of you aren't understanding the OP's question. He doesn't dislike the /0 file structure (or maybe he does, but I don't think that's the point he's making), he just doesn't want to keep it when downgrading to 4.1.2. That's perfectly understandable to me, and actually something I've been thinking about for a couple weeks.
OP- You have a few options. I think the simplest is to go ahead and flash a 4.1.2 ROM, then use a file explorer on the phone to cut from the /0 directory and paste straight into the main sdcard directory. Option 2 is to use a PC and cut and paste the same thing, but I don't know how quick it would be. Another possibility is to copy everything off your phone onto your PC, then format the storage on your phone, then copy everything from the PC back to /sdcard/. This is probably the cleanest and safest option, but also slowest. I'm sure there is also a way to do it with ADB, where you cut and paste from /0 to /sdcard/, but I'm no good with ADB so somebody else would have to give you the commands. ADB is most likely going to be the fastest method as far as file copy progress, but that's only a guess. I'm sure there are several other options I'm not aware of, but those are the ones I've thought of while thinking of doing this on my phone.
Good luck! Let me know which works for you and how it works........
I went back to a 4.1 ROM at one point and it did not immediately move everything back where it could be seen even with the latest recovery. I found that the easiest fix was to plug the phone into my computer right after the first boot and then move the data to the right folders with adb. Very quick and painless. TWRP does the fix going from 4.1 to 4.2 very nicely.
Downgrading to 4.1.2 from 4.2.1
I'm downgrading because I'm have a ton of blue tooth issues. I'm currently backing up my SD to my laptop then from win explorer I'll copy everything from /0 to the top SD directory. It's not any fun at all.
I wonder how many people will actually use the multiple users on their phone/tablet?
\m/
:cyclops:
Tablet - maybe
Phone - probably not
Sent from my Galaxy Nexus

[Q] SD card seemed to double, cannot erase portion of it

I have been having a bit of a problem with my Galaxy Nexus and its driving me nuts because of the storage situation..
Up until a couple weeks ago, I had the latest (at that time) version of AOKP on the phone (4.1.?, JB build 2 possibly). Then, around the first of the year, they updated to their 4.2 version JB-MR1 Build 1. The first time I installed the ROM, I installed it with the wrong GAPPS, ICS vs JB, and the phone went all haywire. I tried to get into the SD card to check which GAPPS was installed, but there were SO many force closes, I couldn't do anything. I rebooted into recovery, tried to go to my SD card, but ALL my info was gone. Basically a clean SD card.
So, I within minutes, I restored back to what I was on and everything was happy. No problems. I then downloaded the right GAPPS, installed the new ROM and GAPPS and everything worked great. Happy happy joy joy..
Today, I went to do a restore and remove some old backups and again, there is a second SD card. There is the normal one, and one labeled under /0/ in the directory.
I can access that directory while in recovery, but cannot with root explorer (or via my computers explorer) to erase it. The problem is, I think it is doubled up my photos and media, and now the card is full..
So, long story just to ask, how can I get rid of this other SD card directory? When talking with a co-worker, he mentioned it creates another directory when a second profile gets created..something I never did.
Any thoughts on how to get this removed so I can have my space back?
MikeDaub said:
I have been having a bit of a problem with my Galaxy Nexus and its driving me nuts because of the storage situation..
Up until a couple weeks ago, I had the latest (at that time) version of AOKP on the phone (4.1.?, JB build 2 possibly). Then, around the first of the year, they updated to their 4.2 version JB-MR1 Build 1. The first time I installed the ROM, I installed it with the wrong GAPPS, ICS vs JB, and the phone went all haywire. I tried to get into the SD card to check which GAPPS was installed, but there were SO many force closes, I couldn't do anything. I rebooted into recovery, tried to go to my SD card, but ALL my info was gone. Basically a clean SD card.
So, I within minutes, I restored back to what I was on and everything was happy. No problems. I then downloaded the right GAPPS, installed the new ROM and GAPPS and everything worked great. Happy happy joy joy..
Today, I went to do a restore and remove some old backups and again, there is a second SD card. There is the normal one, and one labeled under /0/ in the directory.
I can access that directory while in recovery, but cannot with root explorer (or via my computers explorer) to erase it. The problem is, I think it is doubled up my photos and media, and now the card is full..
So, long story just to ask, how can I get rid of this other SD card directory? When talking with a co-worker, he mentioned it creates another directory when a second profile gets created..something I never did.
Any thoughts on how to get this removed so I can have my space back?
Click to expand...
Click to collapse
Android 4.2 has a multiuser framework.
The "0" folder you are seeing is the first user.
Although it's only possible to create more users on tablets without tweaks
Sent from my ASUS Transformer Pad TF300T using Tapatalk HD
Lord Yurij said:
Android 4.2 has a multiuser framework.
The "0" folder you are seeing is the first user.
Although it's only possible to create more users on tablets without tweaks
Sent from my ASUS Transformer Pad TF300T using Tapatalk HD
Click to expand...
Click to collapse
Am I crazy saying that it could be taking up a couple gbs of space on my card? It seems that since this started up, my SD is almost full.
Any idea how to merge, or remove that? I can only access the 0 folder while in recovery, and no other time.
They put in symlinks to the folder so you can access it from different directories. The information shouldn't be doubled unless you personally did it.
Reading this might help you understand:
http://forum.xda-developers.com/showthread.php?t=2107194
Lord Yurij said:
Android 4.2 has a multiuser framework.
The "0" folder you are seeing is the first user.
Although it's only possible to create more users on tablets without tweaks
Sent from my ASUS Transformer Pad TF300T using Tapatalk HD
Click to expand...
Click to collapse
eqjunkie829 said:
They put in symlinks to the folder so you can access it from different directories. The information shouldn't be doubled unless you personally did it.
Click to expand...
Click to collapse
Thanks for the everything and helping me understand...
I did not copy over anything to that directory, and in fact cannot even access it outside of Recovery. It just looked to me that things were copied over by the file structure, which is why I thought it duplicated things. It just seemed odd to me that when all this happened, my SD card seemed to get much fuller..
Thanks again..
MikeDaub said:
Thanks for the everything and helping me understand...
I did not copy over anything to that directory, and in fact cannot even access it outside of Recovery. It just looked to me that things were copied over by the file structure, which is why I thought it duplicated things. It just seemed odd to me that when all this happened, my SD card seemed to get much fuller..
Thanks again..
Click to expand...
Click to collapse
Late but useful info for "the next guy". When you install 4.2 its creates a multi-user environment, correct. And you do loose half your space (assuming it was full when you upgraded). Here's why. In 4.2 there is only /data/media which is where your internal SD card (sdcard) is symlinked to (ie: the actual location of your files). When you install 4.2, all of /data/media is copied to /data/media/0 for the first user, then /data/media/11 for the second user, then /data/media/12 for the third user and so forth. Each user gets their own /data/media directory which has all the files that the single user had in 4.1 For each user you add, say its only yourself, you just lost half your space because /data/media still exists but now so does /data/media/0 (a duplicate copy). So you sdcard's space is divided by the number of user accounts your system has installed in 4.2. Hope this clarifies things.
elfaure said:
Late but useful info for "the next guy". When you install 4.2 its creates a multi-user environment, correct. And you do loose half your space (assuming it was full when you upgraded). Here's why. In 4.2 there is only /data/media which is where your internal SD card (sdcard) is symlinked to (ie: the actual location of your files). When you install 4.2, all of /data/media is copied to /data/media/0 for the first user, then /data/media/11 for the second user, then /data/media/12 for the third user and so forth. Each user gets their own /data/media directory which has all the files that the single user had in 4.1 For each user you add, say its only yourself, you just lost half your space because /data/media still exists but now so does /data/media/0 (a duplicate copy). So you sdcard's space is divided by the number of user accounts your system has installed in 4.2. Hope this clarifies things.
Click to expand...
Click to collapse
Thanks. After a bunch of research, that is what is happening, and why my phone is always full of "stuff" now.
Now, if I could only access the /0 folders from my desktop...then I would be set..
MikeDaub said:
Thanks. After a bunch of research, that is what is happening, and why my phone is always full of "stuff" now.
Now, if I could only access the /0 folders from my desktop...then I would be set..
Click to expand...
Click to collapse
you do. its what you see when you plug your phone in.
if you have a old recovery and are flashing roms, it will create multiple /0 folders.
Zepius said:
you do. its what you see when you plug your phone in.
if you have a old recovery and are flashing roms, it will create multiple /0 folders.
Click to expand...
Click to collapse
If that is the case, I would like to access the standard folder, the copy, or original, or whatever the none /0 folder is..
MikeDaub said:
If that is the case, I would like to access the standard folder, the copy, or original, or whatever the none /0 folder is..
Click to expand...
Click to collapse
then you need root to explore /data/media/
Zepius said:
then you need root to explore /data/media/
Click to expand...
Click to collapse
Right. I would just find it handy to do via my desktop...
MikeDaub said:
If that is the case, I would like to access the standard folder, the copy, or original, or whatever the none /0 folder is..
Click to expand...
Click to collapse
"/data/media/" and "/storage/sdcard0/" or even just "/sdcard/" are the same thing. You dont have copies of files on your phone. If you delete it in one location, it deletes in the other because they are the same. You have the "0" folders on "storage/sdcard0" as well. If you do happen to have copies of files, you can organize it all on your computer if you plug in your phone.
MikeDaub said:
Thanks. After a bunch of research, that is what is happening, and why my phone is always full of "stuff" now.
Now, if I could only access the /0 folders from my desktop...then I would be set..
Click to expand...
Click to collapse
Please thank me by hitting the "thanks" button

Help with SDcard0/emulated/etc...

I know this has been asked numerous times in alot of different threads but I was hoping by starting this someone would be kind enough to elaborate and explain exactly what is needed and what is not. I know I should have plenty of storage on my phone but it seems I dont. I have 2.23 GB left and I know I should have more. If anyone is willing to explain more in detail it would be greatly appreciated.
Edit: I am currently using Rootbox and it has been the only rom I've used since rooting my phone.
treezy26 said:
I know this has been asked numerous times in alot of different threads but I was hoping by starting this someone would be kind enough to elaborate and explain exactly what is needed and what is not. I know I should have plenty of storage on my phone but it seems I dont. I have 2.23 GB left and I know I should have more. If anyone is willing to explain more in detail it would be greatly appreciated.
Edit: I am currently using Rootbox and it has been the only rom I've used since rooting my phone.
Click to expand...
Click to collapse
Bump. I'm having a bunch of issues with this. I went from stock rooted to AOKP, and now TWRP won't recognize my backup so that I can go back to stock. It's really annoying. I'm not having any luck with any partition I copy the backup to. Does anyone know of a way to restore stock factory partitioning? Even doing an LGNPST of ZV9 and then taking the OTA doesn't fix the partitioning. I've tried everything I can think of and I'm out of ideas.
Use a root file browser your stock storage is in mnt/shell/emulated so once your in that Ares look for your twrp folder copy the backups inside it then paste then into the twrp in sdcard0 ..... to sum up you haven't lost anything these cm/aosp ROMs create a new storage (sdcard0) so just take anything you normal store in your stock storage which is now mnt/shell/emulated and place it in sdcard0 or redirect apps looking for files to look in those places
I'm not sure about deleting those files in the stock storage though unless you have no intention in returning to stock cause if you delete them then return to stock they will be missing and vice versa
Sent from my Optimus G using xda premium
spleef said:
Use a root file browser your stock storage is in mnt/shell/emulated so once your in that Ares look for your twrp folder copy the backups inside it then paste then into the twrp in sdcard0 ..... to sum up you haven't lost anything these cm/aosp ROMs create a new storage (sdcard0) so just take anything you normal store in your stock storage which is now mnt/shell/emulated and place it in sdcard0 or redirect apps looking for files to look in those places
I'm not sure about deleting those files in the stock storage though unless you have no intention in returning to stock cause if you delete them then return to stock they will be missing and vice versa
Sent from my Optimus G using xda premium
Click to expand...
Click to collapse
That's what I did, and TWRP refuses to recognize my backup. Time to LGNPST.
Sent from my Optimus G using xda premium
treezy26 said:
I know this has been asked numerous times in alot of different threads but I was hoping by starting this someone would be kind enough to elaborate and explain exactly what is needed and what is not. I know I should have plenty of storage on my phone but it seems I dont. I have 2.23 GB left and I know I should have more. If anyone is willing to explain more in detail it would be greatly appreciated.
Edit: I am currently using Rootbox and it has been the only rom I've used since rooting my phone.
Click to expand...
Click to collapse
You likely still have the old "sd card" from a previous stock install. Use a root file explorer, like ES File Explorer, and navigate back to the root directory. You will likely have a directory called "mnt". Navigate to that folder and open the "sdcard" folder. You'll find whatever you used to have on your sd card from previous installs. I would save whatever you want to your new sd card directory and delete the entire mnt/sdcard directory. It might not allow everything to be deleted, but it should fee up that space you're missing.
*Note: The old files could be under mnt/emulated or some such directory, I dont remember. Just look around that folder to find those old files.
Hope that helps!
I'm having the same issue with this folder. I see that it is mirrored because i added a file in the sdcard0 folder it showed up in the sdcard folder. But i also found the same folders in the mnt folder. So are they all mirrored files or are they actually taking up space? Is there a way to format the space? Will the rom still boot up? Also, had that 0 folder on my sdcard, but am not able to delete it just rename the folder.
I'm running nexOGen 1.6 if it makes a difference. Hope someone can help.
thanks!

0 (zero) folder on internal storage

I've noticed the other day looking thru root explorer that there was a 0 folder there. I pressed it and saw that it kept going about 8 folders in 0>0>0> etc . I also noticed that its the bulk of my internal space. I figure every time I flash a ROM, it creates a 0 folder with more data. My question is : if I delete this folder, does any one know what would happen. I ask because I know touchwiz Roms are big but the new m.o.a.r 6.0 was giving my internal storage issues at times. Was just curious. Thanks for the help/advice in advance.
Sent from my SPH-L710 using Tapatalk 2
duce415 said:
I've noticed the other day looking thru root explorer that there was a 0 folder there. I pressed it and saw that it kept going about 8 folders in 0>0>0> etc . I also noticed that its the bulk of my internal space. I figure every time I flash a ROM, it creates a 0 folder with more data. My question is : if I delete this folder, does any one know what would happen. I ask because I know touchwiz Roms are big but the new m.o.a.r 6.0 was giving my internal storage issues at times. Was just curious. Thanks for the help/advice in advance.
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
make a nandroid then try it. worse case scenario you have to reflash. you could always boot to twrp do a complete wipe or internal. or even a full wipe of device and reinstall rom. free up some space.
You might want to go through all those 0 folders and copy the contents to your pc. Every time you flashed a 4.2 or higher rom all of your stuff was put into those folders. You don't want to lose anything important. After you make sure everything important is out of there, then you can delete them.
metalfan78 said:
You might want to go through all those 0 folders and copy the contents to your pc. Every time you flashed a 4.2 or higher rom all of your stuff was put into those folders. You don't want to lose anything important. After you make sure everything important is out of there, then you can delete them.
Click to expand...
Click to collapse
Thank you. I'll do that and give it a try.
Sent from my SPH-L710 using Tapatalk 2

program file " O "

Does anyone know what this file is? It's eating up almost 5 gigs. Can I delete?
Wc_dad said:
Does anyone know what this file is? It's eating up almost 5 gigs. Can I delete?
Click to expand...
Click to collapse
Are you talking about storage folder 0?
joeyhdownsouth said:
Are you talking about storage folder 0?
Click to expand...
Click to collapse
Yes I'm thinking so. It's burning dam near 5 gb of my internal
Wc_dad said:
Yes I'm thinking so. It's burning dam near 5 gb of my internal
Click to expand...
Click to collapse
Which ROM you running, all 4.2 and above ROMs have this folder for Google's new multiuser feature. Its usually the same as as your SD0 folder. If you erase it 4.2 ROMs wont run. I keep it so I can easily go back to any ROM, including TW ROMs. How much storage is your SD0 folder using?
EDIT: I made a mistake, SD0 is your internal storage, emulated folder is for multiuser support. SD1 is your external SD card.
I'm using moar rom.
Sdi folder I don't see can u please help
Wc_dad said:
I'm using moar rom.
Sdi folder I don't see can u please help
Click to expand...
Click to collapse
If your using MOAR, and have NEVER flashed a 4.2 or above ROM, then you shouldn't have an emulated folder. I just checked my internal, Im up to 3.13GB. It could be because of certain apps, pictures on internal, music stored on internal, or numerous other things. Touchwiz based ROMs can take up more room on internal. MOAR also has the Aroma installer which takes more room because all the features are stored whether you use them or not.
joeyhdownsouth said:
If your using MOAR, and have NEVER flashed a 4.2 or above ROM, then you shouldn't have an emulated folder. I just checked my internal, Im up to 3.13GB. It could be because of certain apps, pictures on internal, music stored on internal, or numerous other things. Touchwiz based ROMs can take up more room on internal. MOAR also has the Aroma installer which takes more room because all the features are stored whether you use them or not.
Click to expand...
Click to collapse
Ok thanks for your help.
Wc_dad said:
Ok thanks for your help.
Click to expand...
Click to collapse
I think your answer is the fact that it's a TW ROM#1, #2 Aroma installer stores all features like kernals, themes, and so forth, so you can change them at any time. I'm running an Android 4.3 Cyanogen based ROM which has none of this. 5GBs ain't too bad.

Categories

Resources