glabel nor tunefs save my labels

Roland Smith rsmith at xs4all.nl
Wed May 12 17:41:26 UTC 2010


On Wed, May 12, 2010 at 09:35:08AM -0700, Carl Johnson wrote:
> Roland Smith <rsmith at xs4all.nl> writes:
> 
> > On Tue, May 11, 2010 at 07:46:57PM +0200, David DEMELIER wrote:
> >> 2010/5/11 Roland Smith <rsmith at xs4all.nl>:
> >> > On Tue, May 11, 2010 at 07:08:40PM +0200, David DEMELIER wrote:
> >> >> Thanks for all your answers.
> >> >>
> >> >> markand at Melon ~ $ sudo tunefs -p /dev/ad0s1f
> >> > <snip>
> >> >> tunefs: volume label: (-L)                                 usr
> >> >>
> >> >> It's weird, as you can see the label is set but nothing in /dev/label,
> >> >> /dev/ufs, /dev/vol !
> >> >
> >> 
> >> Aaah ! So I understand everything now ! Is this written somewhere ?
> >
> > See §19.6 (Labeling Disk Devices) in the FreeBSD Handbook. However, it is not mentioned
> > there that labels are removed when the partition is mounted. Maybe that
> > behavior is recent?
> 
> I am not the original poster, but I tried again and I now am mostly
> using labels and the labels are still showing in /dev/ufs/.  I didn't
> have labels showing in /dev/ufs, but I changed fstab to what they
> should be and rebooted.  The system came up using the labels and they
> are showing in /dev/ufs/ and using 'glabel status'.

When I did my testing, I did not reboot the system. Maybe that is the difference?

> I say mostly because the /usr partition isn't recognized for some
> reason, even though dumpfs and tunefs show the label.  That label is
> also not shown in /dev/ufs or using 'glabel status'.  That made the
> reboot a little tricky since I had to manually mount /usr in order to
> get an editor to edit fstab to continue the boot.

That is odd indeed. Maybe a misspelling in the label? Anything in dmesg or
/var/log/messages.

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/20100512/5b9909b4/attachment.pgp


More information about the freebsd-questions mailing list