[Q] Folder Structure Problem.. - Galaxy Note II Q&A, Help & Troubleshooting

Hi,
I've been flashing some Custom Roms which have the multi-user feature found in the nexus 7.
And whenever i flash these roms, it creates a new folder called "0" containing many different folders.
I have about 6 or 7 of these folders now and my folder structure is messed up.
Is there a way i can fix all this?
Thanks in advance.

This happens on 4.2 ROMs. Not sure on the specifics but apparently its the way the new file system works.
It transfers all the files normally under SD to a folder called SD/0 as you found.
What I've been doing is just cutting and pasting all the folders inside the folder 0 back onto the root of the SD card lol.
Not sure if there is a better method
Sent from my GT-N7100 using xda premium

Related

Emulated Directory

Hi, after flashing PA based on 4.2 there was a directory added to my phone called Emulated. Inside of it is a folder called legacy. It looks like it's just a copy of my default directory. Anyway, is taking up a lot of space and I was wondering if it is safe to delete this entire directory. Any advice?
Sent from my GT-N7100 using Tapatalk 2

File move error or bug?

I installed Slim rom and it moved all of my previous sdcard files to a different location. I tried to use ES File Explorer to move all the data (2.85gb) to the new sdcard location. Once the process completed there's a message saying low storage space when I should have 3.25gb avail.
*
I checked the location where it was supposed to move the previous sdcard files to the new location and instead it created many duplicates of the current roms sdcard location (inception style) and repeated until there was no space left.
*
I found the previous sdcard location under mnt/shell/emulated/. I selected to move the emulated folder. I don't know if this "emulated" is some sort of special android folder that I'm not supposed to mess with or not and maybe that caused this issue.
*
But then, when I went to the folder where the previous files were located and browsed it, all of the files are listed as having a file size of 0.00 and clicking on properties for any folder shows 0 folder size. So I can see the files there but its as if they have been overwritten or made inaccessible. So I'm a bit pissed at this point because I can't find where the files were moved to and the old files seem to have no file size. Yet, after deleting the repeated copied info it only freed up the 3.25gb of space. So it's as if my old files are still taking up space somewhere but I can't get to them or open them.
*
Next, I decided to move those old files again and this time I placed them on my extsdcard. When I moved the files again they were completely viewable and accessible, from the extsdcard, even though they can't be accessed at my old location. I also used multiple root browsers and none could access the old files at the old location.
*
Any ideas what could have gone wrong?
AngelsNecropolis said:
I installed Slim rom and it moved all of my previous sdcard files to a different location. I tried to use ES File Explorer to move all the data (2.85gb) to the new sdcard location. Once the process completed there's a message saying low storage space when I should have 3.25gb avail.
*
I checked the location where it was supposed to move the previous sdcard files to the new location and instead it created many duplicates of the current roms sdcard location (inception style) and repeated until there was no space left.
*
I found the previous sdcard location under mnt/shell/emulated/. I selected to move the emulated folder. I don't know if this "emulated" is some sort of special android folder that I'm not supposed to mess with or not and maybe that caused this issue.
*
But then, when I went to the folder where the previous files were located and browsed it, all of the files are listed as having a file size of 0.00 and clicking on properties for any folder shows 0 folder size. So I can see the files there but its as if they have been overwritten or made inaccessible. So I'm a bit pissed at this point because I can't find where the files were moved to and the old files seem to have no file size. Yet, after deleting the repeated copied info it only freed up the 3.25gb of space. So it's as if my old files are still taking up space somewhere but I can't get to them or open them.
*
Next, I decided to move those old files again and this time I placed them on my extsdcard. When I moved the files again they were completely viewable and accessible, from the extsdcard, even though they can't be accessed at my old location. I also used multiple root browsers and none could access the old files at the old location.
*
Any ideas what could have gone wrong?
Click to expand...
Click to collapse
It appears you are running a recovery that is not supported by Android 4.2.
Since android 4.2 modified the directory layout to make way for multi user support, recoveries had to be updated to flash properly.
You will need to more than likely move your data files to your computer by hand, delete all of the extra and then reimplement your data to the appropriate folder.
Make sure you update your recovery as well so you don't see this on future 4.2 flashes.
When 4.2 first released this was a common issue with recoveries. Once you get your data and apps backed up appropriately, you may need to wipe your data/internal storage to free up the "used" space. I put used in quotes because it may appear its not taking any space at all when in all actuality it is.
Sent from my SGH-I747 using xda app-developers app
I'm using the latest TWRP 2.3.3.1 I think is the version. Is that not a compatible recovery?
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
AngelsNecropolis said:
I'm using the latest TWRP 2.3.3.1 I think is the version. Is that not a compatible recovery?
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
Hmm... latest is 2.4.1.0 but 2.3.3.1 was definitely compatible... sounds like there's a different underlying issue out of my realm of expertise. We'll have to wait for someone else to come along. Sorry man =/
Sent from my SGH-I747 using xda app-developers app
I'll update my recovery anyways. I've fixed the problem by moving everything again but in smaller sections. I may take up your advice to connect to a pc and back up everything, format it, then move the files back though. I just don't want to duplicate the issue again. It was a huge inconvenience. Thanks for posting.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
AngelsNecropolis said:
I'll update my recovery anyways. I've fixed the problem by moving everything again but in smaller sections. I may take up your advice to connect to a pc and back up everything, format it, then move the files back though. I just don't want to duplicate the issue again. It was a huge inconvenience. Thanks for posting.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
no problem man, sorry I couldn't help more. good luck with it! may have just been a fluke bad flash.
Sent from my SGH-I747 using xda app-developers app

