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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 18 00:43:22 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222425

Louis <lrb at minmet.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lrb at minmet.org

--- Comment #13 from Louis <lrb at minmet.org> ---
I had this exact same problem (11.2), and this is the only page that I was able
to find which had the same complaints.

Nothing I did fixed it. Eventually, after wiping the disk, I tried a clean
install, having concluded that it might be a hardware problem. It booted.

Curious.

Then it hit me:

gpart backup ada0 | gpart restore -F ada1
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada1

actually *is* the problem.

I ended up manually repartitioning the disk with

gpart create

then manually creating the partitions (and doing the gpart bootcode bit as
above).

All works.

Guesses: either something is wrong with backup/restore, or having a larger disk
causes the problem. Since examining the output of "backup" doesn't indicate
anything disk-size related that changes, I'm guessing that "restore" doesn't do
quite the same thing as "create".

Possibly if one did a "create" prior to the backup/restore, it might work out
differently.

Anyway, this has been my experience, so if nothing else works and you landed on
this page, try my "solution" and good luck to y'all.

(If nothing else, it got me to create an account!)

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


More information about the freebsd-bugs mailing list