Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2018 19:27:53 +0000
From:      Hubert Hauser <hubot@mail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Can anyone help me with booting FreeBSD from GRUB?
Message-ID:  <a31efcf1-2bb1-424f-f9d7-056b625ff22f@mail.com>

next in thread | raw e-mail | index | archive | help
I have got installed Debian 9 Stretch and FreeBSD with UFS boot
partition and root filesystem on ZFS. I use GPT scheme of partitioning
on a legacy BIOS. Here's content of /etc/grub.d/40_custom:

menuentry "FreeBSD" {
    insmod bsd
    insmod ufs2
    set root='(hd0,gpt5)'
    chainloader +1
}

When I'm trying to boot FreeBSD through GRUB I receive `error: attempt
to read or write outside of disk 'hd0'`.

My partition layout is:

  * ada0 - primary 3 TB hard drive with GPT partition scheme
  * ada0p1 - BIOS boot
  * ada0p2 - linux filesystem, mountpoint: /boot
  * ada0p3 - linux filesystem LVM on LUKS
  * ada0p4 - FreeBSD boot, gptboot
  * ada0p5 - FreeBSD UFS, mountpoint: /boot, required by geli to boot
    FreeBSD
  * ada0p6 - FreeBSD swap
  * ada0p7 - FreeBSD ZFS on geli

My actual config

menuentry "FreeBSD" {
    insmod bsd
    insmod ufs2
    insmod part_gpt
    set root='(hd0,gpt4)'
    kfreebsd /boot/loader
}

doesn't work.

It returns an error: unknown filesystem.

Can anyone help me?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31efcf1-2bb1-424f-f9d7-056b625ff22f>