From owner-freebsd-stable@FreeBSD.ORG Wed Jan 12 20:00:14 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 53DD91065698 for ; Wed, 12 Jan 2011 20:00:14 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id BD66B8FC1C for ; Wed, 12 Jan 2011 20:00:12 +0000 (UTC) Received: by bwz12 with SMTP id 12so815292bwz.13 for ; Wed, 12 Jan 2011 12:00:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.64.139 with SMTP id e11mr1095339bki.97.1294862411432; Wed, 12 Jan 2011 12:00:11 -0800 (PST) Received: by 10.204.151.212 with HTTP; Wed, 12 Jan 2011 12:00:10 -0800 (PST) X-Originating-IP: [209.66.78.50] In-Reply-To: References: <628423291.20110112210201@serebryakov.spb.ru> Date: Wed, 12 Jan 2011 15:00:10 -0500 Message-ID: From: Mark Saad To: Freddie Cash Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 20:00:14 -0000 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 possibl= e >> 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 > > Then point to the label in /etc/fstab: > > /dev/label/swap =C2=A0 =C2=A0swap =C2=A0 sw ... > > > -- > Freddie Cash > fjwcash@gmail.com > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > glabel is also great for doing silly things like things like this glabel label leftdrive0 /dev/ad4 glabel label rightdrive0 /dev/ad5 gmirror label -v -b load raid1 leftdrive0 rightdrive0 this way when you get a gmirror status you can easily tell which drive is doing what, red rebuilding etc . --=20 mark saad | nonesuch@longcount.org