From owner-freebsd-questions@FreeBSD.ORG Thu Jun 16 14:20:01 2005 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 07C4016A41C for ; Thu, 16 Jun 2005 14:20:01 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail27.sea5.speakeasy.net (mail27.sea5.speakeasy.net [69.17.117.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id D83D643D53 for ; Thu, 16 Jun 2005 14:20:00 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 7196 invoked from network); 16 Jun 2005 14:20:00 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail27.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 16 Jun 2005 14:20:00 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 7D69C2C; Thu, 16 Jun 2005 10:19:59 -0400 (EDT) Sender: lowell@be-well.ilk.org To: dave To: freebsd-questions@freebsd.org References: <000501c571eb$5bfb5b60$0200a8c0@satellite> From: Lowell Gilbert Date: 16 Jun 2005 10:19:59 -0400 In-Reply-To: <000501c571eb$5bfb5b60$0200a8c0@satellite> Message-ID: <44is0e9yeo.fsf@be-well.ilk.org> Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: usb2 external drive gets different designations X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2005 14:20:01 -0000 "dave" writes: > I've got a working usb2 external IDE hard drive running on a 5.4-stable > box. My problem is sometimes when i connect it it is given a designation of > da0 while other times it is given a designation of da1 or da2. I'd like to > create a fstab entry for this drive so that when it is connected it is > mounted and when disconnected it is unmounted cleanly. I was wondering if > this was possible or if not if there was a way of giving it da0 or da1 > everytime the drive was connected? That's possible, but I can't find the way to do it right now. You may find it easier to set up usbd.conf(5) to automatically mount the device when it's detected. Or, alternatively, to make a symbolic link from a constant name in /dev (which is pretty close to what you asked for originally). Be well. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/