static device numbering on arm6/FreeBSD11

John-Mark Gurney jmg at funkthat.com
Wed Sep 9 18:20:55 UTC 2015


John wrote this message on Wed, Sep 09, 2015 at 16:20 +0100:
> Hello list,
> 
> On i386/amd64 the kernel line:
> 
> options         ATA_STATIC_ID   # Static device numbering
> 
> means that I can reference a da device in fstab which stays constant
> through reboots. Is there an equivalent line for the RPI2 kernel?
> I've looked but can't see it. At the moment, they keep swapping
> round.

To wire scsi devices, you can use hints as described in scsi(4)..

For example:
This assigns CAM bus 0 to the bus 1 instance on ahc1.  Peripheral drivers
can be wired to a specific bus, target, and lun as so:

	   hint.da.0.at="scbus0"
	   hint.da.0.target="0"
	   hint.da.0.unit="0"

I've never tried this w/ USB disks though.

Though I will second the usage of gpt labels or glabels, those are
more reliable, and will stay them same even when you move disks
around, say in a hot swap enclosure...

Hope this helps..

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-arm mailing list