Date: Mon, 18 Sep 2017 11:12:11 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222425] MBR broken after "gpart backup ada0 | gpart restore -F ada1" Message-ID: <bug-222425-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222425 Bug ID: 222425 Summary: MBR broken after "gpart backup ada0 | gpart restore -F ada1" Product: Base System Version: 11.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: chris@cretaforce.gr There is a problem with the MBR after running "gpart backup ada0 | gpart restore -F ada1" and because of this it's not possible to boot using this disk. This issue happens only with FreeBSD 11.1 and maybe 11.0. It doesn't happen with 10.3. How to reproduce the issue: gpart backup ada0 | gpart restore -F ada1 gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada1 Then boot using ada1 I see: gptboot: invalid primary GPT header gptboot: invalid backup GPT header gptboot: unable to load GPT The only workaround is copying the MBR from ada0 to ada1: gpart backup ada0 | gpart restore -F ada1 dd if=/dev/ada0 of=/dev/ada1 bs=512 count=40 gpart recover ada1 gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada1 More information here: https://forums.freebsd.org/threads/62376/ -- 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-8>
