[Bug 274312] gpart restore fails with "gpart: entries '4': Invalid argument"

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Oct 2023 23:00:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274312

--- Comment #4 from Andrew "RhodiumToad" Gierth <andrew@tao11.riddles.org.uk> ---
Incidentally the 2014 discussion seems to be claiming that that the spec
doesn't give a hard lower bound on the table size. This is incorrect: the spec
(UEFI version 2.9, section 5.3.1 "GPT Overview") says:

A minimum of 16,384 bytes of space must be reserved for the GPT Partition Entry
Array.

If the block size is 512, the First Usable LBA must be greater than or equal to
34 (allowing 1 block for the Protective MBR, 1 block for the Partition Table
Header, and 32 blocks for the GPT Partition Entry Array); if the logical block
size is 4096, the First Useable LBA must be greater than or equal to 6
(allowing 1 block for the Protective MBR, 1 block for the GPT Header, and 4
blocks for the GPT Partition Entry Array).

-- 
You are receiving this mail because:
You are the assignee for the bug.