I have a grub multiboot , Windows & 3 linuxes

Question what is the best way to install freebsd. Because the installer wants freebsd to be alone. As i use grub there is no need for a freebsd-boot-partition. Also for the ease of booting i want to use ufs and not zfs. It makes booting much easier. And ufs is a good filesystem.
I think unpacking the .tgz files manually could be an option. Feel free to tell me your ideas for my configuration.
 
I have a page that includes some stuff about booting FreeBSD from grub2. https://srobb.net/grub2.html UFS is fine, though patovm04 has a howto at https://forums.freebsd.org/threads/...gside-another-os-sharing-the-same-disk.75734/ sharing a drive with zfs. I've used it for both of my multiboot laptops, and I've forgotten how I installed FreeBSD to share with Linux previously. I *think* I booted into Linux and used fdisk to make a FreeBSD UFS partition and then, booted from the FreeBSD install USB and chose that partion to use for install. So, I think you can boot from the FreeBSD boot partition, but make sure you know all your Linux or Window partitions and can then choose, during the installation, to use that partition. Then when done, manually edit /boot/grub/grub.cfg, or wherever your distribution uses for grub.cfg and use those lines from my page. My page is a bit older, so also search for UEFI on the page, since at the time I wrote it, it had a separate section.
I hope this helps.


menuentry "FreeBSD" {
insmod ufs2
insmod part_gpt
set root=(hd0,4)
chainloader /boot/loader.efi
}

That was on a machine with Fedora's grub and I put it in boot/efi/EFI/fedora/custom.cfg, but I've usually put the custom.cfg in /boot/grub2 or similar. So many distributions seem to have different ways of doing it.
The FreeBSD partition was on partition 4
 
If you use legacy bios computer, you can use msdos or GPT partition table. With legacy bios computer, let linux´s grub handle boot. You need to add FreeBSD by hand to the linux´s grub by editing /etc/grub.d/40_custom file.

…. add entry (if FreeBSD is sda1)

sh:
menuentry "FreeBSD boot loader "{
set root="hd0,1"
kfreebsd /boot/loader
}

An another way to add FreeBSD to linux’s grub, is to use chainloader

… add a line


sh:
menuentry "FreeBSD chainloader" {
insmod ufs2
set root=(hd0,1)
chainloader +1
}

Update grub after editing

sh:
sudo update-grub

My partition schema in this computer:

 
Back
Top