Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Apr 2012 10:54:14 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        =?UTF-8?B?IkFpcm9zb86yaWN6IGZiLiI=?= <airosovicz@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.org>
Subject:   Re: Upgrade to 9.0 - Mount to root failed..
Message-ID:  <4F816046.1080503@FreeBSD.org>
In-Reply-To: <CAEUQAzPLUDLvPQe8W8Rb2n2cQ5Jg0T9yhrFDAPLADnO8qTgkig@mail.gmail.com>
References:  <CAEUQAzPLUDLvPQe8W8Rb2n2cQ5Jg0T9yhrFDAPLADnO8qTgkig@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



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