From owner-freebsd-questions@FreeBSD.ORG Wed Oct 24 00:47:08 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D789341B for ; Wed, 24 Oct 2012 00:47:08 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 8E0918FC08 for ; Wed, 24 Oct 2012 00:47:08 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q9O0l1Yu021574; Tue, 23 Oct 2012 18:47:01 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q9O0l0R9021571; Tue, 23 Oct 2012 18:47:01 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 23 Oct 2012 18:47:00 -0600 (MDT) From: Warren Block To: freebsd@johnea.net Subject: Re: 9.1 and gmirror with GPT? In-Reply-To: <5086C7EB.9020104@johnea.net> Message-ID: References: <5082EAEE.4040609@johnea.net> <50833F78.1060609@bnrlabs.com> <5085C743.8000508@johnea.net> <5086C7EB.9020104@johnea.net> 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.2.7 (wonkity.com [127.0.0.1]); Tue, 23 Oct 2012 18:47:01 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 00:47:08 -0000 On Tue, 23 Oct 2012, freebsd@johnea.net wrote: > In recent years I've just been creating a swap partition and one big root partition. It just seems as soon as I make all the traditional partitions, one runs out of room. > > Do you feel there are any major disadvantages of this approach? Backup of split filesystems can be easier. The traditional split-filesystem approach kind of separates things by use, and some people create a separate /home also. The advantage of one big root is efficient use of free space on small drives. > To create a swap and then a root that fills the rest of the disk, must the swap be created first, like this: > > gpart add -t freebsd-swap -a 4k -s 4g mirror/gm0s1 > gpart add -t freebsd-ufs -a 4k mirror/gm0s1 > > Is there any other way to tell gpart to create the / partition using all space except 4G? I'm afraid it requires one to Use Math(tm). gpart show will at least show the real capacity of a drive, instead of the diagonally-measured inflated units used by drive vendors.