[Q] TB from 4.1 to 4.2

I use Titanium Backup to save and load all my apps when I flash a new ROM. I started using a 4.2.1 ROM and wanted to go back to a 4.1 ROM to get the basic Samsung settings. However, when I flash a 4.1 ROM and run TB it says I do not have any files to restore. But then in a 4.2.1 ROM they are there. Is there a way to convert the apps back to 4.1 so they run on an older OS.
Thanks
I could be wrong but I think you have to move the TB files because 4.2 creates the 0 folders
Sent from my SPH-L710 using xda premium
When you went to 4.2 the system moves all your files to the O folder in storage. On 4.1 it's looking for them where they originally where. You can copy and paste everything back to its original location but you can not move them at this point.
Transmitted with a portable device using Xparent Blue Tapatalk 2
Do I just need to move the whole folder to the root of my SD card? Or how do you get rid if the 0 folder?
mroien said:
Do I just need to move the whole folder to the root of my SD card? Or how do you get rid if the 0 folder?
Click to expand...
Click to collapse
Copy and paste back in the root folder in original location do not delete or cut
Transmitted with a portable device using Xparent Blue Tapatalk 2
Could you walk me through how to move the file? I went into my file manager and copied the TB folder and pasted it back on my extSD card. Then I took all the files in the TB folder and copied them into a different folder and named it TB2 and still nothing.
Never mind I found it had to relocate the backup file in the sdcardO folder.

[Q] Storage/SDCard0

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

[Q] AOSP Rom without 0 Folder?

Coming from stock and flashing aosp adds a 0 folder to my sdcard and just makes a copy of what i already have, and then separates existing pictures and such. I like switching between custom roms and stock but not at the cost of space. My question is, is there a custom rom that can run off of normal sdcard folder and not have to create this 0 folder? Its only aosp roms that do this as ive flashed stock, vectus, and lifeless without this problem.
Just something you have to deal with. Here's what I do. (I use root browser)
1) create a folder marked 0 in your sdcard
2) show hidden files if they aren't already
3) cut and paste (copy will take a lot longer) everything in your /sdcard into the 0 folder. Except the zero folder itself, we don't want paradoxes
4) reboot into recovery, flash stock rom as usual, and things should be where you expect
stevek216 said:
Just something you have to deal with. Here's what I do. (I use root browser)
1) create a folder marked 0 in your sdcard
2) show hidden files if they aren't already
3) cut and paste (copy will take a lot longer) everything in your /sdcard into the 0 folder. Except the zero folder itself, we don't want paradoxes
4) reboot into recovery, flash stock rom as usual, and things should be where you expect
Click to expand...
Click to collapse
Okayy so when a file is in one of them will it transfer to the other automatically or will i have to manually do it?
Oh damn I just noticed I have my downloads folder mirrored like 5 times!
Sent from my LG-LS970 using xda app-developers app
NexusS4gFreak said:
Okayy so when a file is in one of them will it transfer to the other automatically or will i have to manually do it?
Click to expand...
Click to collapse
I'm not sure what you mean. You actually have to move your files into the 0 folder, using a cut and paste operation. And as far as file mirroring goes, I think that's common and shouldn't be an issue, something to do with the multi user setup. Idk.
stevek216 said:
I'm not sure what you mean. You actually have to move your files into the 0 folder, using a cut and paste operation. And as far as file mirroring goes, I think that's common and shouldn't be an issue, something to do with the multi user setup. Idk.
Click to expand...
Click to collapse
You are correct android 4.2.2 is setup a bit differently to accommodate multi user support it uses numbered folders, stock being 4.1.2 doesn't use the same folder setup so it will be duplicated.
Sent from my LG-LS970 using xda app-developers app
You can use sylinks. Just sysmlink everything in your 0 folder to your SD. You would either need to add the symlinks to the updater script or use init.d
I'm moving so fast you're in slow motion.

Categories

Resources