From owner-freebsd-questions@FreeBSD.ORG Tue Jan 22 06:03: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 2016A16A41A for ; Tue, 22 Jan 2008 06:03:22 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id AD88A13C43E for ; Tue, 22 Jan 2008 06:03:21 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: by an-out-0708.google.com with SMTP id c14so583236anc.13 for ; Mon, 21 Jan 2008 22:03:21 -0800 (PST) Received: by 10.100.31.3 with SMTP id e3mr16604875ane.112.1200981799943; Mon, 21 Jan 2008 22:03:19 -0800 (PST) Received: from smtp.home.rakhesh.com ( [82.178.102.129]) by mx.google.com with ESMTPS id s40sm7460895hsb.5.2008.01.21.22.03.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Jan 2008 22:03:19 -0800 (PST) Received: from dogmatix (dogmatix [192.168.17.31]) by smtp.home.rakhesh.com (Postfix) with ESMTP id 46D8711427; Tue, 22 Jan 2008 10:01:56 +0400 (GST) Date: Tue, 22 Jan 2008 10:02:11 +0400 (GST) X-X-Sender: rakhesh@dogmatix.home.rakhesh.com To: Jerry McAllister In-Reply-To: <20080121200601.GA14429@gizmo.acns.msu.edu> Message-ID: <20080122100051.E7173@dogmatix.home.rakhesh.com> References: <20080120161831.L62033@obelix.home.rakhesh.com> <20080121165551.GB50246@slackbox.xs4all.nl> <20080121170504.GA73013@cheddar.urgle.com> <200801211419.54729.mlobo@digiart.art.br> <20080121200601.GA14429@gizmo.acns.msu.edu> 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 Cc: Mario Lobo , freebsd-questions@freebsd.org 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: Tue, 22 Jan 2008 06:03:22 -0000 Jerry McAllister wrote: > On Mon, Jan 21, 2008 at 02:19:54PM -0300, Mario Lobo wrote: > >> On Monday 21 January 2008 14:05:04 Mike Bristow wrote: >>> On Mon, Jan 21, 2008 at 05:55:51PM +0100, Roland Smith wrote: >>>> On Mon, Jan 21, 2008 at 08:56:32AM +0400, Rakhesh Sasidharan wrote: >>>>>> It is possible, but not as daX. Use the glabel(8) utility to label >>>>>> your disks. They will show up as /dev/label/ >>>> >>>> On 7.0-PRERELEASE, 'options GEOM_LABEL' is built into of the GENERIC >>>> kernel, so it shouldn't be necessary there. >>> >>> Note that you can use UFS (and other filesystems labeling) too: for >>> example. 'newfs -L bobs_disk' will cause the device containing it to appear >>> as /dev/ufs/bobs_disk. >>> >>> This approach may be better for removable disks; it'll play better with >>> other OSs, for example. >> >> I simply put >> >> /dev/da0s1 /PenDrive msdosfs rw,noauto 0 0 >> >> on fstab. After I plug it in, I type >> >> mount /PenDrive. In KDE, I use Kwikdisk to mount it. > > Maybe I am missing something, but I don't think that is what the OP > was asking - just a mount moiunt. I think the OP wants the > /dev/da0s1 to always be /dev/da0s1 even if he switches the drives > around in physical drive slots. > Yup, that's what I wanted. For the drive to always appear as /dev/da0 (or anything similar). The glabel feature (and newfs labelling feature too) are exactly what I was looking for. Thanks a ton for all the replies. Much appreciated. :) Regards, - Rakhesh http://rakhesh.net/