From owner-freebsd-questions@FreeBSD.ORG Tue May 9 13:12:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 191E616A401 for ; Tue, 9 May 2006 13:12:14 +0000 (UTC) (envelope-from lists@webtent.net) Received: from genoa.webtent.org (static-70-110-70-42.tampfl.fios.verizon.net [70.110.70.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD1A243D45 for ; Tue, 9 May 2006 13:12:13 +0000 (GMT) (envelope-from lists@webtent.net) Received: from columbus.webtent.org (columbus.webtent.org [192.168.1.25]) by genoa.webtent.org (Postfix) with ESMTP id F179C8A01F; Tue, 9 May 2006 09:12:12 -0400 (EDT) From: Robert Fitzpatrick To: Joerg Pernfuss In-Reply-To: <20060509020053.00b14888@loki> References: <1147131644.31831.29.camel@columbus.webtent.org> <20060509020053.00b14888@loki> Content-Type: text/plain Date: Tue, 09 May 2006 09:12:12 -0400 Message-Id: <1147180332.31831.46.camel@columbus.webtent.org> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Auto mount/unmount USB hard drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2006 13:12:14 -0000 On Tue, 2006-05-09 at 02:00 +0200, Joerg Pernfuss wrote: > On Mon, 08 May 2006 19:40:44 -0400 > Robert Fitzpatrick 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