From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 03:46:07 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F018CF24; Fri, 8 Feb 2013 03:46:07 +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 795121F2; Fri, 8 Feb 2013 03:46:07 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r183k4b7060366; Thu, 7 Feb 2013 20:46:04 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r183k45u060363; Thu, 7 Feb 2013 20:46:04 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 7 Feb 2013 20:46:04 -0700 (MST) From: Warren Block To: "Teske, Devin" Subject: RE: How to add unused space to an existing install In-Reply-To: <13CA24D6AB415D428143D44749F57D7201EA5CDF@ltcfiswmsgmb21> Message-ID: References: <6C52D891D96E0ACEBF1531DD@utd71538.campus.ad.utdallas.edu> <13CA24D6AB415D428143D44749F57D7201EA5CDF@ltcfiswmsgmb21> 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]); Thu, 07 Feb 2013 20:46:04 -0700 (MST) Cc: Paul Schmehl , "dteske@freebsd.org" , 'FreeBSD Questions List' 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: Fri, 08 Feb 2013 03:46:08 -0000 On Thu, 7 Feb 2013, Teske, Devin wrote: > On 7 Feb 2013, Paul Schmehl wrote: >> I've been doing some more research on this problem, and I've discovered >> that bsdlabel has a 2 to the 32nd limit on disk size. It appears I have to >> use gpart instead. Is that not correct? >> > > Only if your disk is larger than 2TB (or 2048GB). If you try to partition a >2TB disk with fdisk the most you can hope to access is 2TB (the rest will be forever unused). > > I was noticing that that the total size for all your partitions is about 744.95GB -- far short of the maximum addressable of 2TB. So you *could* gain access to more space with the tricks discussed here, but yes... > > You will be required to use gpart to address more than 2TB of storage on a single discrete disk. gpart creates a GPT layout versus fdisk which creates an MBR layout. GPT uses length identifiers double that of MBR so you should be able to address up to 16 million terabytes on any single discrete disk with gpart. That ought to be enough for a while (the largest storage array known to exist today is in the Petabytes ... thousands of terabytes -- nobody has yet produced a single storage device of contiguous addressable space matching-or-exceeding 1024 petabytes or 1M terabytes; so we have a ways to go before anybody reaches the limit of 2^64). To be exact: fdisk can only deal with MBR partitioning. bsdlabel only deals with FreeBSD partitions. Both align partitions to CHS values, which don't apply to disks made in the last couple of decades. This means that partitions created by these two tools will almost certainly be misaligned when created on an Advanced Format (4K) hard drive or an SSD. gpart(8) can do GPT *and* MBR *and* bsdlabel and other partition schemes. It does all the things that fdisk and bsdlabel do, and more. For examples of creating both GPT and MBR/bsdlabel partitioning with gpart: http://www.wonkity.com/~wblock/docs/html/disksetup.html