From owner-freebsd-questions@FreeBSD.ORG Mon Dec 23 19:21:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 10D21CAC for ; Mon, 23 Dec 2013 19:21:23 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B9DDE1772 for ; Mon, 23 Dec 2013 19:21:21 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id rBNJLEVq011933; Mon, 23 Dec 2013 12:21:14 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id rBNJLEuc011930; Mon, 23 Dec 2013 12:21:14 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 23 Dec 2013 12:21:14 -0700 (MST) From: Warren Block To: "Mike." Subject: re: [10.0RC2] partition labels during install In-Reply-To: <201312231026080790.007089CA@smtp.24cl.home> Message-ID: References: <201312221402470675.0128102B@smtp.24cl.home> <201312231026080790.007089CA@smtp.24cl.home> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 23 Dec 2013 12:21:14 -0700 (MST) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Dec 2013 19:21:23 -0000 On Mon, 23 Dec 2013, Mike. wrote: > On 12/22/2013 at 1:56 PM Warren Block wrote: > > |On Sun, 22 Dec 2013, Mike. wrote: > | > |> OK, I looked and did not see anything under /dev/ufs or > |> /dev/gpt. > | > |> I'll use glabel outside of the bsdinstall process to put > labels > |> on the partitions. I've used that process on another box, > and > |> it works fine. > | > |Both GPT and UFS labels do not take up extra metadata space > that can be > |overwritten if the user is not careful about devices. You did > not say > |whether this was a GPT disk, but UFS labels are fine also. > | > |In other words: don't use generic glabels unless there is no > other > |choice. > ============= > > I followed the example here: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-gl > abel.html#idp80664496 > > with results similar (i.e., /dev/label/rootfs , etc. ) to those > in the example. That will work, but is not as nice as GPT labels. >> You did not say whether this was a GPT disk, > > Is there a way to check this? The first line of 'gpart show' output for a disk identifies the partitioning scheme: % gpart show ada0 => 34 500118125 ada0 GPT (238G) ... GPT labels can be set with 'gpart modify -l mynewlabel ...'. On MBR, I use UFS labels where possible, and glabel only where the partition has no built-in metadata, like swap.