This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB auto mount of 2 USB storage

Hi All,

I am trying to mount two USB storage automatically when hotplugged. (ICS4.04 on omap4460 based board)

Made following changes to:

init.omap4board.rc 

           mkdir /mnt/usb_host1 0777 system system
           mkdir /mnt/usb_host2 0777 system system

vold.fstab

          dev_mount usbdisk1 /mnt/usb_host1 auto /devices/platform/omap/usbhs_omap/ehci-omap.0/usb1/1-1
          dev_mount usbdisk2 /mnt/usb_host2 auto /devices/platform/omap/usbhs_omap/ehci-omap.0/usb1/1-1

On plugging in two USB storage only one is getting mounted automatically. Other can be mounted manually though.

Am I missing something? Does vold has to be changed for this ?

Regards,

Krt

  • Hi Krt,

    For using two usb ports (if they are through a Hub from a single USB port of the controller), then vold.fstab should be as follows:

    vold.fstab

              dev_mount usbdisk1 /mnt/usb_host1 auto /devices/platform/omap/usbhs_omap/ehci-omap.0/usb1/1-1/1-1.1
              dev_mount usbdisk2 /mnt/usb_host2 auto /devices/platform/omap/usbhs_omap/ehci-omap.0/usb1/1-1/1-1.2

    you can observe the above two directories getting created under your sysfs tree on plugging in the device, and gettin gdeleted on removing the USB device.

    Regards,

    Umakanta Patro