Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Dec 2003 16:01:56 -0800 (PST)
From:      BSD user <fbsd-questions@ad.asl4.net>
To:        questions@freebsd.org
Subject:   Wire down PATA/SATA devices?
Message-ID:  <20031225153928.O62187@fremont.bolingbroke.com>
In-Reply-To: <3FEB7422.4050105@theatre.msu.edu>
References:  <3FEB709C.3090600@theatre.msu.edu> <3FEB7422.4050105@theatre.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

I've recently installed a new machine with FreeBSD 5.2-RC2.  This box is
equipped with removable drive trays, a Promise SATA RAID controller, and
PATA/SATA controllers on the motherboard.

ATA_STATIC_ID is enabled in the kernel so that disks names don't flip
around when I remove a drive or insert another drive.

I have the boot drive plugged into the first SATA port, but the default
ordering is such that it ends up being labeled "ad12" on ata6, atapci2.

Or basically, the default ordering is:

  Motherboard PATA, atapci1:
    - ata0 > ad0, ad1
    - ata1 > ad2, ad3

  Promise RAID, atapci0:
    - ata2 > ad4, ad5
    - ata3 > ad6, ad7
    - ata4 > ad8, ad9
    - ata5 > ad10, ad11

  Motherboard SATA, atapci2:
    - ata6 > ad12, ad13
    - ata7 > ad14, ad15

I want the boot drive on the SATA port to be "ad0", but I haven't had any
success trying to name it that way in /boot/device.hints, probably because
the syntax for the example given for legacy PATA doesn't apply to SATA or
the RAID card.

How do I wire down each disk channel to the "adX" name I prefer?  That's
all that really matters, but I'd also like to know how to wire down the
order of the atapci and ata devices, if that's possible?

Thanks,

Joe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031225153928.O62187>