From owner-freebsd-stable@FreeBSD.ORG Mon May 16 00:16:18 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EB1D106564A for ; Mon, 16 May 2011 00:16:18 +0000 (UTC) (envelope-from bruce@hawaii-pacific.com) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by mx1.freebsd.org (Postfix) with ESMTP id 022A98FC12 for ; Mon, 16 May 2011 00:16:17 +0000 (UTC) Received: from [192.168.1.4] (65-113-116-73.dia.static.qwest.net [65.113.116.73]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0MfFh4-1Q2SRg0PjG-00OZhA; Sun, 15 May 2011 20:16:16 -0400 Message-ID: <4DD06CCA.2030504@hawaii-pacific.com> Date: Sun, 15 May 2011 14:16:10 -1000 From: Bruce Meier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.19) Gecko/20110429 SeaMonkey/2.0.14 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4DCC5358.4050705@chef-ingenieur.de> <34458417-0D7A-493E-8C52-F3095000D764@gsoft.com.au> In-Reply-To: <34458417-0D7A-493E-8C52-F3095000D764@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:7D2hz7k8kMuhA5kTD6TKlZSylwBbD1yDPsFAdDoZQVF ui5k73QbcxkZIYGehs4OA6InMHF1QSXi5gf0MV91Y5OvcQv2VD bkDTB622IR2E+XO6BZOmn8NFChSqldrZZToahAHDd7DawLqsja fOZeFzZ27g2RPAHQo5eXql9bzdBLkL1PzHbftaioskJEbvnlUD cPU5/eGEW7vei58tBoYwpTAN6ffrjF7dQbFHnleJr4= Subject: Re: setting usb disc to da1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2011 00:16:18 -0000 Daniel O'Connor wrote: > On 13/05/2011, at 7:08, Thomas Krause wrote: > >> I've plugged a USB disc to a FreeBSD System and it's dedected as da1: >> >> da1: Fixed Direct Access SCSI-2 device >> >> But when rebooting the machine, it becomes da0 and I cannot boot the >> system. What's the trick to set the USB disc to da1 permanent? >> > You can, to some degree, wire the device with.. > hint.scbus.0.at="umass-sim0" > hint.da0.at="scbus0" > > However I would recommend using GPT IDs, UFS IDs or GEOM labels in fstab so the underlying device name is irrelevant. > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > > > > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > # camcontrol devlist at scbus0 target 0 lun 0 (da1,pass1) at scbus1 target 0 lun 0 (da0,pass0) $ dmesg | grep da da0 at umass-sim1 bus 1 scbus1 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present da1 at umass-sim0 bus 0 scbus0 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 3900MB (7987200 512 byte sectors: 255H 63S/T 497C) Added the following to /boot/loader.conf: hint.scbus.0.at="da0" hint.scbus.0.bus="0" hint.da.0.at="scbus0" hint.da.0.target="0" hint.da.0.unit="0" hint.scbus.1.bus="umass-sim0" hint.da.1.at="scbus1" hint.da.1.target="0" hint.da.1.unit="0" This seems to work. I have rebooted 4 times and the devices are mounted the same.