From owner-freebsd-questions@FreeBSD.ORG Tue May 22 18:42:11 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FA6416A468 for ; Tue, 22 May 2007 18:42:11 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id CE96F13C46E for ; Tue, 22 May 2007 18:42:10 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so302852ugh for ; Tue, 22 May 2007 11:42:09 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IWrvOeGHV483qtjdTAU/ZeembTU+jBSxbXbTAn1IXmUMLtMowR14NYRmxFlFcDg397HWOgav0z5Sg7HY8EoF2aI07a6kbNkhmPdkrmc7U5q5qy0asNfhZamcIYhV+cRHIq7oSHDN51AWKU9n004AlUt3hktpXbm969n20D9hARU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UZ7MNnTSHx/3rhzp1p10NSVPgypn3i9CbGaCxjchyIGJioOessRB3/KPrhYTSKNGWpWOFG9ks5C3ol47ThtPSUDgcVd31U4Z4P0kQT9zn+cecF9K9+51+TjpckUR1hvqVNsZPUyHN/+KahgMWOehY/BvdiSthvRfJmQ3L8a6cho= Received: by 10.82.191.3 with SMTP id o3mr11471738buf.1179859329226; Tue, 22 May 2007 11:42:09 -0700 (PDT) Received: by 10.82.185.16 with HTTP; Tue, 22 May 2007 11:42:09 -0700 (PDT) Message-ID: Date: Tue, 22 May 2007 13:42:09 -0500 From: "illoai@gmail.com" To: "Kevin Downey" In-Reply-To: <1d3ed48c0705191728s54ef146do63d5186bcf8e9e8b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <464F6917.9080301@acm.org> <1d3ed48c0705191728s54ef146do63d5186bcf8e9e8b@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Assignment of device names to external USB drives 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, 22 May 2007 18:42:11 -0000 On 19/05/07, Kevin Downey wrote: > On 5/19/07, Denis Fortin wrote: > > Greetings, > > > > I am trying to set up a backup server, using a combination of internal > > and external (USB) disk drives. > > > > How can I manage the mapping of USB disk drives to device names? i.e. > > USB drives get assigned device names like da0, da1, da2... when they are > > detected. But if one of the drives fails or is not powered up, all > > other ones will get bumped down one in the list next time I reboot. > > > > The problem is that if I automatically "mount /dev/da0a > > /archive/volume1", "mount /dev/da1a /archive/volume2", etc. I run the > > risk of having the wrong disk being mounted on a mount point !?! > > > > Is there an obvious solution that I'm missing, or a canonical workaround > > to this problem? > > > > when you newfs a drive use the -L flag to give it a label like > 'VOLUME1' then if you load the geom_label module that drive becomes > availble under /dev/ufs/VOLUME1 Or, if instead of fdisk, you # glabel label disk0 da0 # bsdlabel -w label/fancy0 # newfs -U label/fancy0a # mount /dev/label/fancy0a /bla -- --