Re: Can usb thumb disk be auto-mounted?

39 views
Skip to first unread message

Sriram Rangan

unread,
Sep 25, 2012, 10:56:24 PM9/25/12
to panda...@googlegroups.com
Hi,
I think you have to add the entry to /etc/fstab

On Monday, 24 September 2012 15:50:27 UTC+5:30, Ping-Chu Hung wrote:
Hello, everybody.

What should I do to make usb thumb disk can be automounted?

I tried to add 
    mkdir /usbdisk 0050 system sdcard_r
    mount -t vfat /dev/block/sda/sda1 /usbdisk
in  init.omap4pandaboard.rc , but it doesn't work.

I tried to add
    /dev/block/sda/sda1  /usbdisk  vfat    rw   wait
in fstab.omap4pandaboard, but it still doesn't work.

Does anyone know how to do?

--
P.C Hung

dmitry pervushin

unread,
Sep 26, 2012, 7:18:31 AM9/26/12
to panda...@googlegroups.com
Hello,

The issue probably is that you're tring to mount the drive too early -
the device on the usb bus is not ready yet (IOW, the USB has not
announced it yet to the block subsystem).
So, I would suggest to mount the usb drive via vold - add something like
this line to your /system/etc/vold.fstab:
dev_mount USB /usb auto /devices/platform/ehci-omap.0/usb1/1-2/1-2:1.0/host0

Here this problem was discussed too:
http://e2e.ti.com/support/embedded/android/f/509/t/128607.aspx
http://e2e.ti.com/support/embedded/android/f/509/p/119138/438264.aspx
--
Sincerely yours,
dmitry pervushin

Reply all
Reply to author
Forward
0 new messages