Re: Mounting root through devfs

Gordon Tetlow <[email protected]> Wed, 5 May 2004 18:30:25 -0700
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
--6v9BRtpmy+umdQlo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 03, 2004 at 02:21:16PM +0200, Thomas Quinot wrote:
> * Thomas Quinot, 2004-05-02 :
>=20
> > An interesting use of this option is to mount a root file system by
> > FFS volume label (using GEOM_VOL), without needing to know what hardware
> > identifier will be assigned to it.
>=20
> Hum, actually, further testing revealed that this should have worked
> with -CURRENT without resorting to any patch. I must have messed up
> something when initially determining that this did not work.

I was gonna say, you don't need a patch for /dev/vol/root to work. The
reason you may have been deceived is because you have to set the label
on the root (which can only be done in single user when / is RO), then
reboot the machine. Even then, /dev/vol/root doesn't show up because
GEOM spoils the geom_vol_ffs class instance from /dev/ad0s1a due to an
open write on /dev/ad0s1a (which geom_vol_ffs sits on top of). It takes
an act of faith to set /dev/vol/root in your /etc/fstab, reboot, and
hopefully everything works.

-gordon

--6v9BRtpmy+umdQlo
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFAmZUwRu2t9DV9ZfsRAlrwAJ9giVlAA1tZx76uakK6YLnmGXEHYgCeLxWa
Fzphvw8yNfqEaJaC7rsIfWc=
=OM5/
-----END PGP SIGNATURE-----

--6v9BRtpmy+umdQlo--