Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 2010 14:38:58 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG, sperber@deinprogramm.de
Subject:   Re: How to predict drive number change for 7.3->8.1 upgrade?
Message-ID:  <201009171238.o8HCcwCl084727@lurza.secnetix.de>
In-Reply-To: <y9l7himgit9.fsf@deinprogramm.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Sperber <sperber@deinprogramm.de> 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.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"I have stopped reading Stephen King novels.
Now I just read C code instead."
        -- Richard A. O'Keefe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009171238.o8HCcwCl084727>