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:<Samsung G3 Station> 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-unsubscr...@freebsd.org"
# camcontrol devlist
<Lexar RW047SDHC Reader 0100> at scbus0 target 0 lun 0 (da1,pass1)
<Novatel MMC Storage 2.31> at scbus1 target 0 lun 0 (da0,pass0)
$ dmesg | grep da
da0 at umass-sim1 bus 1 scbus1 target 0 lun 0
da0: <Novatel MMC Storage 2.31> 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: <Lexar RW047SDHC Reader 0100> 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.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"