glabel nor tunefs save my labels

Roland Smith rsmith at xs4all.nl
Mon May 10 21:08:32 UTC 2010


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.html
> 
> 	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 ‐L 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. 

    glabel label ‐v 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 overwritten!

See the the EXAMPLES section of glabel(8).

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

These are harmless, AFAICT. You can ignore them.

Roland
-- 
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100510/21d051a5/attachment.pgp


More information about the freebsd-questions mailing list