Ok I know the files in /storage/emulated are symlinks to the /data/media folder.
After playing with some roms etc I noticed I have both /storage/emulated/legacy and /storage/emulated/0 pointing to the main /data/media folder.
I'm on CM 10.1 latest nightly atm and loving it for some stuff like expanded desktop.
In adobe reader etc it shows a 2 sets of files from /storage/emulated/legacy and /storage/emulated/0 which is annoying to see 2 sets of all my pdf's.
So whats the right way to get this sorted out so apps will only show 1 copy of everything?
Related
I was wondering how to link .dex files from Dalvik-cache to other locations. Let me explain.
Many ROMs and Kernels move the dalvick-cache to the /cache mount. From what I can tell, this is done by linking the directory from /data to /cache. I was having a problem running out of space in /cache, so I moved it back to /data and moved all my apps to an external mount with apps2sd.
I only have a class to SD card, and would really like to move as much back to main memory as possible, so I would like to select some .dex files to link to the /cache mount. I tried moving the file and creating a symbolic link, but this did not work - the app just crashed when run.
I have tried the link2sd app, but that only allows you to move the files to the card too. These also look like standard symbolic links, so I am not sure why what I am trying is not working.
Any ideas?
I (along with other people) find it weird that Asus chose to mount the sdcard to /Removable/MicroSD instead of the traditional /mnt/sdcard.
I would like Titanium Backup to store the files on my sdcard instead of the internal memory, but the problem is that TI only checks the /mnt/sdcard directory. So in my infinite geek knowledge I had the idea to symlink /Removable/MicroSD/TitaniumBackup to /mnt/sdcard/TitaniumBackup. The problem is that FAT32 doesn't support symlinks, so I formatted the sdcard to NTFS and popped it back in but it wouldn't mount it, which I realized was because it doesn't have the NTFS modules. So I popped it back out and formatted it as ext2, but it still wouldn't mount automatically and I couldn't mount it manually because I didn't know what the device name was.
Anyone have any solutions?
You can try ask the developer of TitaniumBackup to include support for asus TF.
Obviously I already did that but I'm looking for a fix on my end.
As with most other tablets, the internal SD is mounted to mnt/sdcard so external SD has to be mounted elsewhere.
As far as TB goes, you can choose where to store backups. Have currently got it setup to backup to Removable/MicroSD/TitaniumBackup
EDIT: If you go into TB preferences menu, scroll down to Backup folder location, then press the Back icon (the system one) to get back to the root folder. Then you can choose the Removable/MicroSD/ folder. Click on "create a new folder", call it what you want, then open that folder. Click the "Use current folder" button and there you go...Backup folder on external SD!
Took me a while to realise that the back icon took you back up the folder tree, rather than closing the folder location window!
It would be nice if we could get a custom mount script or something that would mount the sdcard to something like /mnt/sdcard/music. I'd love to have my music synced to card and everything else stored internally...
fisha21 said:
EDIT: If you go into TB preferences menu, scroll down to Backup folder location, then press the Back icon (the system one) to get back to the root folder. Then you can choose the Removable/MicroSD/ folder. Click on "create a new folder", call it what you want, then open that folder. Click the "Use current folder" button and there you go...Backup folder on external SD!
Took me a while to realise that the back icon took you back up the folder tree, rather than closing the folder location window!
Click to expand...
Click to collapse
Thanks! Thats what I needed to know, I was thinking its kind of stupid that they only have a "detect" button.
brando56894 said:
I (along with other people) find it weird that Asus chose to mount the sdcard to /Removable/MicroSD instead of the traditional /mnt/sdcard.
I would like Titanium Backup to store the files on my sdcard instead of the internal memory, but the problem is that TI only checks the /mnt/sdcard directory. So in my infinite geek knowledge I had the idea to symlink /Removable/MicroSD/TitaniumBackup to /mnt/sdcard/TitaniumBackup. The problem is that FAT32 doesn't support symlinks, so I formatted the sdcard to NTFS and popped it back in but it wouldn't mount it, which I realized was because it doesn't have the NTFS modules. So I popped it back out and formatted it as ext2, but it still wouldn't mount automatically and I couldn't mount it manually because I didn't know what the device name was.
Anyone have any solutions?
Click to expand...
Click to collapse
What? You're doing it backwards!
If TI is writing to /mnt/sdcard/TitaniumBackup, but you want it to write to /Removable/MicroSD/TitaniumBackup instead, then /mnt/sdcard/TitaniumBackup should be the symlink, pointing to a directory on the SD card!
The target's filesystem doesn't matter (fat32), only the source's (i.e. ext4 on the internal storage).
Good catch, either way it doesn't matter now because I don't need symlinks since I know how to do it in TB now.
So yes, I know /sdcard is a symlink to /mnt/sdcard. But, I am baffled as to why when I go into /sdcard there is a voodoo log folder and not my sdcard data. And I've tried deleting /sdcard and creating a new symlink but rebooting into cwm, it couldn't see /sdcard still and then when I booted back up, the voodoo stuff was back!
Any ideas?
I noticed the following post, which does not answer my question:
http://www.droidforums.net/forum/motorola-droid/67790-difference-between-mnt-sdcard-sdcard.html
There it is said that these two folders are the same. But this does not explain what I experienced.
In the "Gallery" program I see two folders named "Camera". One includes all the photos, while the other includes only one photo (let me call it photo A). Photo A has a counterpart (photo B) in the folder which contains all the photos; that is, photo A and photo B look the same and they have the same file names.
Then I checked the properties of the two photos. Photo B is stored in /mnt/sdcard/DCIM/Camera, while photo A is stored in /sdcard/DCIM/Camera.
At first I thought the two files may actually point to the same place in the sdcard. However, after I deleted Photo A, photo B is still there.
So it seems that the two folders /mnt/sdcard/ and /sdcard are not the same. However, they do look the same with any file explorers.
I am confused by this. Or maybe it is caused by some weird behaviors of the Gallery program?
In a quick attempt to answer your question
/sdcard/ is your internal storage
whilist
/mnt/sdcard should be your external storage.
In any event, someone will correct me if I'm wrong. Which I have known to be on the other occasion when I wasn't right
If you moved your SD card from one phone into the Note, you may see this behavior. A quick way to see what is mounted is to get into a shell (terminal app or adb shell) and run df. That will show you what is mounted and where.
On my Note, /sdcard is a link to /mnt/sdcard as shown by ls -l /
I'm not familiar at all with how android handles the external SD card, but it gets mounted at /mnt/sdcard/external_sd
[edit]Here's how it's being handled.[/edit]
I am a big fan of books. This is why I have a nook simple tablet. But after being introduced to Overdrive, which I am sure at least one of you has heard of (Googie), I want to be able to download ebooks from overdrive. The only problem is, I would need an external storage device to save these from opera mobile. This is a bit unsettling, seeing as I don't have a micro sd card. (don't ask.)
So, my question is, is there a way to fool the nook into thinking an sd card is inserted?
Thanks in advance!
Since sdcard is mounted under /sdcard directory, I believe mounting (binding) a directory under writeable partition (e.g. /data/sdcard) to /sdcard might be enough.
May need to also link to /data/sdcard as well as the /sdcard. This can be done with symlinks or mounting. Ie mount said partition to /data/sdcard then symlink from /data/sdcard to /sdcard. Though the /sdcard symlink may already be there
Sent from my ADR6300 using Tapatalk
How would one do this? I just recently adopted android and I do not know much.
it might require modifications to the ram disk within the boot.img. or possibly using ln -s /data/sdcard /sdcard after boot is completed in a terminal. You may need to delete the /sdcard dir first and set proper permissions
Looking in a terminal you will need to symlink the emmc(internal memory) to /data/sdcard. ln -s <emmc dir> /data/sdcard. You may need to delete the /data/sdcard dir first.
Sent from my ADR6300 using Tapatalk
Hmm...
I'm just going to get an sd card. Thanks anyway, it's interesting to know you can do that.