Project

General

Profile

Actions

Bug #2830

closed

gpt(8) doesn't align partitions to 1MB blocks

Added by ftigeot over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06/30/2015
Due date:
% Done:

100%

Estimated time:

Description

The GPT partition scheme management utility, gpt(8) doesn't manage partition alignment at all.

  1. gpt create /dev/da1
  2. gpt boot /dev/da1
  3. gpt show /dev/da1
    start size index contents
    0 1 - PMBR
    1 1 - Pri GPT header
    2 32 - Pri GPT table
    34 2097152 0 GPT part - DragonFly Label32

We can see the just created boot partition starts on the legacy sector 34 offset, 17KB from the start of the device.

This isn't divisible by the physical sector size of modern disk devices (4KB).
It isn't optimal with SSD either: they typically use 8KB or bigger erase blocks.

gpt(8) should behave in the same as disklabel64 and align partitions to 1MB boundaries.


Files


Related issues 1 (1 open0 closed)

Related to Bug #2674: GPT SupportNew05/28/2014

Actions
Actions

Also available in: Atom PDF