From owner-freebsd-stable@FreeBSD.ORG Wed Jan 12 19:19:12 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 BFC371065675 for ; Wed, 12 Jan 2011 19:19:12 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 781AC8FC14 for ; Wed, 12 Jan 2011 19:19:12 +0000 (UTC) Received: by qyk8 with SMTP id 8so3883600qyk.13 for ; Wed, 12 Jan 2011 11:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xT5SWpVmqZpeBaFMWYNIeiFOX3sIRlATxHMYPxlJjjA=; b=dcrVdNyFZcBKMbPOv0FE8qCQwq3DTSjXR9YG/IAReUTypgN3bxTVub7l5km5ixMKSa oAgZEzn4g93ItkGDOEKDEx7SDQlrcr7UFYvq0JU1mJB0wmvkuk8UJTdup4TbtEYu2rQi rGFg54H9LYpohedQadHpX9wGCN73U7rRiGSyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Q9bYKaGv9hNJoqroqGHZK1MuXSimN5RSmRmGkRglZUZLztPO1tQjP05Nb5PkQFu6o4 DhsyT+aqj1dGM1Q0sBHuQzxYjiEg0zgp+8TiSVPDYOpaBrcb9sZ10vVI3882QfnPzblC 82tgKcTnEqkOhf9926l7FjNJ0rl0Pgi9Vwzm0= MIME-Version: 1.0 Received: by 10.229.87.75 with SMTP id v11mr1117874qcl.183.1294858451833; Wed, 12 Jan 2011 10:54:11 -0800 (PST) Received: by 10.229.97.145 with HTTP; Wed, 12 Jan 2011 10:54:11 -0800 (PST) In-Reply-To: <628423291.20110112210201@serebryakov.spb.ru> References: <628423291.20110112210201@serebryakov.spb.ru> Date: Wed, 12 Jan 2011 10:54:11 -0800 Message-ID: From: Freddie Cash To: Lev Serebryakov 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 19:19:12 -0000 2011/1/12 Lev Serebryakov : > =C2=A0Now, 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? Use glabel(8) to label the device: # glabel label swap ada0s1b Then point to the label in /etc/fstab: /dev/label/swap swap sw ... --=20 Freddie Cash fjwcash@gmail.com