From owner-freebsd-questions@FreeBSD.ORG Mon Jan 21 05:02:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 063BC16A418 for ; Mon, 21 Jan 2008 05:02:22 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id BA50713C459 for ; Mon, 21 Jan 2008 05:02:21 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: by an-out-0708.google.com with SMTP id c14so475089anc.13 for ; Sun, 20 Jan 2008 21:02:21 -0800 (PST) Received: by 10.101.71.16 with SMTP id y16mr13817916ank.50.1200891735231; Sun, 20 Jan 2008 21:02:15 -0800 (PST) Received: from smtp.home.rakhesh.com ( [82.178.102.129]) by mx.google.com with ESMTPS id 30sm6254031hso.14.2008.01.20.21.02.07 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Jan 2008 21:02:09 -0800 (PST) Received: from obelix (obelix [192.168.17.13]) by smtp.home.rakhesh.com (Postfix) with ESMTP id 720311140C for ; Mon, 21 Jan 2008 08:56:32 +0400 (GST) Date: Mon, 21 Jan 2008 08:56:32 +0400 (GST) X-X-Sender: rakhesh@obelix.home.rakhesh.com To: freebsd-questions@freebsd.org In-Reply-To: <20080120142042.GA8576@slackbox.xs4all.nl> Message-ID: <20080121085409.T1673@obelix.home.rakhesh.com> References: <20080120161831.L62033@obelix.home.rakhesh.com> <20080120142042.GA8576@slackbox.xs4all.nl> X-Blog: http://rakhesh.com/ X-Notes: http://rakhesh.net/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Rakhesh Sasidharan Subject: Re: Fixing a USB disk to a specific device name 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: Mon, 21 Jan 2008 05:02:22 -0000 >> What I'd like to know is whether there's any way for me to ensure that the >> da0 disk always appears as da0. I don't want it that tomm I plug in another >> disk (or change the order of disks, though I'll be more careful with that) >> and suddenly da0 is no longer at da0! That would hamper the boot process >> ... not nice. > > It is possible, but not as daX. Use the glabel(8) utility to label your > disks. They will show up as /dev/label/ > > The daX devices are created as the device is plugged in, so AFAIK it's > impossible to permanently assign them a certain daX device. Just mentioning this for archival purposes. If you are mounting a device as /dev/label/ at boot time, it will fail unless you add a ''geom_label_load="YES"'' to your /boot/loader.conf file. Had me stumped for a while. This loads the geom label module at boot time and so labels are recognized. Thanks, Rakhesh - Rakhesh http://rakhesh.net/