From owner-freebsd-questions@FreeBSD.ORG Thu Dec 25 16:01:58 2003 Return-Path: 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 6356116A4CF for ; Thu, 25 Dec 2003 16:01:58 -0800 (PST) Received: from fremont.bolingbroke.com (adsl-216-102-90-210.dsl.snfc21.pacbell.net [216.102.90.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 219B843D1D for ; Thu, 25 Dec 2003 16:01:57 -0800 (PST) (envelope-from fbsd-questions@ad.asl4.net) Received: from localhost (localhost [127.0.0.1])hBQ01ucp062953 for ; Thu, 25 Dec 2003 16:01:56 -0800 (PST) (envelope-from fbsd-questions@ad.asl4.net) Date: Thu, 25 Dec 2003 16:01:56 -0800 (PST) From: BSD user X-X-Sender: ken@fremont.bolingbroke.com To: questions@freebsd.org In-Reply-To: <3FEB7422.4050105@theatre.msu.edu> Message-ID: <20031225153928.O62187@fremont.bolingbroke.com> References: <3FEB709C.3090600@theatre.msu.edu> <3FEB7422.4050105@theatre.msu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Wire down PATA/SATA devices? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2003 00:01:58 -0000 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