[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Can anyone help me with booting FreeBSD from GRUB?
From:       Hubert Hauser <atypical () autisticstory ! net>
Date:       2018-12-09 19:47:04
Message-ID: 371b0099-0c0f-e8d2-867e-62c57b9ad646 () autisticstory ! net
[Download RAW message or body]

Hello!

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?

_______________________________________________
freebsd-hackers@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic