From owner-freebsd-stable@FreeBSD.ORG Fri Sep 17 13:35:34 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 97C141065672 for ; Fri, 17 Sep 2010 13:35:34 +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 5045F8FC27 for ; Fri, 17 Sep 2010 13:35:34 +0000 (UTC) Received: from h615406.serverkompetenz.net (localhost [127.0.0.1]) by h615406.serverkompetenz.net (Postfix) with ESMTP id A355A1706B; Fri, 17 Sep 2010 13:35:32 +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 3D3AD1704A; Fri, 17 Sep 2010 13:35:32 +0000 (UTC) Received: by eta.local (Postfix, from userid 2246) id 72222852ABD; Fri, 17 Sep 2010 15:35:31 +0200 (CEST) From: Michael Sperber To: "Marat N.Afanasyev" References: <201009171238.o8HCcwCl084727@lurza.secnetix.de> <4C93674B.20300@ksu.ru> Date: Fri, 17 Sep 2010 15:35:31 +0200 In-Reply-To: <4C93674B.20300@ksu.ru> (Marat N. Afanasyev's message of "Fri, 17 Sep 2010 17:04:11 +0400") 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: freebsd-stable@freebsd.org 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 13:35:34 -0000 "Marat N.Afanasyev" writes: > Michael Sperber wrote: >> >> 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! >> > beware of drago^Wchanging of adX numbers each time you add/remove > drive ;) It's better to label filesystems, imho ;) This is a rented server, so I no drive will ever be removed or added. On the other hand, if I understand it correctly, I'll need to unmount the root partition in order to label it - right? -- Regards, Mike