From owner-freebsd-questions@FreeBSD.ORG Tue May 9 00:01:06 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 7B99716A401 for ; Tue, 9 May 2006 00:01:06 +0000 (UTC) (envelope-from elessar@bsdforen.de) Received: from postfix.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8BF043D45 for ; Tue, 9 May 2006 00:01:05 +0000 (GMT) (envelope-from elessar@bsdforen.de) Received: by postfix.bsdforen.de (Postfix, from userid 20000) id 684D06844BD; Tue, 9 May 2006 02:01:04 +0200 (CEST) Received: from localhost (postfix [127.0.0.3]) by postfix.bsdforen.de (Postfix) with ESMTP id 86FD66844B7 for ; Tue, 9 May 2006 02:01:03 +0200 (CEST) Received: from postfix.bsdforen.de ([127.0.0.3]) by localhost (postfix.bsdforen.de [127.0.0.3]) (amavisd-new, port 10024) with LMTP id 42347-06 for ; Tue, 9 May 2006 02:01:03 +0200 (CEST) Received: from loki (p549CEEFA.dip.t-dialin.net [84.156.238.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by postfix.bsdforen.de (Postfix) with ESMTP id D40D86844BC for ; Tue, 9 May 2006 02:01:02 +0200 (CEST) Date: Tue, 9 May 2006 02:00:53 +0200 From: Joerg Pernfuss To: freebsd-questions@freebsd.org Message-ID: <20060509020053.00b14888@loki> In-Reply-To: <1147131644.31831.29.camel@columbus.webtent.org> References: <1147131644.31831.29.camel@columbus.webtent.org> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_70SwkJbWtzrCsJXxsSTOFgQ; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Virus-Scanned: amavisd-new at bsdforen.de X-DSPAM-Result: Innocent X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 445fdbc0449817559915059 X-DSPAM-User: global 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 00:01:06 -0000 --Sig_70SwkJbWtzrCsJXxsSTOFgQ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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? >=20 > /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 --=20 | /"\ ASCII ribbon | GnuPG Key ID | e86d b753 3deb e749 6c3a | | \ / campaign against | 0xbbcaad24 | 5706 1f7d 6cfd bbca ad24 | | X HTML in email | .the next sentence is true. | | / \ and news | .the previous sentence was a lie. | --Sig_70SwkJbWtzrCsJXxsSTOFgQ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEX9u9H31s/bvKrSQRAtU9AJ9svZI7+GhXfGr6GKqLlYBuIoCbKQCbBGCr uHVhtXPtvYV2h3rIv8prq6w= =0zMT -----END PGP SIGNATURE----- --Sig_70SwkJbWtzrCsJXxsSTOFgQ--