Jesse Guardiani wrote:

> Howdy list,
> A co-worker of mine has a neat little usb pen drive.
> I set it up properly in /etc/usbd.conf with this
> entry:
> -----------------------------------------------------
> # The entry below mounts Todd's Pendrive when the Pendrive is plugged in.
> # It then umount's the Pendrive when the device disappears.
> #
> device "pendrive"
>         devname "umass[0-9]+"
>         attach "sleep 1 && /sbin/mount /home/todd/pendrive"
>         detach  "/sbin/umount -f /dev/da0s1 /home/todd/pendrive"
> -----------------------------------------------------
> And it's set up in fstab with this entry:
> -----------------------------------------------------
> /dev/da0s1              /home/todd/pendrive     msdosfs rw,noauto       0 
>      0 -----------------------------------------------------
> But, the problem with all of the above is that
> the detach command doesn't work because the device
> is already removed before it can run umount!
> Frequently, I've found myself with two pendrives
> mounted:
> -----------------------------------------------------
> /dev/da0s1    122M    43M    79M    35%    /usr/home/todd/pendrive
> /dev/da1s1    122M    43M    79M    35%    /usr/home/todd/pendrive
> -----------------------------------------------------
> But the first one is a ghost, and if either are umount'd,
> my kernel panics and my system reboots!
> Is there a way to reliably umount an already disconnected
> umass0 SCSI-2 device?

I'm guessing from the silence that this is a negatory.

Perhaps this has something to do with the fact that the umass device
is created first, and then the da SCSI device is emulated off of that?

Still, you'd think the programmer would have built some fool-proofing
into the driver, especially once you consider the highly hot-pluggable
nature of USB...


Looks like usbd or the umass driver need some work.

Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)

[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to