Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2010 15:28:46 -0700
From:      Carl Johnson <carlj@peak.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: glabel nor tunefs save my labels
Message-ID:  <87k4r8bvq9.fsf@cjlinux.localnet>
In-Reply-To: <20100512174123.GA15087@slackbox.erewhon.net> (Roland Smith's message of "Wed\, 12 May 2010 19\:41\:23 %2B0200")
References:  <20100510202618.GA1748@Melon.malikania.fr>	<hsa1v9$qht$1@dough.gmane.org> <AANLkTikyZoDXcE2DNrnDq8PVq2jV_Olzcrwu3leUTE9J@mail.gmail.com> <20100511174006.GA7980@slackbox.erewhon.net> <AANLkTimjcmPbgLoqqL-bHTxuBalXtqKcxITBAvdLdYb7@mail.gmail.com> <20100511181202.GA20091@slackbox.erewhon.net>	<87pr11axj7.fsf@cjlinux.localnet> <20100512174123.GA15087@slackbox.erewhon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Roland Smith <rsmith@xs4all.nl> writes:

> On Wed, May 12, 2010 at 09:35:08AM -0700, Carl Johnson wrote:
>> Roland Smith <rsmith@xs4all.nl> writes:
>>=20
>> > On Tue, May 11, 2010 at 07:46:57PM +0200, David DEMELIER wrote:
>> >> 2010/5/11 Roland Smith <rsmith@xs4all.nl>:
>> >> > On Tue, May 11, 2010 at 07:08:40PM +0200, David DEMELIER wrote:
>> >> >> Thanks for all your answers.
>> >> >>
>> >> >> markand@Melon ~ $ sudo tunefs -p /dev/ad0s1f
>> >> > <snip>
>> >> >> tunefs: volume label: (-L) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 u=
sr
>> >> >>
>> >> >> It's weird, as you can see the label is set but nothing in /dev/la=
bel,
>> >> >> /dev/ufs, /dev/vol !
>> >> >
>> >>=20
>> >> Aaah ! So I understand everything now ! Is this written somewhere ?
>> >
>> > See =C2=A719.6 (Labeling Disk Devices) in the FreeBSD Handbook. Howeve=
r, it is not mentioned
>> > there that labels are removed when the partition is mounted. Maybe that
>> > behavior is recent?
>>=20
>> 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?

It might be, but I had rebooted more than once previously.  This time
I mounted them using the labels, so maybe *that* is the difference.  I
have another system running in VirtualBox from Linux (this one is not
a virtual machine) and I don't remember having any similar problems
with labels on it.  It doesn't make sense to me so I really don't
know.

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

I have checked many times and can't find anything different about that
FS compared with the others.  It isn't a misspelling because there
isn't anything in /dev/ufs except the other 4 labels that I am already
using.  There is nothing in the logs except the boot error in dmesg
when it couldn't find /usr to mount it.

The system works so I am not really worried about it.  It just
irritates me when I can't get things to work as I think they should.
--=20
Carl Johnson		carlj@peak.org




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