Hi,
I'm wondering if anyone has definitively solved the issue of having a USB flash
drive automatically mount to the file system when it is inserted?
To do this manually is quite simple:
mkdir /media/usbflash
mount -t vfat /dev/uba1 /media/usbflash
I wish to make this mount occur automatically every time the stick is plugged
in.
I did check .config to see if "CONFIG_HOTPLUG=y": it is.
In /etc/fstab I put the following line:
none /proc/bus/usb usbfs defaults 0 0
but it is not sufficient.
Tanks a lot
Gabriele
An update on the situation, I?ve gotten the usb flash drive
automounting, but only if I have it plugged in to the unit during
bootup. I can?t get it to automount using hotplug or anything else.
The way I have my fstab and udev mounting happening is the following:
udev/rules.d/99-mount.rules :
BUS=="usb", SYSFS{product}=="JD FIREFLY", KERNEL=="sd?1", NAME="lexar",
SYMLINK="usbdevices/lexar", RUN+="/usr/local/bin/mountlexar.sh"
fstab:
/dev/sda1 /media/LEXAR vfat
rw,nodiratime,sync,nosuid,nodev,noexec,fmask=0033,dmask=0033 0 0
I think I may have moved around the initialization scripts
within /etc/rc.d/rcS.d to make the mountall script run after all the
udev stuff but I can't quite remember. I tried lots of things before
this one finally worked. Good luck, and if i manage to figure out the
hotplug mounting I'll be sure to post it.
I did check .config to see if "CONFIG_HOTPLUG=y": it is.
Checking /proc/sys/kernel/hotplug is a good idea: it contains
"/sbin/udevsend", which is what I would expect to see.
And also, the udevd daemon is indeed running.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Ing. Gabriele Filosofi
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
COSMED srl, R&D Department
P.O. Box 3
Via dei Piani di Monte Savello, 37
00040 - Pavona di Albano, Rome - ITALY
Voice: +39-06 931 5492, Fax: +39-06 931 4580
http://www.cosmed.it<http://www.cosmed.it/>
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source