Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Jan 2019 17:08:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234535] The label that was set on partition in single mode disappears on mutli-user mode.
Message-ID:  <bug-234535-227-U7mHR3Hi3t@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-234535-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-234535-227@https.bugs.freebsd.org/bugzilla/>

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

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234535

--- Comment #7 from Conrad Meyer <cem@freebsd.org> ---
(In reply to yuchensdgt from comment #6)
Oh, yeah.  That would be why the filesystem mounts (in multiuser) are obtaining
non-label names and spoiling the label names.

Note that later in the same example, 18.1, it presents the following fstab:

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/label/swap         none            swap    sw              0       0
/dev/label/rootfs       /               ufs     rw              1       1
/dev/label/tmp          /tmp            ufs     rw              2       2
/dev/label/usr          /usr            ufs     rw              2       2
/dev/label/var          /var            ufs     rw              2       2

I recommend using the label name in fstab, as that example shows.  Then the
/dev/ada names will disappear, which still sucks, but at least the labels will
persist.

In my personal configuration I use GPT labels rather than GEOM labels, but a
similar idea.

# device mount fstype options dump pass
/dev/gpt/freebsd-root / ufs rw,noatime 1 1
/dev/gpt/freebsd-swap none swap sw 0 0

That should resolve the immediate issue, although I would still like to see the
"spoiling" of alternative labels get fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234535-227-U7mHR3Hi3t>