Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jan 2011 14:03:00 -0500
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Lev Serebryakov <lev@serebryakov.spb.ru>
Cc:        stable@freebsd.org
Subject:   Re: geom_label, fstab without device names & swap partition?
Message-ID:  <20110112190300.GC61893@in-addr.com>
In-Reply-To: <628423291.20110112210201@serebryakov.spb.ru>
References:  <628423291.20110112210201@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Regards,

Gary



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