BJ, Some basics: have you made sure to turn on Hotplugging
(CONFIG_HOTPUG) in kernel and made udev your hotplugging userland
helper? (pointing it in /proc/sys/kernel/hotplug)? 

Thanks,
Sekhar

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
Behalf
> Of BJ Opp
> Sent: Wednesday, December 05, 2007 3:47 AM
> To: Friedland, David
> Cc: [email protected]
> Subject: RE: Automounting USB Sticks
> 
> 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.
> 
> -BJ
> 
> On Mon, 2007-12-03 at 18:18 -0600, Friedland, David wrote:
> > BJ,
> >
> > I think you're on the right track, but I still don't have it
working.
> > I'll keep working on this issue and I'm checking with some others in
> > TI to see if they can shed any light on this.  I'll let you know if
I
> > make any progress.
> >
> > Dave
> >
> >
> >
______________________________________________________________________
> > From: BJ Opp [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 30, 2007 9:31 AM
> > To: Friedland, David; [email protected]
> > Subject: RE: Automounting USB Sticks
> >
> >
> >
> > I've also been fighting with automounting a usb flash drive without
> > much success.  We've been trying to use udev by adding this line to
> > fstab
> >
> > /dev/sda1          /mnt/usbflash     auto      auto,user           0
> > 0
> >
> >
> >
> > And also adding this to a rules a file we created in
> > in /etc/udev/rules.d/ by the name of 99-mount.rules
> >
> >
> >
> > SUBSYSTEM=="block", SYSFS{manufacturer}=="LEXAR", RUN+="/bin/mount
-a"
> >
> >
> >
> > For this line I've also tried different device types such as
> > BUS=="usb" but still nothing.  I know my fstab entry is correct
> > because after logging in I can do a "mount -a" and the drive will
get
> > mounted.  Any ideas? Thanks
> >
> >
> >
> >
> >
______________________________________________________________________
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Friedland, David
> > Sent: Tuesday, November 27, 2007 5:20 PM
> > To: [email protected]
> > Subject: Automounting USB Sticks
> >
> >
> >
> >
> > 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
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to