From owner-freebsd-questions@FreeBSD.ORG Tue Oct 10 01:11:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 961B516A403 for ; Tue, 10 Oct 2006 01:11:07 +0000 (UTC) (envelope-from fbsd-questions@mawer.org) Received: from customer-domains.icp-qv1-irony8.iinet.net.au (customer-domains.icp-qv1-irony8.iinet.net.au [203.59.1.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id D05AB43D53 for ; Tue, 10 Oct 2006 01:11:06 +0000 (GMT) (envelope-from fbsd-questions@mawer.org) Received: from 203-206-173-235.perm.iinet.net.au (HELO [127.0.0.1]) ([203.206.173.235]) by customer-domains.icp-qv1-irony8.iinet.net.au with ESMTP; 10 Oct 2006 09:11:02 +0800 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.09,286,1157299200"; d="scan'208"; a="518088743:sNHT4433882330" Message-ID: <452AF31C.4080302@mawer.org> Date: Tue, 10 Oct 2006 11:10:52 +1000 From: Antony Mawer User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Juha Saarinen References: <452AEA98.2030409@mawer.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD questions Subject: Re: AHCI support in 6.1-RELEASE? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 01:11:07 -0000 On 10/10/2006 11:02 AM, Juha Saarinen wrote: > On 10/10/06, Antony Mawer wrote: >> Most likely this renumbers the drivers, so you go from your hard drive >> showing as eg. ad0 to ad4. You will need to edit /etc/fstab as >> appropriate to match what the drive is showing up as after changing to >> AHCI mode. > > Yep... exactly like that - from ad0 to ad4. Worked perfectly. Thank > you very much, it didn't occur to me that there would be driver > renumbering when switching to AHCI. > > Oddly enough, even though the drive is connected to SATA port 0 on the > motherboard, it shows up as being on ATA channel 2, Master. According > to atacontrol, I have six ATA channels on the box, 0-5. Doesn't seem > quite logical that the driver should be renumbered as ad4, but... if > it works, I don't care. Usually I find that ad0/ad1 = primary IDE (master/slave), ad2/3 = secondary IDE (master/slave), and then the SATA connectors pick up from ad4 onwards... The SATA ports seem to be numbered in increments of 2, presumably because every SATA port is a "master", so the usual "slave" position is unused... ie: SATA 0 -> ad4 SATA 1 -> ad6 SATA 2 -> ad8 SATA 3 -> ad10 Presumably turning off ATA_STATIC_ID would just number them in the sequential order (ad0, ad1, ad2, ...) based on the devices that are actually connected... but this can mess things up when you connect additional drives at a later date somewhere in the middle of the chain! I have a patch I wrote for sysinstall somewhere that allows you to do disk=auto in an install.cfg, and it picks the first device it comes across (eg. if ad4 is the first IDE disk, it picks it over ad10)... we've found this very handy for installation/deployment scenarios that are automated via install.cfg but may have different disk configurations... If there's enough interest I might look at submitting it for inclusion... Cheers Antony