Date: Tue, 09 May 2006 09:12:12 -0400 From: Robert Fitzpatrick <lists@webtent.net> To: Joerg Pernfuss <elessar@bsdforen.de> Cc: freebsd-questions@freebsd.org Subject: Re: Auto mount/unmount USB hard drive Message-ID: <1147180332.31831.46.camel@columbus.webtent.org> In-Reply-To: <20060509020053.00b14888@loki> References: <1147131644.31831.29.camel@columbus.webtent.org> <20060509020053.00b14888@loki>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2006-05-09 at 02:00 +0200, Joerg Pernfuss wrote: > On Mon, 08 May 2006 19:40:44 -0400 > Robert Fitzpatrick <lists@webtent.net> wrote: > > > I have a USB hard drive mounting and working fine. I have the > > following entry in /etc/fstab that allows it to work on boot. The > > device loads as /dev/da4. But if I disconnect without unmounting the > > device, it detaches, but when plugged back in, it receives a new > > device as /dev/da5, which is not what is in fstab of course, yada, > > yada, yada. Is there a way I can get it to automatically > > mount/unmount the drive while working under the same device id as I > > unplug and plug back in? > > > > /dev/da4s1 /mnt/usb msdos rw,noauto 0 0 > > If the msdosfs has a label, you could load geom_label.ko and use sth > like > > /dev/msdosfs/usbdisk /mnt/usb msdos rw,noauto 0 0 > Sorry for the direct message Joerg, I am resending this to the list. Thanks, but how do I label the msdosfs? I assume something similar to tunefs for UFS, but I don't see a label option for msdosfs. -- Robert
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1147180332.31831.46.camel>