[Q] Folder structure - G2 and Desire Z Q&A, Help & Troubleshooting

Hi i am looking now a little to the folder structure and would like to clarify one thing. So in the structure we can find "mnt/sdcard" and going up one level (the highest one) we can find "sdcard" by itself. I have to add that going to the former one or the latter we have the same content.
Could anybody explain me why we have those two folders looking as doubbled? Personaly I think it is probably some kind of link.
Thanks in advance.
Sent from my HTC Vision using XDA Premium App

I believe its a Linux thing.
/mnt/sdcard is where the sdcard is actually mounted in Android, and
/sdcard is is just a symbolic link to that directory

/nmt is used for mount points - just like linux. So if you have other partitions on your sdcard (like a2ext) they'll show up in /mnt whereas they will not show up in /sdacrd.
Like they guy above me said, /sdcard is really just a symbolic link (shortcut).

Related

[Q] Delete folders from root\sdcard\Android\data\ using root explorer

I have some superfluous folders from long-since-deleted apps in root\sdcard\Android\data\ that i'd like to clean up. one of them is massively large.
I'm on AOKP build 31, rooted, and using an up-to-date copy of Root Explorer (w/ super user) but the delete command fails. Mounting and deleting the folders using Windows makes them disappear from windows, but they don't disappear from root explorer (And the space they were gobbling up doesn't free up in android either)
I have a feeling these folders are resisting deletion while android is running because they're "in use" (even though they shouldn't be, since the apps themselves are long since deleted) Is it possible to mount my sd card to my PC from CWM recovery/bootloader and delete them that way?
Am I doing something dumb?
Try rmdir -R /sdcard/*foldername* in terminal emulator
Sent from my Galaxy Nexus using XDA
You'll find the same folders in /data/media and you should be able to delete them from there...
danger-rat said:
You'll find the same folders in /data/media and you should be able to delete them from there...
Click to expand...
Click to collapse
Thank you! That did the trick. I had no idea the file structure was put together that way (fairly incomprehensible, actually)

sdcard0 and sdcard?

I have a Sprint GNex running RU Jelling M1 RC2 and I have two internal storages (if that makes sense). I have sdcard/ and I have storage/sdcard0. Both seem to contain all data on my sd card and appear to be the exact same. I just don't know why there is two. Anyone know?
symlinks.
Elaborate? Sorry but I do not know what that is/means?
DRatJr said:
Elaborate? Sorry but I do not know what that is/means?
Click to expand...
Click to collapse
In computing, a symbolic link (also symlink or soft link) is a special type of file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution
Source Wiki.
Ok but it gets weirder. When I download an attachment from Yahoo mail and save it, a pic for example, it is in both destinations, but in gallery shows in sdcard0. why is that?
i believe this is the bug ppl are facing with jelly bean(including me).
jb seems to use the sdcard0 so previous files dont show up in apps such as gallery, music, etc..
i might be wrong but hope someone clears this up for the people having issues...
bluemoon1221 said:
i believe this is the bug ppl are facing with jelly bean(including me).
jb seems to use the sdcard0 so previous files dont show up in apps such as gallery, music, etc..
i might be wrong but hope someone clears this up for the people having issues...
Click to expand...
Click to collapse
It's not a bug. It's by design. The physical media of your sdcard exists as /data/media. On boot, your phone uses /data/media to create a virtual sdcard, found at /storage/sdcard0. After that, symbolic links are set up that point /sdcard and /mnt/sdcard to /storage/sdcard0.
The data exists in one place, /data/media. The rest are essentially just pointers to the information for backward/forward compatibility.
Edit: Code snippets showing the above. Note, these are from my VZW Nexus:
init.tuna.rc
Code:
on early-init
export EXTERNAL_STORAGE /storage/sdcard0
mkdir /storage 0050 system sdcard_r
mkdir /storage/sdcard0 0000 system system
# for backwards compatibility
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
mkdir /mnt/usbdisk 0755 system system
on post-fs-data
# we will remap this as /storage/sdcard0 with the sdcard fuse tool
mkdir /data/media 0770 media_rw media_rw
chown media_rw media_rw /data/media
[...]
# create virtual SD card at /storage/sdcard0, based on the /data/media directory
# daemon will drop to user/group system/media_rw after initializing
# underlying files in /data/media will be created with user and group media_rw (1023)
service sdcard /system/bin/sdcard /data/media 1023 1023
class late_start
[...]
Cilraaz said:
It's not a bug. It's by design. The physical media of your sdcard exists as /data/media. On boot, your phone uses /data/media to create a virtual sdcard, found at /storage/sdcard0. After that, symbolic links are set up that point /sdcard and /mnt/sdcard to /storage/sdcard0.
The data exists in one place, /data/media. The rest are essentially just pointers to the information for backward/forward compatibility.
Click to expand...
Click to collapse
yup.
thanks for the explanation
DRatJr said:
Ok but it gets weirder. When I download an attachment from Yahoo mail and save it, a pic for example, it is in both destinations, but in gallery shows in sdcard0. why is that?
Click to expand...
Click to collapse
A symlink can be looked at as basically a shortcut. So if you open sdcard0 you're in sdcard.
Sent from my Galaxy Nexus
Sprint, the Not Right Now Network
So can we delete sdcard with Root Explorer and just use sdcard0?
Vaporsilver said:
So can we delete sdcard with Root Explorer and just use sdcard0?
Click to expand...
Click to collapse
No, you can't.
That's designed that way because some apps look for /sdcard and others for /sdcard0. It doesn't affect in ANYTHING to you because after all, the files are actually stored in /data/media. There are no duplicate folders in any way.
Just use Root explorer and save the files wherever you want. One day you can use /sdcard and the other /sdcard0. The second day you'll find that the files you put in /sdcard are in /sdcard0.
Android from ICS and onwards wasn't meant that you look for the files using a Root explorer. In fact, all apps can browse the storage area how they want and you don't need to worry about it.
Cheers!
el_charlie said:
No, you can't.
That's designed that way because some apps look for /sdcard and others for /sdcard0. It doesn't affect in ANYTHING to you because after all, the files are actually stored in /data/media. There are no duplicate folders in any way.
Just use Root explorer and save the files wherever you want. One day you can use /sdcard and the other /sdcard0. The second day you'll find that the files you put in /sdcard are in /sdcard0.
Android from ICS and onwards wasn't meant that you look for the files using a Root explorer. In fact, all apps can browse the storage area how they want and you don't need to worry about it.
Cheers!
Click to expand...
Click to collapse
Awesome thanks! That really clears things up.
I have a question along the same lines, but don't feel it needs it's own thread.
I have a VZE Gnex (toro) that I unlocked and rooted. I've previously owned the G1, G2, and Sensation. I'm not too bad of a n00b, but I have my moments, and this may be one of them haha.
I was looking to flash the AOKP JB nightly, and I was reading up on how to wipe everything properly, as this is my first experience without an SD card. I use TWRP and I performed factory reset, wiped system, flashed ROM, flashed Gapps, wiped cache + dalvik, rebooted. Upon reboot, most of my folders were missing from my 'SD card' when viewing them from my PC, so I reverted back to the backup I made prior to starting all of this. The backup wasn't all that big, yet all of my stuff was back. Also, even though the fresh install of AOKP didn't show much of anything on the 'sdcard' from my PC, I could still access the AOKP ROM file in recovery, so it seems the data was still there, just hidden from view on my PC.
My questions are:
What exactly does a Factory Reset wipe when it comes to the 'SDcard'?
Is my issue just a remnant of the .nomedia issue? I thought I had fixed that prior to doing any of this, but who knows how far it went.
What types of folders are affected by a wipe on the 'SDcard'?
What types of folders are not affected by a wipe on the 'SDcard'?
What do I see the files in ICS and not JB, yet it appears they are still there (just not on my PC)? Is it because of the stupid MTP and not Mass Storage?
How do I know what folders are MTP viewable and which aren't so I don't have to mess around with "ADB Pull" command as much?
I'm confused on what I need to back up, and what will be OK to leave on the internal storage. Any help would be appreciated. I did my best searching here on XDA and RootzWiki with things I thought may be valid. If I missed something, don't flame me. I did actually search
1. A factory reset with a custom Recovery wipes /data and /cache partitions BUT in the case of the GNexus, /data/media is not affected. In that location is where the "sdcard" resides. That's what you look when you connect the phone to a PC. The stock recovery wipes everything and leaves the phone as new.
2. The .nomedia is to hide certain files from the media scanner and avoid to display unwanted files in the Gallery or Music Player.
3. and 4. Like I said, using a custom recovery (TWRP or CWM) doesn't touch the /data/media folder, so no files are deleted there. You wouldn't want to delete the folder where your NANDROID backup is stored, do you?
5. If you're still on ICS connect the phone to the PC and backup EVERY THING just to be safe, including the NANDROID folder.
After you wipe and flash the new ROM you'll still see the old files (like pictures, music, and so on). You can delete them if you like.
Cheers!
el_charlie said:
1. A factory reset with a custom Recovery wipes /data and /cache partitions BUT in the case of the GNexus, /data/media is not affected. In that location is where the "sdcard" resides. That's what you look when you connect the phone to a PC. The stock recovery wipes everything and leaves the phone as new.
2. The .nomedia is to hide certain files from the media scanner and avoid to display unwanted files in the Gallery or Music Player.
3. and 4. Like I said, using a custom recovery (TWRP or CWM) doesn't touch the /data/media folder, so no files are deleted there. You wouldn't want to delete the folder where your NANDROID backup is stored, do you?
5. If you're still on ICS connect the phone to the PC and backup EVERY THING just to be safe, including the NANDROID folder.
After you wipe and flash the new ROM you'll still see the old files (like pictures, music, and so on). You can delete them if you like.
Cheers!
Click to expand...
Click to collapse
Thanks for the fast reply, but I still am wondering why I can't see the exact same files in AOKP that I could see in stock ICS. Any clues? Should I just move everything to /data/media/ using root explorer and see if they all show up?
Well the solution I've come to is to run
adb pull /sdcard/ c:\android\sdcardbackup8-17-2012
to back absolutely everything up, perform a full wipe of everything (including storage), flash AOKP, flash Gapps, wipe cache, wipe dalvik, reboot, then run
adb push c:\android\sdcardbackup8-17-2012 /sdcard/
Hopefully this helps someone else out
I find there is a problem in the sync's. /sdcard/ does not show always what's in /storage/sdcard0/. From pc I see no new files while on my nexus in /storage/sdcard0/ i see the file and /sdcard/ i don't. Not sure why the sync does not occur any faster. Seems like a bug. I thought hmm, maybe the disconnect usb near clock might do the trick to fix the problem but it doesn't. My pc is a slave to whenever my driod syncs the two.
Flukester69 said:
I find there is a problem in the sync's. /sdcard/ does not show always what's in /storage/sdcard0/. From pc I see no new files while on my nexus in /storage/sdcard0/ i see the file and /sdcard/ i don't. Not sure why the sync does not occur any faster. Seems like a bug. I thought hmm, maybe the disconnect usb near clock might do the trick to fix the problem but it doesn't. My pc is a slave to whenever my driod syncs the two.
Click to expand...
Click to collapse
What files aren't you seeing?
*Shaolin Shadowboxing*
Flukester69 said:
I find there is a problem in the sync's. /sdcard/ does not show always what's in /storage/sdcard0/. From pc I see no new files while on my nexus in /storage/sdcard0/ i see the file and /sdcard/ i don't. Not sure why the sync does not occur any faster. Seems like a bug. I thought hmm, maybe the disconnect usb near clock might do the trick to fix the problem but it doesn't. My pc is a slave to whenever my driod syncs the two.
Click to expand...
Click to collapse
I find that MTP is slow to show updates to sdcard. Same for Asus TF101. So may be it is the design or problem of MTP, something to do with MTP cache update?

[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

What is the purpose of symlinks?

I've done some googling and I still don't understand the purpose of symlinks.
Is this user's comments correct? (link to post below)
http://forum.xda-developers.com/showpost.php?p=35147667&postcount=4
In this case, it's symlinked because of legacy reasons.
Android 4.2 introduced multiple users(on tables, but they use the same model for phones). Every user has a separate SDcard folder. The first user gets 0, the second gets 10(don't ask why). This means that in the root of your sdcard contains a folder 0 and a folder 10.
Because some apps don't use proper API's to retrieve the external storage folder, but instead they just use '/sdcard'. If Android didn't use symlinks to mount '/sdcard' to 'SDcard/0', those apps would write into the wrong folder. For example, if a music app did this, both users would have the same music(since the app reads from/writes to sdcard instead of sdcard/0 or sdcard/10). Or even worse, trusted documents could be accessible to all users, instead of just one.
So, symlinks can be used for legacy reasons. But they can also be used for convenience. If you need to have one file at two locations, you could simply copy the file and put it in both locations. But if one of the two changes, the other one isn't. They're not linked together, they're just 2 separate files.
But if you use symlinks instead of copying, there is just one file, and one symlinks which points to the original file. If the file changes, the symlink will point to the changed data.
That's a good point on the API and multi-user account.
I have some specific questions. There are two directories in my not rooted Nexus 7. Storage/emulated/legacy and storage/emulated/0
I'd like to know what is the purpose of creating these symlinks? Is it somehow related to managing multiple user accounts?
Using my file manager it is all very strange to me. There is an emulated folder and a legacy folder in the storage folder. But in the emulated folder, there is the 0 folder and the legacy folder. Legacy folder is also found in mnt and root. All folders mentioned except for emulated, leads to where all my data is stored.
I see no purpose of having the legacy folder in more than one place.
So legacy is a symlink to sdcard? And emulated/0 is a symlink to legacy?
poetryrocksalot said:
That's a good point on the API and multi-user account.
I have some specific questions. There are two directories in my not rooted Nexus 7. Storage/emulated/legacy and storage/emulated/0
I'd like to know what is the purpose of creating these symlinks? Is it somehow related to managing multiple user accounts?
Using my file manager it is all very strange to me. There is an emulated folder and a legacy folder in the storage folder. But in the emulated folder, there is the 0 folder and the legacy folder. Legacy folder is also found in mnt and root. All folders mentioned except for emulated, leads to where all my data is stored.
I see no purpose of having the legacy folder in more than one place.
Click to expand...
Click to collapse
storage/emulated/0 is specific for the first user, but storage/emulated/legacy is probably for some legacy reasons. Essentially they point to the same storage, but it's probably cleaner for development purposes(when they decided to create those symlinks). I'm not sure why they decided to do this, but they probably thought is was better for some reason.
poetryrocksalot said:
I hope this is partially correct.
We want to mount /sdcard to sdcard/0 or sdcard/10, depending on the current user.
We can't symlink /sdcard to /0 or /10, because is a subdirectory and is not the same as mounting. You can mount /sdcard to multiple directories but only one at a time. You can symlink /sdcard to only one directory. But /sdcard is the real directory so we don't want it to be a symlink.
storage/emulated/legacy is symlinked to /sdcard. And storage/emulated/0 is symlinked to storage/emulated/legacy with the primary account active. There has to be the legacy directory served as a symlink because of the fact that the user folders 0 and 10 are subdirectories of the sdcard folder.
When we are mounting /sdcard to sdcard/0, we are actually mounting legacy to sdcard/0
Because with my logic, if we mounted /sdcard to sdcard/0 then /sdcard would lose its contents which includes the subdirectory 0. Therefore we would be mounting an empty media.
LOL all this is confusing but I hope I get the general idea and some of it right.
Click to expand...
Click to collapse
You're partially correct. According to the link you provided in your first post, the (internal/external) sdcard is mounted at /data/media. This folder contains 0, 10, legacy and obb. Let's ignore the 'obb' folder. The /data/media folder is your internal sdcard(the /sdcard you were talking about). Depending on the current user, /sdcard is either /data/media/0 or /data/media/10. This way, we're not symlinking to a subdirectory(which is impossible), and the /sdcard folder actually contains data.
In addition, /storage/emulated is because we don't have a real sdcard, but we emulate one. Both the Nexus 7 and Galaxy Nexus only have internal storage, so we emulate the sdcard. Other devices with an SDcard probably also have /storage/emulatd, but that's because they both have an emulated sdcard and a real sdcard. The real sdcard will probably appear in /storage/sdcard1 (not sure about this).
Sounds like Google made it overly complicated for no reason.
tokuzumi said:
Sounds like Google made it overly complicated for no reason.
Click to expand...
Click to collapse
I disagree, it's pretty complicated, but building a system which is compatible with multiple users and multiple sdcard(internal and external) is complicated.
For most users, the current setup works great. Most users don't bother using a file manager since there's no need for it. There's an app for the downloads, and music/photos/video's are handled by the music and gallery apps. There is just a small portion of users actually using a file manager.
Its purpose is to have a file or directory in multiple places at the same time.

[Q] [Help] Omni Rom 4.4.2 kitkat 20140303 taking too much Flash memory

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.

Categories

Resources