From owner-freebsd-questions@freebsd.org Fri Sep 9 19:20:49 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2326DBD4474 for ; Fri, 9 Sep 2016 19:20:49 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CCE6EC7A for ; Fri, 9 Sep 2016 19:20:48 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u89JKlFA047573 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 9 Sep 2016 13:20:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u89JKlWt047570; Fri, 9 Sep 2016 13:20:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 9 Sep 2016 13:20:47 -0600 (MDT) From: Warren Block To: Perry Hutchison cc: brandon.wandersee@gmail.com, freebsd-questions@freebsd.org Subject: Re: "gpart add" falsely claiming "No space left on device" In-Reply-To: <57d276f6.CwaoGNki0kQYiZns%perryh@pluto.rain.com> Message-ID: References: <57ce6e64.EITkODjuwy6pZ4L+%perryh@pluto.rain.com> <57cf9b95.Zj/JGHeshaKL6Zr5%perryh@pluto.rain.com> <57d0f29b.3QNvCze7LJDzs0SU%perryh@pluto.rain.com> <86wpimm6om.fsf@WorkBox.Home> <57d276f6.CwaoGNki0kQYiZns%perryh@pluto.rain.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) 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]); Fri, 09 Sep 2016 13:20:47 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2016 19:20:49 -0000 On Fri, 9 Sep 2016, Perry Hutchison wrote: >>> List of what-all "attributes" can be set and what they do. >> >> See "ATTRIBUTES." > > There's no such section in the gpart(8) man page I'm looking at (on > FreeBSD 8.1). Support for 8.1 ended over four years ago. Improvements to man pages are not MFCed back to unsupported releases. >>> I suppose there must be some reason for leaving those >>> 3.0k and 492k free spaces around gpboot, but it isn't obvious. >> >> Partition alignment. > > Alignment to 4k makes sense if the physical sector size is 4k (as > is often the case with newer disk drives) -- but 1M? Seems a bit > much, which is why it would be useful for that page to include a > more detailed explanation. 1M is a useful value for several reasons. A partition aligned with 1M is aligned with all the smaller values. It also better fits with the larger internal block sizes used by SSDs and other flash devices. Starting the first data partition at 1M is a de facto standard and provides a little additional insurance that some rock-stupid partitioning tool will see the partition and not destroy it. At most, aligning to 1M wastes less than one meg of space. Not one gig, one meg. On UEFI systems, you can even use that small amount of space for an EFI partition. > Getting back to the original inquiry, I'm still mystified as to > why gpart won't create a partition in the space that it reports > as being free. Does anyone have a clue what is going on, or how > to find out? It could be an actual bug. gpart and the man page have been revised quite a bit over the last few years.