Discussion:
grub2, FreeBSD, GPT
(too old to reply)
Victor Sudakov
2018-05-08 05:50:27 UTC
Permalink
Dear Colleagues,

Have you ever tried to boot FreeBSD from a GPT partition with grub2 (no UEFI)?

In my test layout, /dev/ada0p1 is the freebsd-boot partition and
/dev/ada0p2 is the freebsd-ufs partition. However grub2 says "invalid
signature" about both of them:

grub> set root=(hd0,gpt1)
grub> chainloader +1
error: invalid signature
grub> set root=(hd0,gpt2)
grub> chainloader +1
error: invalid signature
grub>
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
AS43859
Victor Sudakov
2018-05-08 09:34:27 UTC
Permalink
Post by Victor Sudakov
Have you ever tried to boot FreeBSD from a GPT partition with grub2 (no UEFI)?
In my test layout, /dev/ada0p1 is the freebsd-boot partition and
/dev/ada0p2 is the freebsd-ufs partition. However grub2 says "invalid
grub> set root=(hd0,gpt1)
grub> chainloader +1
error: invalid signature
grub> set root=(hd0,gpt2)
grub> chainloader +1
error: invalid signature
grub>
I think I tried something like that, but it didn't work.
What works, using the SystemRescue CD written to USB stick, is
(type c to go to command line)
set root=(hd1,gpt11) (or whatever the actual partition number is)
kfreebsd /boot/loader
boot
Thank you, this worked for me.

However, FreeBSD's own grub2 (from ports) seems buggy. I've just
submitted a bug report:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228062
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
AS43859
Loading...