[Bug 234535] The label that was set on partition in single mode disappears on mutli-user mode.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 5 17:08:06 UTC 2019


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

--- Comment #7 from Conrad Meyer <cem at 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.


More information about the freebsd-bugs mailing list