[Bug 222425] MBR broken after "gpart backup ada0 | gpart restore -F ada1"
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Sep 18 11:12:11 UTC 2017
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 at FreeBSD.org
Reporter: chris at 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.
More information about the freebsd-bugs
mailing list