From owner-freebsd-questions@FreeBSD.ORG Fri Oct 26 16:00:16 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B433D96 for ; Fri, 26 Oct 2012 16:00:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id CC0928FC19 for ; Fri, 26 Oct 2012 16:00:15 +0000 (UTC) Received: from r56.edvax.de (port-92-195-110-131.dynamic.qsc.de [92.195.110.131]) by mx02.qsc.de (Postfix) with ESMTP id 3477D3330E; Fri, 26 Oct 2012 18:00:14 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q9QG0DLp002819; Fri, 26 Oct 2012 18:00:13 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 26 Oct 2012 18:00:13 +0200 From: Polytropon To: Gerhard Schmidt Subject: Re: ata controller problem Message-Id: <20121026180013.45c95ea7.freebsd@edvax.de> In-Reply-To: <508A7F88.8050309@ze.tum.de> References: <508A7F88.8050309@ze.tum.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 16:00:16 -0000 On Fri, 26 Oct 2012 14:18:16 +0200, Gerhard Schmidt wrote: > The Problem is that, if there is a Drive in one of the HotSwap Bays the > PCI-Express controller is detected as ahci0 and the onboard is detected > as ahci1. Therefore any drives in the HotSwap Bays become ada0-3 and the > drives on the mainboard controller are the upper numbers which causes > the boot to fail as the Root Partition isn't there where it's expected. > The BIOS has the PCI-Express Card as second Card only so the Kernel is > Booted but the RootFS is not Found. You can use labels (GPT or UFS labels) or UFSIDs to become independent of the actual device name where things are stored on. You could also use this to make disks easier to identify (e. g. "/dev/label/red1root" = the disk with a red "1" on it, carrying the root file system). I suggest those pages for more detailed information: http://www.wonkity.com/~wblock/docs/html/disksetup.html http://www.freebsd.org/doc/handbook/geom-glabel.html Maybe as well (specific and general notes and inspiration): http://www.daemonforums.org/showthread.php?t=2666 http://www.freebsdonline.com/content/view/731/506/ http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html I assume that you are using UFS. > Is there a way to ensure that the onboard SATA Controller is always > probed first. I'm not sure if this can be done, but using labels should make the question go away, and the problem causing it. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...