Date: Wed, 06 Oct 2021 07:27:14 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 222425] GPT broken after "gpart backup ada0 | gpart restore -F ada1" Message-ID: <bug-222425-227-N0FxGMKSCb@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-222425-227@https.bugs.freebsd.org/bugzilla/> References: <bug-222425-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222425 --- 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), th= en bad things will happen. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222425-227-N0FxGMKSCb>