[Bug 222425] GPT broken after "gpart backup ada0 | gpart restore -F ada1"

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 06 Oct 2021 07:27:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222425

--- Comment #17 from Toomas Soome <tsoome@freebsd.org> ---
(In reply to Piotr Pawel Stefaniak from comment #16)

Please note that GPT does need /boot/pmbr for BIOS (or UEFI CSM) boot (UEFI
boot does not use pmbr, as uefi firmware does find and read ESP to load and
start boot program).

However, if gpart restore is used with different size disk - I am not really
sure it does correct thing - the source must be inspected there. The problem
is, GPT does record disk size in terms of first and last usable LBA, and the
copy of GPT and partition array is stored at the end of the disk. So, if the
restore function is doing verbatim restore (without needed adjustments), then
bad things will happen.

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