From owner-freebsd-questions@FreeBSD.ORG Sun Apr 8 09:54:31 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9429A1065670 for ; Sun, 8 Apr 2012 09:54:31 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 148C68FC0A for ; Sun, 8 Apr 2012 09:54:30 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q389sPnM032634 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 8 Apr 2012 10:54:25 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.1 smtp.infracaninophile.co.uk q389sPnM032634 Authentication-Results: smtp.infracaninophile.co.uk/q389sPnM032634; dkim=none (no signature); dkim-adsp=none Message-ID: <4F816046.1080503@FreeBSD.org> Date: Sun, 08 Apr 2012 10:54:14 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: =?UTF-8?B?IkFpcm9zb86yaWN6IGZiLiI=?= References: In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9130B0860E7834EB22F0FD36" X-Virus-Scanned: clamav-milter 0.97.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: FreeBSD Questions Subject: Re: Upgrade to 9.0 - Mount to root failed.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2012 09:54:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9130B0860E7834EB22F0FD36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/04/2012 09:53, Airoso=CE=B2icz fb. wrote: > So I've upgraded from 8.1 to 9.0 & now the system can't mount in single= > user mode to go through the final step of installing the world.. >=20 > # cvsup.. Done.. > # make buildworld.. Done.. > # make buildkernel.. Done.. > # make installkernel.. Done.. > # reboot in single user mode to install world.. Failed to mount to > /dev/ad2s1a.. {Yes, that *is* my HD} >=20 As was mentioned else-thread, you are probably hitting problems due to the name change from ad(4) to ada(4) for PATA/SATA disk devices. One way to fix this is simply to type in the new boot device in the loader and then edit /etc/fstab from single user mode -- which is fine, but you'ld have to go through the same sort of rigmarole again to revert back to 8.1 should that be necesssary. The preferred method nowadays is to label the partitions. There are three options: glabel(8) -- generic labels for geom devices, which will appear in /dev/label/foo tunefs(8) -- specifically the -L option. For UFS, labels will appear as /dev/ufs/foo gpart(8) -- GPT partitioning has built-in label support. Devices appear as /dev/gpt/foo (Additionally partitions can be referred to by uuid for the tunefs and gpart labelling schemes, but that's not relevant here.) Quite why FreeBSD needs so many different labelling schemes escapes me. gpart(8) labelling is the default for new installs of 9.0. However, given you're upgrading from 8.1, then you will likely be using MBR + bsdlabel oldstyle partitioning, so probably tunefs(8) labelling would be the best choice to get you through the 8.1 -> 9.0 reboot. ie. Create the label: # tunefs -L ROOT /dev/as2s1a then edit /etc/fstab so the line for the root filesystem reads like so: /dev/ufs/ROOT / ufs rw 0 1 Repeat this for all the other UFS filesystems you have -- a good system is to label them according to their mountpoint (USR, VAR, HOME, LOCAL, and so forth.) This should work with both 8.1 and 9.0 kernels -- however, untested, so apply appropriate levels of caution. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig9130B0860E7834EB22F0FD36 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+BYE0ACgkQ8Mjk52CukIynDACfWqSjFlYCVUzhZg38T+ojerFW 51EAn3FedBg/dEgqIB6JOnP3WSoIBh++ =yYEn -----END PGP SIGNATURE----- --------------enig9130B0860E7834EB22F0FD36--