grub2, FreeBSD, GPT

Victor Sudakov vas at mpeks.tomsk.su
Tue May 8 09:34:33 UTC 2018


Thomas Mueller wrote:
> 
> > 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>
> 
> 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


More information about the freebsd-questions mailing list