Don't know what else should I try GRUB2 + Slackware 15 + FreeBSD 13

Hi everyone, after reading several forum posts, reading a lot trying to dual boot and not being successful... I come to you!

I was trying to install FreeBSD to try it out on a laptop that I use to test Linux distros and that I usually have Slackware with LILO setup. No problem, but since Lilo can't support ZFS ( or I couldn't find a way to do it) I installed grub 2.

I won't be detailing all the back and forth involved of trying to setup lilo in several ways to boot freeBSD or chainload to freebsd bootloader here.
Long story short my laptop has a GPT/legacy partitions ( not UEFI ).

freebsd2.jpg
freebsd3.jpg


/dev/sda1 - is my boot/ for all linux that i used to have with multiple kernels
/dev/sda3 - slackware
/dev/sda4 - freeBSD boot partition
/dev/sda5 - home/
/dev/sda6 - freebsd zfs partition
/dev/sda8 - is the BIOS GRUB partition

grub boot and freebsd boot partitions just exists now because of repeated tries to setup dual boot.
FreeBSD boot partition I created following the manual.
When I installed freebsd, it replaced the initial lilo that I had setup and FreeBSD was working fine, even bootable enviroments, but then I couldn't use linux.
After that I used a Slackware USB to go to my partition and install grub2 from linux, which then made all my linux kernels available again.
My Chanllenge now is setting up an entry in GRUB menu that actually works for FreeBSD.

My ZFS setup is the following

freebsd1.jpg


My Grub 40_custom is similar to the one on the documentation and I tried several other suggestions that I found over the internet to no success.

EX:
Code:
GRUB Documentation

menuentry "FreeBSD" {
          insmod zfs
          search --set=root --label freepool --hint hd0,msdos7
          kfreebsd /freebsd@/boot/kernel/kernel
          kfreebsd_module_elf /freebsd@/boot/kernel/opensolaris.ko
          kfreebsd_module_elf /freebsd@/boot/kernel/zfs.ko
          kfreebsd_module /freebsd@/boot/zfs/zpool.cache type=/boot/zfs/zpool.cache
          set kFreeBSD.vfs.root.mountfrom=zfs:freepool/freebsd
          set kFreeBSD.hw.psm.synaptics_support=1
}

I think my main issue is How should I set this entry for my setup.
Being a similar entry like the one above, chainloading or something else.

I tried using (hd0,gpt4) to go to the freebsd boot and (hd0,gpt6) for zfs partition, used the different disk labels, loading modules, not loading modules... ? I will keep digging but would be nice if someone already had the answer lol

If any info is still needed please let me know
Thanks for the help and sorry for the english. Is not my first language.
 
I use grub to boot a small ufs-partition which contains only /boot/ directory + a loader.conf file.
In this loader.conf file i specify to load the kernel from a zfs-partition containing the / directory.
grub -> ufs /boot -> zfs root + kernel.

My loader.conf :
Code:
currdev="zfs:ZT2/ROOT/default:"
vfs.root.mountfrom="zfs:ZT2/ROOT/default"
zfs_load="YES"

Code:
 
Back
Top