Why do the emulated and sdcard0 have the same files in each?
Sent from my SM-N900T using Tapatalk now Free
??
Sent from my SM-N900T using Tapatalk
re: emulated/sdcard0
chrisa887 said:
Why do the emulated and sdcard0 have the same files in each?
Sent from my SM-N900T using Tapatalk now Free
Click to expand...
Click to collapse
Use /sdcard (or /storage) like it should be used and do not copy/rename/delete anything in the /data/media folder.
Anywhere else where you see the same files and folders are just a symbolic link to the actual mount located in /mnt
so all is fine there. Just ignore the emulated and sdcard0 or any other locations which points to you internal sdcard.
All this has to do with the new file structure which has options for multi-users on the phone.
Good luck!
For compatibility reasons they mount the sd card in multiple places. /sdcard, /mnt/sdcard, and now /storage/sdcard0 all point to the same location. Same with /external_sd, /mnt/external_sd, /storage/sdcard1. Old apps often hard-code the /sdcard/... path so that mountpoint (technically symbolic link) is kept around for those apps. The /mnt/ folder is where drives are typically mounted on traditional Linux systems so they moved mountpoints there, then storage was added in either 4.0 or 4.1 can't remember as a place to combine all the automounted devices into one location.
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
I see. Just looked wierd for a second lol
Sent from my SM-N900T using Tapatalk
So when aosp comes, will it make another 0 folder like it does on 4.2?
Sent from my SM-N900T using Tapatalk
Related
What's the difference in how these locations are treated??
I noticed I couldn't delete certain files from /sdcard, but was able to when I went to data/media.
Also a ringtone created doesn't show when browsing sdcard, but it's there when i look in data/media
I believe /sdcard is just a symlink to /data/media, but the OS seems to treat it slightly differently. The file permissions appear different depending on which path is used to browse the files. It could be something related to backwards compatibility with apps that expect a physical SD card formatted for a file system that doesn't support permissions.
Sent from my Galaxy Nexus using Tapatalk
Anyone noticed that we now have a /sdcard and a new /storage/sdcard0/
What's up with that
Sent from my Gnex {GSM}
We heard you like Memory.
so we put your SD-Card into your Internal Storage.
/sdcard is a symbolic link to /storage/sdcard0
Essentially, they're the same thing (your internal storage) referenced in two different places. This is likely for backward compatibility to anything looking for "/sdcard".
Cilraaz said:
/sdcard is a symbolic link to /storage/sdcard0
Essentially, they're the same thing (your internal storage) referenced in two different places. This is likely for backward compatibility to anything looking for "/sdcard".
Click to expand...
Click to collapse
is the data taking space multiple times? i have the same files in 3 different places
/sdcard
/storage/sdcard0
/mnt/sdcard
others have said they have the same files in /data - but i have nothing at all in that folder
how do i know which is the real one? i'm so confused i only saw mention of it today around the forums and have searched and read, but nothing is making sense to me (and you seemed like a nice fella to ask)
n7of9 said:
is the data taking space multiple times? i have the same files in 3 different places
/sdcard
/storage/sdcard0
/mnt/sdcard
others have said they have the same files in /data - but i have nothing at all in that folder
how do i know which is the real one? i'm so confused i only saw mention of it today around the forums and have searched and read, but nothing is making sense to me (and you seemed like a nice fella to ask)
Click to expand...
Click to collapse
No it's not taking multiple space. The partition was changed in jb so this is essentially guiding apps which have not been updated to jb source a path way to typical information found on the sd card to essentially work or be backwards compatible
Sent from my Galaxy Nexus using xda premium
craigbailey1986 said:
no it's not taking multiple space.
Click to expand...
Click to collapse
thank you
craigbailey1986 said:
No it's not taking multiple space. The partition was changed in jb so this is essentially guiding apps which have not been updated to jb source a path way to typical information found on the sd card to essentially work or be backwards compatible
Click to expand...
Click to collapse
As stated here, /sdcard and /mnt/sdcard are essentially just pointers to /storage/sdcard0. An app tells the phone "hey, I'm looking for /sdcard!", and the phone lets the app use /sdcard, while writing the data to /storage/sdcard0.
I believe that some people are having a problem with the change from ICS to JB. From what I understand (I'm a new Nexus user, so I went straight to JB), ICS stored sdcard data at /data/media and had /sdcard point to it. So apparently some people are having problems with JB not looking for any data there, and instead looking in the new location, /storage/sdcard0. The data likely still exists in the old location, but since the pointer changed it isn't being referenced.
I noticed this, but my Play Music app hasn't, it cant find half my music. I have been using DoubleTwist and it has all my music. You would think that the Google apps would be the first apps updated to work.
I had this sdcard too and I though sdcard0 was the symlink. This thread cleared it up for me, thanks!
Toxina said:
We heard you like Memory.
so we put your SD-Card into your Internal Storage.
Click to expand...
Click to collapse
So I can store data as I store data?
Sent from my Galaxy Nexus using Xparent Green Tapatalk 2
Hi everyone!
I originally installed TWRP when I rooted today, but when I went to install and internal sdcard, nothing is there. However, everything else is there on CWMR. Is there something I'm missing here? thanks!
~bump
It's located weirdly under /data/media and NOT under /sdcard .
Yes I thought same thing but for some reason it list all of internal card folders and files at /data/media.
The ext SD card shows normal when on it though
Sent from my SGH-I747M using xda premium
Technically /data/media is normal. If you navigate to that when you are in Android you will still end up at your internal memory. All the other mounts you are used to (/mnt/sdcard) are only symlinks.
Sent from my SGH-I747 using xda premium
d3athsd00r said:
Technically /data/media is normal. If you navigate to that when you are in Android you will still end up at your internal memory. All the other mounts you are used to (/mnt/sdcard) are only symlinks.
Sent from my SGH-I747 using xda premium
Click to expand...
Click to collapse
Yeah that's right...forgot about that. Technically the sdcard card space that we view as our personal internal storage is merely a symlink for the android os. Makes sense now. Thanks
Sent from my SGH-I747M using xda premium
read a lot of threads said that it is impossible to recovery the data as N7105 only support MTP mode while not UMS mode.
but i am thinking, if it is possible to have a apps/ adb shell command that can copy the entire internal storage bit by bit to a external device ( like external sdcard or even a pc using a usb cable). so that i could run data recovery program from that image copied bit by bit?
Enable usb debugging in dev options.
This would mount the external and internal storage that is rhe /data/media and not /data.
Sent from my GT-N7100 using xda app-developers app
UtkarshGupta said:
Enable usb debugging in dev options.
This would mount the external and internal storage that is rhe /data/media and not /data.
Sent from my GT-N7100 using xda app-developers app
Click to expand...
Click to collapse
problem is, it does not matter if it can mount both external and internal storage, because if it is in MTP mode
there are no any data recovery program can detect the drive
just read that adb shell dd command might be able to do the job.
but as i wanted to copy the entired storage
is it possible that there are a dd command which can output the file to pc directly?
I had the same problem. Then I gave up
Sent from my GT-N7100 using xda app-developers app
i have read many cases but with same fate as utkarsh said 'gave up'
Edit:
There is appl in play store, which can recover, but supports only Fat partition
So try getting your device to format in fat32 still can be help, but really i don't know how
Just i have read some command can remove your partition and you can create it to fat, later formating it again make it exfat
though everything is just assumption and idea, if you want to be creative read and collect information. it will never been risk free.
Found this
http://forum.xda-developers.com/showthread.php?t=2140410
Sent from my GT-N7100 using xda app-developers app
---------- Post added at 11:11 PM ---------- Previous post was at 11:10 PM ----------
I know the app you are talking about. But it only supports external sdcard.
Sent from my GT-N7100 using xda app-developers app
Yeah that's why i said it support fat partition.
But link you have attached is interesting.
Sent from my GT-N7100 using xda premium
I have been on Liquidsmooth for a while, and switched to Infamous Lite from Liquidsmooth rc2. After playing around with it I tried to nandroid back to Liquidsmooth rc1 and everything went well, except it seems like my internal storage got wiped along with my Titanium Backup and a lot of other things. Is there any way to recover these things?
If you didn't wipe it, then I'm sure your files are still there. Use a file explorer to look around in your folders.
I am looking around, and I see storage, emulated, sd1, sd0, and all of them have the same files and not the ones that I had on my phone before.
Check the 0 folder?
Sent from my SCH-I535 using xda app-developers app
I checked the emulated folder, sdcard0, sdcard1, usbdisk0, and all of them are the same as the sdcard folder. I know my files need to be somewhere, 1.6GB of my internal storage is being used. I just can't see any of the files :/
ticholas said:
Check the 0 folder?
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
This IS the correct answer, it creates a 0 directory, files are there....
Same happen to me. Flash back to a tw rom and they should come back
Sent from my SGH-T999 using xda premium
Yes I flashed touch wiz and they came back and I copied them to my desktop. Should I just wipe internal storage and then copy everything back to my phone to free up that space?
Sent from my SGH-T999 using xda app-developers app
toobz said:
Yes I flashed touch wiz and they came back and I copied them to my desktop. Should I just wipe internal storage and then copy everything back to my phone to free up that space?
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
There is a folder called "0" that contains all of your files on certain ROMs. It happened to me too. I wouldn't worry about it too much but if you want to clean it up, go for it.
Yeah I found 0, it does not contain everything unfortunately. If I wipe internal storage does my rom get wiped out too? I think my twrp has a wipe internal button.
Sent from my SGH-T999 using xda app-developers app
toobz said:
Yeah I found 0, it does not contain everything unfortunately. If I wipe internal storage does my rom get wiped out too? I think my twrp has a wipe internal button.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
If you wipe internal, it deletes everything on the device except the external SD card, yes.
If you do this, I would remove your SD card just to be on the safe side. Things go wrong sometimes as you've unfortunately found out with the data loss.