Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2016 13:20:47 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Perry Hutchison <perryh@pluto.rain.com>
Cc:        brandon.wandersee@gmail.com, freebsd-questions@freebsd.org
Subject:   Re: "gpart add" falsely claiming "No space left on device"
Message-ID:  <alpine.BSF.2.20.1609091312370.90996@wonkity.com>
In-Reply-To: <57d276f6.CwaoGNki0kQYiZns%perryh@pluto.rain.com>
References:  <57ce6e64.EITkODjuwy6pZ4L+%perryh@pluto.rain.com> <alpine.BSF.2.20.1609060814030.1903@wonkity.com> <57cf9b95.Zj/JGHeshaKL6Zr5%perryh@pluto.rain.com> <alpine.BSF.2.20.1609070643120.24506@wonkity.com> <57d0f29b.3QNvCze7LJDzs0SU%perryh@pluto.rain.com> <86wpimm6om.fsf@WorkBox.Home> <57d276f6.CwaoGNki0kQYiZns%perryh@pluto.rain.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1609091312370.90996>