From owner-freebsd-stable@FreeBSD.ORG Fri Sep 17 12:57:41 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C67E106567A for ; Fri, 17 Sep 2010 12:57:41 +0000 (UTC) (envelope-from sperber@deinprogramm.de) Received: from h615406.serverkompetenz.net (h615406.serverkompetenz.net [81.169.143.132]) by mx1.freebsd.org (Postfix) with ESMTP id E90988FC0C for ; Fri, 17 Sep 2010 12:57:40 +0000 (UTC) Received: from h615406.serverkompetenz.net (localhost [127.0.0.1]) by h615406.serverkompetenz.net (Postfix) with ESMTP id 348DE1706B for ; Fri, 17 Sep 2010 12:57:39 +0000 (UTC) Received: from eta.local (p5B205E63.dip.t-dialin.net [91.32.94.99]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by h615406.serverkompetenz.net (Postfix) with ESMTPSA id E99DB1704A for ; Fri, 17 Sep 2010 12:57:38 +0000 (UTC) Received: by eta.local (Postfix, from userid 2246) id 24F00852A4A; Fri, 17 Sep 2010 14:57:38 +0200 (CEST) From: Michael Sperber To: freebsd-stable@FreeBSD.ORG References: <201009171238.o8HCcwCl084727@lurza.secnetix.de> Date: Fri, 17 Sep 2010 14:57:38 +0200 In-Reply-To: <201009171238.o8HCcwCl084727@lurza.secnetix.de> (Oliver Fromme's message of "Fri, 17 Sep 2010 14:38:58 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b29 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV using ClamSMTP Cc: Subject: Re: How to predict drive number change for 7.3->8.1 upgrade? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 12:57:41 -0000 Oliver Fromme writes: > Michael Sperber wrote: > > I just upgraded my desktop system from 7.3 to 8.1, and the main hard > > drive, which was /dev/ad6 before is now /dev/ad10. Consequently, the > > initial boot failed when trying to mount the root file system from ad6. > > > > The desktop system is now fixed, but I also have a rented server with > > only a serial console, and I worry that the upgrade is going to leave me > > with a dead machine. Is there any way to predict how the drive number > > changes? (Why does it change at all?) If so, what's the proper way to > > tell the system the initial root device *before* rebooting? > > Remove "options ATA_STATIC_ID" from your kernel config > before building the new kernel and rebooting. Then your > first disk will be ad0, no matter what controller and > channel it is connected to. Be sure to update your > /etc/fstab file. Ah, excellent - that's what I was looking for. Thanks! -- Regards, Mike