From owner-freebsd-stable@FreeBSD.ORG Wed Jan 12 19:03:05 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50980106564A for ; Wed, 12 Jan 2011 19:03:05 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id 20EF28FC19 for ; Wed, 12 Jan 2011 19:03:05 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1Pd5yG-0008Eb-Pi; Wed, 12 Jan 2011 14:03:00 -0500 Date: Wed, 12 Jan 2011 14:03:00 -0500 From: Gary Palmer To: Lev Serebryakov Message-ID: <20110112190300.GC61893@in-addr.com> References: <628423291.20110112210201@serebryakov.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <628423291.20110112210201@serebryakov.spb.ru> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: stable@freebsd.org Subject: Re: geom_label, fstab without device names & swap partition? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2011 19:03:05 -0000 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