Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2010 23:08:30 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Demelier David <demelier.david@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: glabel nor tunefs save my labels
Message-ID:  <20100510210830.GD67087@slackbox.erewhon.net>
In-Reply-To: <20100510202618.GA1748@Melon.malikania.fr>
References:  <20100510202618.GA1748@Melon.malikania.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

--DiL7RhKs8rK9YGuF
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 10, 2010 at 10:26:18PM +0200, Demelier David wrote:
> Hi,
> 	I was trying to follow this guide to make labels :
> 	http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-glabel.ht=
ml
>=20
> 	It does not work here, I boot single user and ran these commands :
> 	glabel label usr /dev/ad0s1f

Do not use this on an already existing filesystem! Use tunefs instead;

    tunefs =E2=80=90L usr /dev/ad0s1f

If you really want to use glabel, do it on an empty disk or partition. What
you must understand is that 'glabel label' uses the last sector of the
provider to store its metadata. So if you were to do e.g.=20

    glabel label =E2=80=90v usr /dev/da2

A labeled device /dev/label/usr would be created. This is one sector smaller
than /dev/da2! If you were to use newfs on /dev/da2 instead of on
/dev/label/usr, the label would be destroyed once the last sector is overwr=
itten!

See the the EXAMPLES section of glabel(8).

> 	GEOM: ad2s1a: geometry does not match label (255h,63s !=3D 16h,255s).
> 	GEOM: ad2s1c: geometry does not match label (255h,63s !=3D 16h,255s).
> 	GEOM: ad2s1: geometry does not match label (255h,63s !=3D 16h,255s).

These are harmless, AFAICT. You can ignore them.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--DiL7RhKs8rK9YGuF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkvodc4ACgkQEnfvsMMhpyUrbwCbBdeugDiTXQU1gEM5C9PaExHZ
ZnUAn3maff0XSeM4nudfSo2jgT3OSUZW
=4113
-----END PGP SIGNATURE-----

--DiL7RhKs8rK9YGuF--



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