I'm wondering if anyone has tackled the issue of having a USB flash drive automatically mount to the file system when it is inserted? I can do this manually easily enough by:
mkdir /mnt/usbflash mount /dev/sda1 /mnt/usbflash To make this mount occur automatically, I believe that I need to use autofs to do this, but if that's wrong I'd like to know. Using autofs, here is what I did... I inserted the following into /etc/auto.master: /mnt/usbflash /etc/auto.usbflash --timeout=30 --ghost I inserted the following into /etc/auto.usbflash: usbflash -fstype=auto,sync :/dev/sda1 I then: mkdir /mnt/usbflash /etc/init.d/autofs restart and this appeared to work. But for some reason, the directory /mnt/usbflash is then deleted. And inserting the USB stick does not force an automatic mount. Any suggestions?
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
