Auto mounting external sd card

149 views
Skip to first unread message

Tom Johnson

unread,
Sep 17, 2013, 10:13:15 AM9/17/13
to android-...@googlegroups.com
I'm trying to get my sdcard to automount on my nexus 10 through USB OTG cable.  I can manually mount it and it works. Here is what I have setup so far. Is there anything else I need to do? I manually mount it like "mount -t vfat /dev/block/sda1 /mnt/usbdisk"


init.manta.rc
    # usb usb sd card
    export SECONDARY_STORAGE /storage/usbdisk0
    mkdir /storage/usbdisk0 0666 system system

    symlink /storage/usbdisk0 /usbdisk
    symlink /storage/usbdisk0 /mnt/usbdisk


vold.fstab
dev_mount usbdisk /storage/usbdisk0 auto /dev/block/sda1


gup...@gmail.com

unread,
Sep 18, 2013, 9:18:33 AM9/18/13
to android-...@googlegroups.com
Dear Tom,

Have you updated storage_list.xml

Tom

unread,
Sep 18, 2013, 10:01:31 AM9/18/13
to android-...@googlegroups.com
Which one should I update? I see under device and under frameworks.


--
You received this message because you are subscribed to a topic in the Google Groups "android-platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-platform/1ba3J28ztJA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/groups/opt_out.

Boyan Vladinov

unread,
Sep 19, 2013, 3:12:49 AM9/19/13
to android-...@googlegroups.com
Update this one in device. In Android JB there is overlay directory which overwrites the content from frameworks/base

Tom

unread,
Sep 19, 2013, 8:10:10 AM9/19/13
to android-...@googlegroups.com
I have a question about the vold.fstab file . On the last parameter I need  sys filesystem path? If so, then I see lots of paths from udev events when I plug in usb SDCard. Which one do I use?
 


rishi gupta

unread,
Sep 19, 2013, 1:11:12 AM9/19/13
to android-...@googlegroups.com
Dear Tom,

Under device, if storage_list.xml is in overlay directory, modify that only.
If not overlay directory then, modify the one in framework.
This file is bridge between vold and Android platform.
Reply all
Reply to author
Forward
0 new messages