Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Apr 2012 10:54:14 +0100
From:      Matthew Seaman <>
To:        =?UTF-8?B?IkFpcm9zb86yaWN6IGZiLiI=?= <>
Cc:        FreeBSD Questions <>
Subject:   Re: Upgrade to 9.0 - Mount to root failed..
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
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..
> # 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}

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

   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.



Dr Matthew J Seaman MA, D.Phil.

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>