From owner-freebsd-questions@FreeBSD.ORG Wed Jan 18 05:35:02 2006 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 9AD6216A41F for ; Wed, 18 Jan 2006 05:35:02 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E3C143D46 for ; Wed, 18 Jan 2006 05:35:02 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id k0I5Z103027123; Tue, 17 Jan 2006 23:35:01 -0600 (CST) (envelope-from dan) Date: Tue, 17 Jan 2006 23:35:01 -0600 From: Dan Nelson To: Garrett Cooper Message-ID: <20060118053500.GF10326@dan.emsphone.com> References: <2BD0EE28-977B-4805-B505-3910B75CAFB4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2BD0EE28-977B-4805-B505-3910B75CAFB4@gmail.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: FreeBSD Questions Subject: Re: FreeBSD and the Mexican jumping drive assignments 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: Wed, 18 Jan 2006 05:35:02 -0000 In the last episode (Jan 17), Garrett Cooper said: > Hello, > I was wondering if there was any way where I could make my SCSI > drive /dev assignments static because they always seem to change > after rebooting the system, which is annoying for filesharing > purposes, especially when I expect data to be on drive da0, but it > ends up being on da2. > > da0 at ahc0 bus 0 target 1 lun 0 > da1 at ahc0 bus 0 target 4 lun 0 > da2 at ahc0 bus 0 target 6 lun 0 Two options. If you don't care about what name a disk is as long as you can locate its filesystems, you can label your filesystems with tunefs and then load the glabel module. Entries will appear under /dev/ufs and /dev/msdosfs for filesystems that have names, and you can put those entries in your fstab. If your boot disk is one of the ones that shuffles around, of if you want the disk names to stay constant for other reasons, you can wire down devices in /boot/device.hints to appear at specific places (documented in the scbus manpage): hint.scbus.0.at="ahc0" hint.da.0.at="scbus0" hint.da.0.target="1" etc. -- Dan Nelson dnelson@allantgroup.com