I reformatted my hardrive with all of the partitions that I knew I wanted. I formatted the partition that I wanted to use for FreeBSD as fat32 (which was /dev/sda3). I then installed my main OS on /dev/sda2 (/dev/sda1 is swap). I also used Grub.
Installed FreeBSD on the fat32 partition, and rebooted to my main OS. Added the following to the file /etc/grub.d/40_custom
menuentry "FreeBSD" {
set root='(hd0,3)'
chainloader +1
}
Notice the (hd0,3) above...the 3 is the number of the partition that I installed FreeBSD on...your partition number may vary.
After adding that to the file, I saved and closed it. Then I ran...
update-grub
Rebooted, and FreeBSD was listed in the Grub.
This worked well for me, but I don't know if it's the best method.
Edited to add: I also chose UFS for my FreeBSD install rather than ZFS.
]]>Read 12.2.1. The Boot Manager: https://www.freebsd.org/doc/handbook/bo … ction.html
I have done this but it was a while ago and it is all blurry now. I can tell you this:
1. Install Devuan first without GRUB
2. Then, install FreeBSD with boot0
This ought to do it. It is fairly easy as long as you don't install GRUB.
At the moment my /etc/grub.d/custom_40
menuentry 'FreeBSD' --class freebsd --class bsd --class os {
insmod part_msdos
insmod ufs2
set root="(hd0,msdos1,bsd1 >)"
kfreebsd /boot/loader
}
Perhaps the fourth or fifth combination I tried
Another important data.
Making
fdisk -l
gives:
# fdisk -l
Disk /dev/sda: 298 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x9b3fc34f
Disposit. Boot Start End Sectors Size Id System
/dev/sda1 * 64 201326655 201326592 96G a5 FreeBSD
/dev/sda3 201820158 625141556 423321399 201,9G 5 Extended
/dev/sda5 461301760 467159039 5857280 2,8G 82 Linux swap / Solaris
/dev/sda6 467161088 625141556 157980469 75,3G 83 Linux
Any idea? I think that devuan's grub doesn't support UFS but, I am not sure
]]>