From owner-freebsd-stable@FreeBSD.ORG Fri Sep 17 13:04: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 CB16810656AA for ; Fri, 17 Sep 2010 13:04:34 +0000 (UTC) (envelope-from amarat@ksu.ru) Received: from mx7.ksu.ru (honey.ksu.ru [193.232.252.54]) by mx1.freebsd.org (Postfix) with ESMTP id E13C58FC14 for ; Fri, 17 Sep 2010 13:04:33 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.56,382,1280692800"; d="p7s'?scan'208";a="976607" Received: from mail.ksu.ru (HELO ruby.ksu.ru) ([193.232.252.56]) by iport2.ksu.ru with ESMTP; 17 Sep 2010 17:04:30 +0400 X-Pass-Through: Kazan State University Network Received: from zealot.ksu.ru ([194.85.245.161]) by ksu.ru (8.13.4/8.13.4) with ESMTP id o8HD4hgP020133; Fri, 17 Sep 2010 13:04:43 GMT Received: from zealot.ksu.ru (localhost.lnet [127.0.0.1]) by zealot.ksu.ru (8.14.4/8.14.4) with ESMTP id o8HD4Cfd036899; Fri, 17 Sep 2010 17:04:12 +0400 (MSD) (envelope-from amarat@ksu.ru) Message-ID: <4C93674B.20300@ksu.ru> Date: Fri, 17 Sep 2010 17:04:11 +0400 From: "Marat N.Afanasyev" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100724 Firefox/3.0.7 MIME-Version: 1.0 To: Michael Sperber References: <201009171238.o8HCcwCl084727@lurza.secnetix.de> In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms010609020705080206050407" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:04:35 -0000 This is a cryptographically signed message in MIME format. --------------ms010609020705080206050407 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: quoted-printable Michael Sperber wrote: > > Oliver Fromme writes: > >> Michael Sperber wrote: >> > I just upgraded my desktop system from 7.3 to 8.1, and the main h= ard >> > drive, which was /dev/ad6 before is now /dev/ad10. Consequently,= the >> > initial boot failed when trying to mount the root file system fro= m 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 l= eave me >> > with a dead machine. Is there any way to predict how the drive n= umber >> > 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=20 ;) It's better to label filesystems, imho ;) --=20 SY, Marat --------------ms010609020705080206050407--