From owner-freebsd-questions@FreeBSD.ORG Fri Jul 1 22:18:05 2005 Return-Path: X-Original-To: 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 8FF2016A41C for ; Fri, 1 Jul 2005 22:18:05 +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 5521743D48 for ; Fri, 1 Jul 2005 22:18:05 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j61MI4L4075072; Fri, 1 Jul 2005 17:18:04 -0500 (CDT) (envelope-from dan) Date: Fri, 1 Jul 2005 17:18:04 -0500 From: Dan Nelson To: Doug Poland Message-ID: <20050701221803.GO2392@dan.emsphone.com> References: <56241.209.103.198.74.1120249277.squirrel@email.polands.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56241.209.103.198.74.1120249277.squirrel@email.polands.org> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: questions@freebsd.org Subject: Re: Lock down device name for USB drive 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: Fri, 01 Jul 2005 22:18:05 -0000 In the last episode (Jul 01), Doug Poland said: > Hello, > > I'm trying to use the automounter to mount a USB thumbdrive on > -STABLE. The only problem I'm having is that, between reboots, the > name of the device changes between da0s1 and da1s1. > > Is there a way to lock down the device name so it doesn't change? Depends on what you want to lock down. If you only want a particular thumbdrive to be mounted, you can give it a label and use geom_label to provide a /dev/msdosfs/mylabel node. If you always want the first usb drive plugged in to be mounted, you can wire down umass and the device to always appear at the same scbus# and da# numbers, by adding something like this to loader.conf: hint.scbus.0.at="umass0" hint.da.0.at="scbus0" hint.da.0.target="0" hint.da.0.unit="0" If you boot off of scsi devices, you probably would want to wire them down first, followed by your usb device, to keep them from shifting if you have more than one usb drive plugged in during bootup. -- Dan Nelson dnelson@allantgroup.com