geom_label, fstab without device names & swap partition?
gpalmer at freebsd.org
Wed Jan 12 19:03:05 UTC 2011
On Wed, Jan 12, 2011 at 09:02:01PM +0300, Lev Serebryakov wrote:
> Hello, Stable.
> 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?
Have you tried using glabel(8)? It allows you to assign a name
to a slice. The slice should not be in use at the time, and if it has
a filesystem on it you may have problems as glabel(8) uses the last block
for a data store.
More information about the freebsd-stable