How do I get rid of the /storage/emulated/0/0 folder and the /storage/emulated/0 folder?
I hear people mentioning it but haven't quite found anything concrete on how to fix it.
One guy copied all of his files down one folder twice. I see that being a bad idea if apps are looking for specific paths.
First, update your recovery to its latest version. Then, make a backup of your sdcard (adb pull /sdcard/) and then delete all but the very top 0 folder.
When done correctly, you should one and only one 0 folder.
And if you don't have adb installed on your computer, do it now.
The 0 folder structure is part of the multi-user feature in 4.2.x and the older recoveries don't work well with it.
Sent from my Galaxy Nexus using Tapatalk 2
first of all i am really sorry for another 0 folder thread, but i am trying to understand the new file system in 4.2.1 and get rid of it. the main reason i care, is because i like to copy my backups to my PC using windows explorer. after flashing my first 4.2 rom, i got the 0 folder. i noticed all my old backups were in there, which is no big deal, i dont really need them. however, this is where my PC is reading from (data/media/0). i can now only access my old backups in data/media/0/clockworkmod or twrp. the new backups i make NOT in the 0 folder, so i cannot reach from my pc. i am sure there is a way to push/pull these backup folders using the toolkit, but windows explorer is just really easy.
so my question is, if i completely reformat, push a 4.2 image, and flash a 4.2 rom, getting rid of the 0 folder, will my pc will go back to reading the proper system folders like it did before (data/media/clockworkmod) so i can retrieve my new backups?
thanks!
The 0 is the proper file system. Formatting and flashing 4.2.1 is just going to put you exactly where you are.
063_XOBX said:
The 0 is the proper file system. Formatting and flashing 4.2.1 is just going to put you exactly where you are.
Click to expand...
Click to collapse
ok, so then is there a way to get twrp and cwm to make backups in data/media/0 instead of data/media so i can view them from windows explorer? or is pushing/pulling through adb my only option or is there a way to combine the data systems into 1 and have my pc read that?
thanks
Hi guys, tried looking for an answer on XDA, can't find one.
Anyways, my question is:
I have just installed a new ROM and while looking through root browser i found Storage/SDCard0, this location is a duplicate of my SDCard and if i was to delete items from sdcard0 it disappears from my main SDCard.
Has this file always been there or has something gone wrong?
I know it seems like a minor issue, but its bugging me lol
Thanks
The new aosp android versions are changing the sdcard folder layout to sdcard/0 thats normal. leave it like that unless you want to revert to a sense based rom or a nandroid backup. when you want to restore it you have to copy all content from the 0 dir to the root of the sdcard.
hope i explained this okey !
Mr Hofs said:
The new aosp android versions are changing the sdcard folder layout to sdcard/0 thats normal. leave it like that unless you want to revert to a sense based rom or a nandroid backup. when you want to restore it you have to copy all content from the 0 dir to the root of the sdcard.
hope i explained this okey !
Click to expand...
Click to collapse
Sorry i forgot to mention that i have not been on an aosp rom, i have always been on sense!
Thats why im so puzzled lol
Also, i have tried copying stuff over, but it just makes a duplicate in the sdcard e.g pictures - copy of
and when i delete from the folder location storage/sdcard0 it deletes from my main sdcard also, so in a nutshell, i have never been on aosp roms yet i have this sdcard0 issue
ah like that, well i can inform you that i had this on the viper x 3.3.7 rom too....i solved it like this :
i made a nandroid backup, back-upped the sdcard content, formatted the sdcard. copied the nandroid backup back to the sdcard and restored it .... not seen the problem anymore !
I think it is normal... Having storage/sdcard0 is totally different compared to /sdcard/0/
When I connect my sdcard to pc and examine, the size matches, it is not doubled and when /storage/sdcard0 os deleted also normal sdcard gets deleted.
So I think it's just a mirror of some sort.
Sent from my One X using xda premium
Thanks for your replies guys.
I think it is just a mirror of the main sdcard, what caused it i don't know!
I shall try and live with it for the time being.... Until it annoys me furthermore lol
Cheers!
One more thing we need to know... Simple yes or no will do.
Do you have a directory called /sdcard/0?
Do you have a directory called /storage/sdcard0?
Sent from my One X using xda premium
The directory is storage/sdcard0, it also seems like my system is using this as the "main" storage and duplicating to sdcard.
Nothing I do seems to be resolving the issue....
EDIT: Really stuck now, tried superwipe script, adb shell etc and its still there, its not really a big problem, but if im transfering data to my phone its transfering to storage/sdcard0 by default and not sdcard.
The file location is in with the core android files and even if i try and delete the file it still remains there,,,, HELP!!
megarekd said:
The directory is storage/sdcard0, it also seems like my system is using this as the "main" storage and duplicating to sdcard.
Nothing I do seems to be resolving the issue....
EDIT: Really stuck now, tried superwipe script, adb shell etc and its still there, its not really a big problem, but if im transfering data to my phone its transfering to storage/sdcard0 by default and not sdcard.
The file location is in with the core android files and even if i try and delete the file it still remains there,,,, HELP!!
Click to expand...
Click to collapse
Issue resolved, i downloaded a nandroid from 2.17 flashed and booted, checked and storage/sdcard0 had disapeared.
Flash beck to 3.18 rom and it is still gone!!
Thanks for the help guys :good:
Good ! :thumbup:
CASE CLOSED !
The /storage/sdcard0 issue has arrisen!
I'm not sure if this is a Jelly Bean "thing" though as if i do a nandroid back to 2.17 storage/sdcard0 is not there....
Yet, when i flash a custom rom it re-appears, would somebody be able to check id the folder is in their HOX also please?
I locate it using root browser, not sure if it shows with other file mangers, but i will check
Thanks
Mine is just normal......look no sdcard0 folder
Sorry, the location of the /storage/sdcard0 folder is located out of the sdcard folder, its within the sys, system, root, etc folders
i have also noticed that sdcard0 i have no rights over e.g. permisions are - - - r w x r - x
I'm really puzzled lol
Wish i could take a screenshot, but i disabled the option when installing my current rom
I switched to CM file manager from root explorer recently and the /sdcard/ folder is nowhere to be seen. There's only /storage/sdcard0/ which is also the default startup directory.
So it could be root explorer that mirrors the sdcard...
Sent from my One X using xda premium
I now it falls into place here.......hadn't much sleep last night
Its probably a mirror like TT says .... maybe to speed things up for the system to acces files ?
I have two screenshots here, first one is from root explorer, as you can see, i have no rights over the storage/sdcard0 folder (but i think thats due to the fact i have full rights over the "main" sdcard.
The second shot is taken from within ES file explorer options as an example to where my files are going....
I do think that you are correct in saying that its just a mirror, especially after seeing TT's screenshot. I was just a bit worried that something had gone wrong somewhere with me having the scdard0 folder.
Again, thanks alot guys!! :good:
Hey there I noticed the same thing for CM10.1, and the folders can be seen in CM File Manager by enabling "Show symlinks".
So yes it is some sort of a mirror, but more like a method to redirect apps to the actual sdcard folder since not all of them are updated to reach for sdcard0 (or something like that). You may check here for more information on symlinks.
Cheers!
There are symlinks to the sdcard everywhere and they are normal.
Here are some examples
/sdcard
/storage/sdcard
/storage/emulated/0
/storage/emulated/legacy
/mnt/sdcard
/mnt/shell/emulated
These are all directories that link to the sdcard on the ROM i use.
This is nothing to worry about as the actual data is not duplicated.
Think of them as shortcuts to the sdcard folder which is actually stored somewhere like /dev/block/mmc0blk0p12
Sent from my HTC One X using xda app-developers app
Thanks for the info guys, muchly appreciated.
My question now is:
On stock 2.17 there is no storage/sdcard0, yet on stock 3.18 there is... Do we know the reasoning behind this?
Does it give better fetching time for apps, is it something to do with 'project butter'?
Thanks
Sent from my HTC One X using xda app-developers app
Its because of enabling USB host mode (otg) in jellybean and the connection of other devices requiring identification. If you attach a USB hub, a hard drive and a flash drive you will end up with new entries in storage as well as sdcard0
Such as
/storage/usbdisk0
/storage/usbdisk1
Some cheaper devices that have both onboard storage and a microsd will enter as /storage/sdcard0 and /sdcard1
The 0 is just the first address in Linux
The entire 32gb nand on the one x is /dev/block/mmcblk0
It's just numbering so there is the possibility for new storage to be allocated
Sent from my HTC One X using xda app-developers app
I really want to install this Rom on my s3 was wondering if I download zip file on my phone can I just install it with mobile Odin or cwm install from zip?
Liquid smooth zip is flashable from recovery
Sent from my SPH-L710 using xda app-developers app
daniel82tx said:
I really want to install this Rom on my s3 was wondering if I download zip file on my phone can I just install it with mobile Odin or cwm install from zip?
Click to expand...
Click to collapse
While the poster above me provided that answer already. Just by the nature of your question I believe you should stop and wait. Do some more reading and then do more reading. Learn as much as you can. Know what your doing, why your doing it and understand it. You sound u sure and unexperienced. Please Mt advise to you is read the complete thread for that route.. Make sure your reading the Sprint Forums and know all there is to know before attempting anything.
Sent from the future via Tapatalk 4
Ok easy enough to flash from recovery. Another question is will I lose all my photos stored on internal SD card?
edfunkycold said:
While the poster above me provided that answer already. Just by the nature of your question I believe you should stop and wait. Do some more reading and then do more reading. Learn as much as you can. Know what your doing, why your doing it and understand it. You sound u sure and unexperienced. Please Mt advise to you is read the complete thread for that route.. Make sure your reading the Sprint Forums and know all there is to know before attempting anything.
Sent from the future via Tapatalk 4
Click to expand...
Click to collapse
good solid advice. there is alot that can go wrong, ( I speak from experience) but it's pretty easy to get it right with all the correct info before starting
daniel82tx said:
Ok easy enough to flash from recovery. Another question is will I lose all my photos stored on internal SD card?
Click to expand...
Click to collapse
If you're going to AOSP from a Touchwiz ROM, you'll need to create a 0 folder in the root of your internal storage and move all of your files into it. AOSP 4.2+ treats the 0 folder as your root directory and will not see anything outside of it.
Ascertion said:
If you're going to AOSP from a Touchwiz ROM, you'll need to create a 0 folder in the root of your internal storage and move all of your files into it. AOSP 4.2+ treats the 0 folder as your root directory and will not see anything outside of it.
Click to expand...
Click to collapse
Incorrect you do not need to create anything it does it on its own when going from 4.1 to 4.2 it will move everything to the new O folder it creates.
Sent from the future via Tapatalk 4
edfunkycold said:
Incorrect you do not need to create anything it does it on its own when going from 4.1 to 4.2 it will move everything to the new O folder it creates.
Sent from the future via Tapatalk 4
Click to expand...
Click to collapse
There's been countless times where I've had to manually move all of my files, otherwise my internal storage is empty. For example, when I jump from ROM to ROM, I use ROM Toolbox Pro to backup/restore my apps. If I fail to move my files to a /0 folder prior to flashing an AOSP rom, ROM Toolbox Pro will not find any of my backups. And it's because none of my files move themselves to the /0 folder. And I'm on TWRP 2.5.0.0.
Ascertion said:
There's been countless times where I've had to manually move all of my files, otherwise my internal storage is empty. For example, when I jump from ROM to ROM, I use ROM Toolbox Pro to backup/restore my apps. If I fail to move my files to a /0 folder prior to flashing an AOSP rom, ROM Toolbox Pro will not find any of my backups. And it's because none of my files move themselves to the /0 folder. And I'm on TWRP 2.5.0.0.
Click to expand...
Click to collapse
That's an issue with rom toolbox. Not recognizing where things are located when you flash 4.2 over 4.1. The rom flash will create the O folder and move everything. How would a third party app know where to find it?
Also every time you go back to 4.1 and return to 4.2 it creates a folder again there have been individuals with 10 or more O folders.
Sent from the future via Tapatalk 4
edfunkycold said:
That's an issue with rom toolbox. Not recognizing where things are located when you flash 4.2 over 4.1. The rom flash will create the O folder and move everything. How would a third party app know where to find it?
Also every time you go back to 4.1 and return to 4.2 it creates a folder again there have been individuals with 10 or more O folders.
Sent from the future via Tapatalk 4
Click to expand...
Click to collapse
A Third Party Application will always search for the file it created because it created it. If the 0 folder directory is treated as the root, then it will still search for /App Manager. But I was just using ROM Toolbox Pro as an example. I've had flawless transitions from going to ROM to ROM by moving my files into a newly created 0 folder everytime I go from Touchwiz to AOSP and when I go back, I simply move everything back from 0 folder to root internal and delete the 0 folder. It's a bit tedious - but I'm used to it now.
So with all of this jumping back and forth between AOSP and Stock based ROMs I find that my SD Card is filling up quickly. I know this is due to duplication in 0 folder. Can anyone provide me with a list of files/folders that are essential to keeping my phone running smoothly both in and/or outside of the 0 folder. I would like to start removing files and clean up some storage. I don't keep music on my or many pictures, but those are easy to clean out because of auto backups to online storage.
Androidawg said:
So with all of this jumping back and forth between AOSP and Stock based ROMs I find that my SD Card is filling up quickly. I know this is due to duplication in 0 folder. Can anyone provide me with a list of files/folders that are essential to keeping my phone running smoothly both in and/or outside of the 0 folder. I would like to start removing files and clean up some storage. I don't keep music on my or many pictures, but those are easy to clean out because of auto backups to online storage.
Click to expand...
Click to collapse
a lot of the time its the log file. you can delete them out of the 0 and the root folders.
I'm on stock right now, heres my folder list. Android, data, DCIM, smvvm, TWRP.
Then my personal !tools! folder and the download folder.
21.5gb free out of 25gb
edit: if you have other apps installed they may be making other folders too. backup before you start deleting stuff!!
octhrope said:
a lot of the time its the log file. you can delete them out of the 0 and the root folders.
I'm on stock right now, heres my folder list. Android, data, DCIM, smvvm, TWRP.
Then my personal !tools! folder and the download folder.
21.5gb free out of 25gb
edit: if you have other apps installed they may be making other folders too. backup before you start deleting stuff!!
Click to expand...
Click to collapse
where's the log file?
Androidawg said:
where's the log file?
Click to expand...
Click to collapse
should just be in the root of the sd card and the root of the 0 folder. may be in the data folder. windirstat is a great tool to find shiz. I always delete it from the computer. it shows up like a notepad file.