From owner-freebsd-questions@FreeBSD.ORG Tue May 11 17:40:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79C87106568B for ; Tue, 11 May 2010 17:40:09 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mx1.freebsd.org (Postfix) with ESMTP id E83848FC18 for ; Tue, 11 May 2010 17:40:08 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id o4BHe7tb034650; Tue, 11 May 2010 19:40:07 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id F22ACBAA9; Tue, 11 May 2010 19:40:06 +0200 (CEST) Date: Tue, 11 May 2010 19:40:06 +0200 From: Roland Smith To: David DEMELIER Message-ID: <20100511174006.GA7980@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="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: 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: Tue, 11 May 2010 17:40:09 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 11, 2010 at 07:08:40PM +0200, David DEMELIER wrote: > Thanks for all your answers. >=20 > markand@Melon ~ $ sudo tunefs -p /dev/ad0s1f > tunefs: volume label: (-L) usr >=20 > It's weird, as you can see the label is set but nothing in /dev/label, > /dev/ufs, /dev/vol ! The labels are removed when the partition is mounted somewhere! So, you will only see the labels of unmounted partitions/disks in devfs. See for yourself (commands run on my 8.0-RELEASE-p2 system): Checking that this partition is labeled; # tunefs -p /dev/ad6s1a ... tunefs: volume label: (-L) rootbk When it is mounted, # mount=20 ... /dev/ad6s1a on /mnt/bk/root (ufs, local) there are no labels: # ls /dev/ufs/* /dev/ufsid/* ls: No match. After unmounting # umount /dev/ad6s1a # ls /dev/ufs/* /dev/ufsid/* /dev/ufs/rootbk /dev/ufsid/482e0880cf225c60 Both the label set with tunefs and the ufsid label appear! Mount it again and the labels disappear again; # mount /mnt/bk/root # ls /dev/ufs/* /dev/ufsid/* ls: No match. Hope this helps. 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) --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvplnYACgkQEnfvsMMhpyX1JgCgpbYYa1sPjW/0nrYlsjcSyhIq 5w4AnAlLx3DfOzrUoIvdTKSzKwYRVagn =XyNg -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--