From owner-freebsd-questions@FreeBSD.ORG Sun May 20 00:28:36 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 5203916A421 for ; Sun, 20 May 2007 00:28:36 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id E138A13C448 for ; Sun, 20 May 2007 00:28:35 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so650643ugh for ; Sat, 19 May 2007 17:28:34 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=njOB5tFMnUuEIZFabzaDrLZprgaLvoiuEyMrysGMKU/JBdxEvONhFmS9FW8VzfkG3JtVXw8OkHHmi1ams91K6WHIuvSN1YiLQ+63JDVM4Ug1B+GctEp+2au8vkHQoR0+4RzUpgZfVyHzGnmLz2hxuGe8g1Qli+tz3bBy5214idM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S3bVkaP/FZhi8FhRXf1CN54fqyTsPm6MLIp0LSQVGBLs3ilWy1I5Bt0hfu0msrMl9UidvxOJ2Q46Sppdqvj7bNAFfe0gF6GK6THlwpEnJ+O89TrhGL3emgKzLzFUjBh0EU7qqDGarFEOjcNUf6Wn/vN2ZuWLzT1wKyEgBMOgUxw= Received: by 10.67.93.7 with SMTP id v7mr2221058ugl.1179620914560; Sat, 19 May 2007 17:28:34 -0700 (PDT) Received: by 10.67.101.15 with HTTP; Sat, 19 May 2007 17:28:34 -0700 (PDT) Message-ID: <1d3ed48c0705191728s54ef146do63d5186bcf8e9e8b@mail.gmail.com> Date: Sat, 19 May 2007 17:28:34 -0700 From: "Kevin Downey" To: freebsd-questions@freebsd.org In-Reply-To: <464F6917.9080301@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <464F6917.9080301@acm.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: Sun, 20 May 2007 00:28:36 -0000 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? > > Thanks > > Denis F. 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 -- "The biggest problem with communication is the illusion that it has occurred." G. B. Shaw www.thelastcitadel.com