From owner-freebsd-stable@FreeBSD.ORG Wed Jan 12 20:11:15 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 063F5106567A for ; Wed, 12 Jan 2011 20:11:15 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 967E78FC1F for ; Wed, 12 Jan 2011 20:11:14 +0000 (UTC) Received: by eyf6 with SMTP id 6so509155eyf.13 for ; Wed, 12 Jan 2011 12:11:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.71.65 with SMTP id g1mr1088590bkj.178.1294863073275; Wed, 12 Jan 2011 12:11:13 -0800 (PST) Received: by 10.204.151.212 with HTTP; Wed, 12 Jan 2011 12:11:13 -0800 (PST) X-Originating-IP: [209.66.78.50] In-Reply-To: References: <628423291.20110112210201@serebryakov.spb.ru> Date: Wed, 12 Jan 2011 15:11:13 -0500 Message-ID: From: Mark Saad To: stable@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: 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 20:11:15 -0000 On Wed, Jan 12, 2011 at 3:01 PM, Freddie Cash wrote: > On Wed, Jan 12, 2011 at 12:00 PM, Mark Saad wrot= e: >> On Wed, Jan 12, 2011 at 1:54 PM, Freddie Cash wrote: >>> 2011/1/12 Lev Serebryakov : >>>> =C2=A0Now, with "newfs -L name", geom_label and /dev/ufs/* it is possi= ble >>>> 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. =C2=A0:) > > -- > Freddie Cash > fjwcash@gmail.com > 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 . --=20 mark saad | nonesuch@longcount.org