Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2010 19:40:06 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        David DEMELIER <demelier.david@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: glabel nor tunefs save my labels
Message-ID:  <20100511174006.GA7980@slackbox.erewhon.net>
In-Reply-To: <AANLkTikyZoDXcE2DNrnDq8PVq2jV_Olzcrwu3leUTE9J@mail.gmail.com>
References:  <20100510202618.GA1748@Melon.malikania.fr> <hsa1v9$qht$1@dough.gmane.org> <AANLkTikyZoDXcE2DNrnDq8PVq2jV_Olzcrwu3leUTE9J@mail.gmail.com>

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

--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
<snip>
> 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--



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