geom_label, fstab without device names & swap partition?

Mark Saad nonesuch at
Wed Jan 12 20:11:15 UTC 2011

On Wed, Jan 12, 2011 at 3:01 PM, Freddie Cash <fjwcash at> wrote:
> On Wed, Jan 12, 2011 at 12:00 PM, Mark Saad <nonesuch at> wrote:
>> On Wed, Jan 12, 2011 at 1:54 PM, Freddie Cash <fjwcash at> wrote:
>>> 2011/1/12 Lev Serebryakov <lev at>:
>>>>  Now, with "newfs -L name", geom_label and /dev/ufs/* it is possible
>>>> to not use device names for FSes in "/etc/fstab" at all. But what to
>>>> do with swap partitions? How to say, that I want swap on
>>>> "/dev/ada0s1b" or "/dev/ad0s1b" whatever name it has now?
>>> Use glabel(8) to label the device:
>>> # glabel label swap ada0s1b
>> On a side note there is not a simple way to glabel mounted filesystem
> True, but for a swap partition, it's easy to disable swap, label the
> partition, and re-enable swap.  :)
> --
> Freddie Cash
> fjwcash at

Well the thing is I like use glabel in place of a fs label as it makes
my devices all names something similar
/dev/label/thingie rather then have /dev/ufs/rootfs and
/dev/label/swap  , I'll have /dev/label/rootfs /dev/label/swap.
Also I dont think you can easily change a live label either .


mark saad | nonesuch at

More information about the freebsd-stable mailing list