Related
Why is the sdcard listed in so many places. I know they are basically shortcuts to the sd because as of now I only have 2 gig free on my card and there is no room to copy/paste it or whatever.
When I look in root explorer i see /sdcard, /storage/emulated, /storage/sdcard0, and /data/media/0 all have my sd files in them.
My main problem is now quick pic sees double of everything, can I delete any of these mentioned above? I don't want to just "hide" them from quick pic, I want just one copy of each folder if possible.
I believe if you use a file explorer on the phone and not MTP, it's much quicker to just move the stuff you need to the root of the SD card and then delete the duplicates. I would wait for someone to verify that though before you proceed. Mine was doing something weird in TWRP. I tried to flash the stock 4.2 again in hopes any issues I had would be resolved. Didn't so I went to restore my CM10 data and it wasn't there. At all. I'm thinking to myself it somehow wiped everything. Nope. My files were there, but only when I flashed a fresh CM10 build. I don't know exactly what happened, but 4.2 has had some weird issues with recoveries, which were addressed for the most part.
jsminnis said:
Why is the sdcard listed in so many places. I know they are basically shortcuts to the sd because as of now I only have 2 gig free on my card and there is no room to copy/paste it or whatever.
When I look in root explorer i see /sdcard, /storage/emulated, /storage/sdcard0, and /data/media/0 all have my sd files in them.
My main problem is now quick pic sees double of everything, can I delete any of these mentioned above? I don't want to just "hide" them from quick pic, I want just one copy of each folder if possible.
Click to expand...
Click to collapse
use this guide to keep the old sdcard format..
http://forum.xda-developers.com/showthread.php?t=1999214
OK, I finally installed PA 2.99 beta6 which I've wanted to do for a while. First to preserve the file structure and not have /0 folders, I copied all my old SD card files to /data/media as told in the guide linked below. I'm thinking my issue started when I didn't delete the /0 folder after installing the stock 4.2.1, but now all my old SD card files have incorrect permissions for me to access them. Is there a quick and easy way to fix it, preferably from the phone? I'm gonna wipe and reinstall everything tomorrow if necessary, but I can't do it until tomorrow morning. I'm not even sure what permissions I should set to make the files accessible again. I think I may have screwed up by not setting permissions when copying files using the toolkit also. I'm still pretty noobish and I thought that was only necessary for system files. I thought the correct permissions would follow everything else. I did find that I can take a song that's in the /data/media/music file, which won't play, move it to /sdcard/music, and it plays. I tried changing permissions and owners on the non-working files to match the working files, but no luck.
I really appreciate any advice or help anybody has.
http://forum.xda-developers.com/showthread.php?t=1999214
Ok, so you have moved all your content, in the new media folder, but I read you can't read any media from that folder. I guess that it s completely normal, as I would have only put backups to be used in this precise folder. Correct me anybody if I'm wrong, but music should be pasted in the new music folder, and so on and so on, for each media. In the first place, those files were not all put in the data/media folder right ?
So, why not try and use a file explorer, and move the content in their respective appropriate new folder, and see how it works. And that done delete the initial folders. Hope it will work.
Aur3L said:
Ok, so you have moved all your content, in the new media folder, but I read you can't read any media from that folder. I guess that it s completely normal, as I would have only put backups to be used in this precise folder. Correct me anybody if I'm wrong, but music should be pasted in the new music folder, and so on and so on, for each media. In the first place, those files were not all put in the data/media folder right ?
So, why not try and use a file explorer, and move the content in their respective appropriate new folder, and see how it works. And that done delete the initial folders. Hope it will work.
Click to expand...
Click to collapse
According to the guide to keep the pre-4.2 file structure, with no /0 folders, you're supposed to ADB push all sd card files to the /data/media folder. Now I think what I screwed up on is I was supposed to delete any /0 folders but I misread the guide and didn't delete the folder. Now all of the data I pushed to the phone is in it's respective folders under data/media, such as Music and Downloads, but there is also a /data/media/0 folder with standard android folders. There is also /sdcard, with standard android folders. From my understanding, either data/media and /sdcard or /data/media/0 and /sdcard should show the same files, but neither does. If I make a change in one directory it doesn't show in the other directory. The weird part to me is that when I copy and paste a file from /data/media/Music (or any other directory there) to /sdcard, the file permissions and owners and groups of the file will change, and then I can access the file in the /sdcard directory. But if I try to apply the exact same permissions and owner and group to the file under /data/media it will still not give me access. On Root Explorer, looking at properties of a file in /data/media, the md5sum shows Access Denied, but works on /sdcard. I'm thinking it has something to do with the /data/media folder's permissions instead of the files/folders under it, but I'm kinda afraid to mess with it. When I get home in the morning I'm gonna try dumping EVERYTHING and start again, but I would love to be able to fix it first.
Will I see any problems if I just copy all the files from /data/media to /sdcard, where I'm sure I can use them? Also, why doesn't /data/media or /data/media/0 show the same files as /sdcard?
Thanks for any help!
02ranger said:
According to the guide to keep the pre-4.2 file structure, with no /0 folders, you're supposed to ADB push all sd card files to the /data/media folder. Now I think what I screwed up on is I was supposed to delete any /0 folders but I misread the guide and didn't delete the folder. Now all of the data I pushed to the phone is in it's respective folders under data/media, such as Music and Downloads, but there is also a /data/media/0 folder with standard android folders. There is also /sdcard, with standard android folders. From my understanding, either data/media and /sdcard or /data/media/0 and /sdcard should show the same files, but neither does. If I make a change in one directory it doesn't show in the other directory. The weird part to me is that when I copy and paste a file from /data/media/Music (or any other directory there) to /sdcard, the file permissions and owners and groups of the file will change, and then I can access the file in the /sdcard directory. But if I try to apply the exact same permissions and owner and group to the file under /data/media it will still not give me access. On Root Explorer, looking at properties of a file in /data/media, the md5sum shows Access Denied, but works on /sdcard. I'm thinking it has something to do with the /data/media folder's permissions instead of the files/folders under it, but I'm kinda afraid to mess with it. When I get home in the morning I'm gonna try dumping EVERYTHING and start again, but I would love to be able to fix it first.
Will I see any problems if I just copy all the files from /data/media to /sdcard, where I'm sure I can use them? Also, why doesn't /data/media or /data/media/0 show the same files as /sdcard?
Thanks for any help!
Click to expand...
Click to collapse
Again, as I said previously move your music photos apks downloads in the sdcard structure, then erase the /0 folder, you would have found your stuff, where it's ought to be, legible by their respective programs. So move your photos /data/media to your actual /sdcard/Dcim/ folder, and so on and so forth for each content, problem should be solved. It's really simple.
Aur3L said:
Again, as I said previously move your music photos apks downloads in the sdcard structure, then erase the /0 folder, you would have found your stuff, where it's ought to be, legible by their respective programs. So move your photos /data/media to your actual /sdcard/Dcim/ folder, and so on and so forth for each content, problem should be solved. It's really simple.
Click to expand...
Click to collapse
I understand that and that is what I plan to do to get through tonight. My question is, why is this even a problem? Is there something that I could do to not have to move the files? Not out of laziness, more out of curiosity. I still plan to dump everything because with all the crap I've tried to fix the permission issues there's no telling what I may have screwed up, but until I get to start over I'm planning to just copy everything to /sdcard. Now I just would like to know why it was an issue. Why can't I access files in the /data/media folder, or any other folder on my phone for that matter, when I'm rooted and using a root explorer? I have never seen this issue before, regardless of phone or ROM. Is this due to the new 4.2 multiuser file structure, or something I did? I appreciate your help and I apologize if my intention wasn't clear from my last post, I am at work and typing in a hurry. I started the thread looking for an easy fix and you've given me that, now I'm mostly just curious as to why it happened to begin with.
Thanks again!
Edit: I just tried copying some alarms into the /sdcard/Alarms/ and they won't play either, but Music still does. I actually got a "Not Enough Free Space" message when trying to copy them, with 5+ GBs free on the sdcard and the files were only about 130kb. I'm just going to have to dump everything and just copy what I really have to have to the phone. If you have any other ideas I'm open to hear them, but I think its FUBARed at this point. Thanks though.
Well, if you use a root explorer, such as ES file, you have to move your alarms/rigtones notifications in telephone/system/media. Once put in here, you will have to correct the permissions to rw rr , and reboot your phone. As to why it happens like this, I guess it is related to the new structure, and also because you cannot play everything from everywhere in your device, some folders are system folders, and not every file is legible from that location. My guess in your situation is that you have twice the same content on your phone (hence the Not enough free space message), so just paste everything you need in the appropriate volume, and erase the one you have messed up with.
Might be a suggestion, but if you have a nandroid backup, just look at how and where your files are organised.
Now, however, if you have a hard time fixing this up, well you might as well save your stuff on your computer, flash a stock image, root it, install TWRP, your favorite Rom, transfer your files back from your computer, and you will have a fresh and probably better running phone.
Hope it will help you, and if you have an insomnia, just take that opportunity to browse your phone structure, so that you know where each file is located. Good luck with it .
That last part is what I did. I just wiped everything, reinstalled PA 2.99B6 and ADB pushed to /sdcard instead of /data/media. It all works perfectly now. I'm not 100% sure what the issue was before, but I still think it was the new file structure. If I go at a music file through /data/media it still won't play but will from /sdcard, which is the only place I put the files. I guess its just the way the new file structure for multi-user works. I appreciate your help. I think I'll keep the /0 folder too. Trying to get rid of it is part if why I did things that caused problems, and its gonna be part of the future of android so we might as well get used to it.
Thanks again!
So I flashed a new rom with all the wipes and I ended up with a couple issues and the typical 4.2 file structure under the "0".
I tried another ROM again today (with the wipes) and now I have two "0" folders, one embedded under another and a lot of my backups are in different locations.
So it's SDCard/0/0.
Is there a good way to fix this?
cwepruk said:
So I flashed a new rom with all the wipes and I ended up with a couple issues and the typical 4.2 file structure under the "0".
I tried another ROM again today (with the wipes) and now I have two "0" folders, one embedded under another and a lot of my backups are in different locations.
So it's SDCard/0/0.
Is there a good way to fix this?
Click to expand...
Click to collapse
I know the CAUSE is from using an out-of-date recovery. TWRP hasn't had that issue for a while, but i think CWM only fixed it just recently. It didn't start until i believe 4.2.1 ROMS were flashed. I'm still not sure if it's a good thing or not to delete those "0" folders or not. I'm sure someone will chime in on that.
the 0 folders have your sd card files in them (pictures, music, etc). if you move all your stuff back to the root of your internal sd card you can delete the 0 folders.
sent from my i747 with xda-premium
I tried moving the folders on my windows PC (old pos) and it didn't work. Android file transfer doesn't work with my GS3 and my Mac.
Frustrating.
Anyways to reflash something in CWM or is moving the files the only way?
Edit: Astro works alright...so where should Ibe putting most of these files? Under SDCard or under SDCard/0?
Now i moved some folders up, the gallery shows everything as a picture (icons) and titanium can't find any apps.
Nw sure what to do.
After I went back to stock, re-rooted, and reflashed 4.2, I tried moving everything from /sdcard/0 to /sdcard. It seemed to work, but then all of a sudden, on the next boot, it was all gone. My internal storage was wiped.
Luckily most of the important stuff is on my external SD card, but that was still really frustrating.
Just a word of warning if you try to move these files. Make a backup.
Please read forum rules before posting
Questions and help issues go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
No file moving should be done, it will most likely cause data loss when the issue is finally gone... If CWM has fixed it switch to the newest one or use TWRP and Fully Wipe the phone including format /system...
Here is a link to a script you can flash to move files from 0 folders back to sdcard, you can thank the OP of the script there:
http://forum.xda-developers.com/showpost.php?p=35653109&postcount=8124
Manual solution via Windows
I had the same problem. Solved via the following steps: Using Windows, navigate to deepest level "0" folder. Select all, copy. Navigate to the next higher level "0" folder (or the root "Phone" folder if you're only one step down). Paste. Windows will perform a merge, versus replace.
Next, delete the "0" folder from the directory you're currently in, the one you just copied all the files from. I should note, I actually moved the folder to my desktop just in case I needed to bring it back later. So far I haven't, but better safe than sorry.
Once that's done, select all in the same folder, copy. Navigate to the next higher "0" level folder or the root (or the root "Phone" folder if you're only one step down). Paste. Repeat same process, move up a level, repeat, move up a level. You'll need to do this for every "0" folder you have (I had two, I've seen reports of more & less).
Eventually, you'll have all the same files and directory structure merged up to the root Phone folder. My device, a Samsung S3 running 4.3, recognized and responded to the changes with no problems.
I've been reinstalling my ROMs quite a bit, but now when I look at my phone, there are at least 8 0 folders in my device and it's taking up alot of space. Is there any way to delete the 0 folders?
Right now, this is how my file manager looks like with all the 0 folders:
Internal Storage/0/0/0/0/0/0/0/0/
Thanks.
ptexp said:
I've been reinstalling my ROMs quite a bit, but now when I look at my phone, there are at least 8 0 folders in my device and it's taking up alot of space. Is there any way to delete the 0 folders?
Right now, this is how my file manager looks like with all the 0 folders:
Internal Storage/0/0/0/0/0/0/0/0/
Thanks.
Click to expand...
Click to collapse
This is due to an issue with a bug in the previous version of Clockworkmod. First what you should do is install it to prevent it from happening in the future. Next what you do is plug your phone into your computer and copy all the files from the last 0 folder into the first 0 folder, then delete all of the empty 0 folders. This should fix it, but its a pain to wait, especially if you have a bunch of nandroids.
I would recommend you backup all your data onto your computer. Clean wipe the sdcard from your recovery and then just put it back on the clean sdcard (it causes the least errors).
If I have helped please slap that thanks button
But the 0 folders in the middle also took some of the space. Do I need to find those folders and put it in my sd card as well? Or do I just forget about the ones in the middle and just copy the last one? And the problem is, the 0 folders in the middle arent empty either.
ptexp said:
But the 0 folders in the middle also took some of the space. Do I need to find those folders and put it in my sd card as well? Or do I just forget about the ones in the middle and just copy the last one? And the problem is, the 0 folders in the middle arent empty either.
Click to expand...
Click to collapse
Just copy all the contents of all the 0 folders and back it up. At the end when you wipe your sdcard then just put them all back into your single /0 folder
http://forum.xda-developers.com/showthread.php?t=2362138
Visit my thread, for fix.
Current ROM: Illusion v2.0.
Kernel: BMS. (Latest Version)
Hit the thanks button if I helped. [:
Hi . I'm a newbie
My note 2 is running in low memory
Total memory is 10.46 GB
Free 3.50 GB
Apps 0.99 GB
Media near 1 Mb
Cache data and other near 110MB
So where is the rest? What should I do to free some space?
Thanks
romi1996 said:
Hi . I'm a newbie
My note 2 is running in low memory
Total memory is 10.46 GB
Free 3.50 GB
Apps 0.99 GB
Media near 1 Mb
Cache data and other near 110MB
So where is the rest? What should I do to free some space?
Thanks
Click to expand...
Click to collapse
use a root explorer and go to
data/media
this is where all ur stuff is located.. Take out or deal it the way u want to deal with it
geekynoob said:
use a root explorer and go to
data/media
this is where all ur stuff is located.. Take out or deal it the way u want to deal with it
Click to expand...
Click to collapse
There is nothing in that folder. And i'm totaly stuck
romi1996 said:
Hi . I'm a newbie
My note 2 is running in low memory
Total memory is 10.46 GB
Free 3.50 GB
Apps 0.99 GB
Media near 1 Mb
Cache data and other near 110MB
So where is the rest? What should I do to free some space?
Thanks
Click to expand...
Click to collapse
What rom/system were you using before? In some situations when installing new rom version over the old without doing full wipe there are leftover files from old installation.
Using root explorer go to /storage/sdcard - list what is in there
go to /storage/emulated - there should be 2 directories there: 0 and legacy - list what is in there
lastly go to /mnt/shell/emulated - list what is in there - if you see there directories like "0", "legacy" then it's your original internal sd directory.
Now while installing new rom, almost all files from that directory should be moved to "0" directory for multiuser environment configuration, but sometimes they are not - the will be normally not visible in settings>storage information creating lost space" phenomena
Now comes the hard part - you can delete almost all files and directories except "0" and "legacy", but there may be some config files from your recovery and/or backup files from the same source (those directories will have in their names some familiar words, for example: devil, agni, clockworkmod, twrp) - you should not touch them. Browse directories (except "0" and "legacy") for old program data, obb files and directories, media, music and video files and delete them as they are not visible to your media players or programs. They are a bit like old "program files" and "documents" from Windows world
mat9v said:
What rom/system were you using before? In some situations when installing new rom version over the old without doing full wipe there are leftover files from old installation.
Using root explorer go to /storage/sdcard - list what is in there
go to /storage/emulated - there should be 2 directories there: 0 and legacy - list what is in there
lastly go to /mnt/shell/emulated - list what is in there - if you see there directories like "0", "legacy" then it's your original internal sd directory.
Now while installing new rom, almost all files from that directory should be moved to "0" directory for multiuser environment configuration, but sometimes they are not - the will be normally not visible in settings>storage information creating lost space" phenomena
Now comes the hard part - you can delete almost all files and directories except "0" and "legacy", but there may be some config files from your recovery and/or backup files from the same source (those directories will have in their names some familiar words, for example: devil, agni, clockworkmod, twrp) - you should not touch them. Browse directories (except "0" and "legacy") for old program data, obb files and directories, media, music and video files and delete them as they are not visible to your media players or programs. They are a bit like old "program files" and "documents" from Windows world
Click to expand...
Click to collapse
I use the 4.1.1 version. And the folder you mention not show up in anywhere.
romi1996 said:
I use the 4.1.1 version. And the folder you mention not show up in anywhere.
Click to expand...
Click to collapse
Were you in the root folder when you started searching for mentioned folders? Root folder is the topmost folder with main subfolders (etc, system, sys, storage, mnt and others) - there is no way that you would not find "storage" folder - it MUST be there.
mat9v said:
Were you in the root folder when you started searching for mentioned folders? Root folder is the topmost folder with main subfolders (etc, system, sys, storage, mnt and others) - there is no way that you would not find "storage" folder - it MUST be there.
Click to expand...
Click to collapse
No root folder is emty. But the dev folder have 184 sub folder .. that folder have so many that i can't count because the folder is too large. Can i delete dev folder?
romi1996 said:
No root folder is emty. But the dev folder have 184 sub folder .. that folder have so many that i can't count because the folder is too large. Can i delete dev folder?
Click to expand...
Click to collapse
It's a bit of a misunderstanding: Root folder is the main folder of whole file system, but it is also a simple folder named "Root" in the root folder (or otherwise called root directory) of the file system. It's the same if you crated in some directory a new directory and named it "directory" Easy, yes?
In the root directory you should have some typical directories: cache, config, d, data, dev, efs, etc, lib, mnt, proc, sys, system, storage and others
There must be a directory named "storage" and there must be a directory named "mnt" - those are the ones I was writing about before, please follow that.
Oh, and under any circumstances do not delete /dev (even if Android would allow that).
mat9v said:
It's a bit of a misunderstanding: Root folder is the main folder of whole file system, but it is also a simple folder named "Root" in the root folder (or otherwise called root directory) of the file system. It's the same if you crated in some directory a new directory and named it "directory" Easy, yes?
In the root directory you should have some typical directories: cache, config, d, data, dev, efs, etc, lib, mnt, proc, sys, system, storage and others
There must be a directory named "storage" and there must be a directory named "mnt" - those are the ones I was writing about before, please follow that.
Oh, and under any circumstances do not delete /dev (even if Android would allow that).
Click to expand...
Click to collapse
There is no folder name mnt in that storage folder there only folder name emulated . Sdcard0 sdcard 1 usbdisk0
Oh in the emulated folder have legacy folder and 0 folder.
But finally i found it in root folder .with some some of my stupid misunderstanding. But i greatly thanks you so much.
UPDATE so the mnt and my main sdcard. Folder like synced .it í like duplicate the file
mat9v said:
It's a bit of a misunderstanding: Root folder is the main folder of whole file system, but it is also a simple folder named "Root" in the root folder (or otherwise called root directory) of the file system. It's the same if you crated in some directory a new directory and named it "directory" Easy, yes?
In the root directory you should have some typical directories: cache, config, d, data, dev, efs, etc, lib, mnt, proc, sys, system, storage and others
There must be a directory named "storage" and there must be a directory named "mnt" - those are the ones I was writing about before, please follow that.
Oh, and under any circumstances do not delete /dev (even if Android would allow that).
Click to expand...
Click to collapse
Update : the mnt/shell have emulated. So which folder i should delete? .
I checked some folder i reconize some super strange thing in root.
The sdcard and extsdcard folder in root folder. . The storage folder has 2 folder too. . When i go to mnt/sdcard there ate have 2 more folder like that. And the super strange thing is these files in those folder is completely same like they are duplycating. Can you answer this?
Update : still don't know why the storage folder is 4.02Gb but when I take information of each one in that folder and combine it i got over 3Gb . What the hell?
romi1996 said:
Update : the mnt/shell have emulated. So which folder i should delete? .
I checked some folder i reconize some super strange thing in root.
The sdcard and extsdcard folder in root folder. . The storage folder has 2 folder too. . When i go to mnt/sdcard there ate have 2 more folder like that. And the super strange thing is these files in those folder is completely same like they are duplycating. Can you answer this?
Update : still don't know why the storage folder is 4.02Gb but when I take information of each one in that folder and combine it i got over 3Gb . What the hell?
Click to expand...
Click to collapse
There are a lot of duplicate directories like that because they are virtual directories, like shortcut files on Windows , but unlike in Windows they have the size of all children files (with some exception. It is complicated and hard to describe without .... a lot of explaining for which I have no time ) The directory /mnt/shell/emulated is of interest to us, in enclosed picture you can see "User directory" that contains all files that your current profile uses, some directories in pink - they may be there or they may not be, but you should not under any circumstances delete them, directories in green are free to delete. Please list any other directory you will find there and their sizes so I can advise what to delete.
View attachment 2614902
mat9v said:
There are a lot of duplicate directories like that because they are virtual directories, like shortcut files on Windows , but unlike in Windows they have the size of all children files (with some exception. It is complicated and hard to describe without .... a lot of explaining for which I have no time ) The directory /mnt/shell/emulated is of interest to us, in enclosed picture you can see "User directory" that contains all files that your current profile uses, some directories in pink - they may be there or they may not be, but you should not under any circumstances delete them, directories in green are free to delete. Please list any other directory you will find there and their sizes so I can advise what to delete.
View attachment 2614902
Click to expand...
Click to collapse
Deleted. Rom recovery back up removed . Thanks you so much
I wanna reopen some files but i can't. The system keep telling can't open the file and the files is AcIv.mp3 or a video. Please help.