From owner-freebsd-questions@FreeBSD.ORG Mon May 10 21:08:32 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB5A9106564A for ; Mon, 10 May 2010 21:08:32 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.freebsd.org (Postfix) with ESMTP id 38A2A8FC08 for ; Mon, 10 May 2010 21:08:31 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id o4AL8UPL074051; Mon, 10 May 2010 23:08:30 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 726DFBA9E; Mon, 10 May 2010 23:08:30 +0200 (CEST) Date: Mon, 10 May 2010 23:08:30 +0200 From: Roland Smith To: Demelier David Message-ID: <20100510210830.GD67087@slackbox.erewhon.net> References: <20100510202618.GA1748@Melon.malikania.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DiL7RhKs8rK9YGuF" Content-Disposition: inline In-Reply-To: <20100510202618.GA1748@Melon.malikania.fr> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: glabel nor tunefs save my labels X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2010 21:08:32 -0000 --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--