[Q] How to modify sdcard mount script?

mitchelln

Senior Member
Jan 13, 2011
358
48
0
Hi.

As so many apps still don't support card locations other than /mnt/sdcard, I manually run as root the following to mount /Removable/MicroSD off /mnt/sdcard

mount -o bind /Removable/MicroSD /mnt/sdcard/MicroSD

This works great. Non /Removable aware apps then pick up files on the Transformers sdcard slot.

However, I'd like to automate this. Anyone know how I would do this? I guess a tweak to the android equivalent fstab file?

Thanks!
 

kbrabble

Senior Member
Dec 2, 2009
85
23
0
I have been looking for a solution for this, and found an older thread here on XDA with several methods.

I used root explorer to modify the mount point in /etc/vold.fstab
Just change the mount point from /Removable/MicroSD to /mnt/sdcard/MicroSD and reboot.

This seems to work great so far, but I have only been using this for a couple of hours. Don't forsee any problems though.

Sent from my Transformer TF101 using Tapatalk
 
Last edited:

mitchelln

Senior Member
Jan 13, 2011
358
48
0
I have been looking for a solution for this, and found an older thread here on XDA with several methods.

I used root explorer to modify the mount point in /etc/vold.fstab
Just change the mount point from /Removable/MicroSD to /mnt/sdcard/MicroSD and reboot.

This seems to work great so far, but I have only been using this for a couple of hours. Don't forsee any problems though.

Sent from my Transformer TF101 using Tapatalk
Thanks for that. I'll give it a go! :)
 

mitchelln

Senior Member
Jan 13, 2011
358
48
0
Hmm, this seems to cause a force close when you eject the card. It then also fails to mount the first 2-3 times when you plug the card back in.

I guess some Asus service is relying on the card being at /Removable

There must be a way to autorun a mount -bind somehow?
 

lordgodgeneral

Senior Member
Dec 14, 2010
386
55
0
Have you also tried hooking up to your computer, as I know on some devices changing the mount points to nested like that would screw up the process for mounting to the computer properly.
 

kbrabble

Senior Member
Dec 2, 2009
85
23
0
I haven't experienced any force closes, or any problems mounting the card when reinstalled. As far as mounting on the computer, I have not tried. I agree that a -bind would be the best way, but haven't found a way to do this at boot yet.

Sent from my Transformer TF101 using Tapatalk