Dual booting Linux and FreeBSD on a single drive

Hello, i wanted to dualboot FreeBSD and Linux. I don't know how to do it. I already have Xubuntu installed on my machine.

I'm pretty sure it would be straightforward.
My harddrive is formatted as GPT (UEFI)
I'll might choose GhostBSD, but i've still have chosed between FreeBSD and GhostBSD.

Any ideas ?

Thanks !
 
If you have grub installed, install FreeBSD on a free partition, reboot into Linux, find out the uuid of the partition you installed freebsd on, create the file
/etc/grub.d/40_custom with the following content:
Code:
menuentry "freebsd" {
insmod part_gpt
insmod ufs2
search --no-floppy --fs-uuid 624ff8c1090d8148 --set root
chainloader /boot/loader_4th.efi
}
where fs-uuid is uuid of your partition freebsd is installed on.
And then (in root terminal):
# export PATH=$PATH:/sbin
# update-grub
# reboot
 
Let's say I installed freebsd on sdi2 (linux notation). Find the uuid of this partition:
Code:
lanin@debian2:/$ ls -lha /dev/disk/by-uuid |grep sdi2
lrwxrwxrwx 1 root root  10 aug 17 14:06 62584cb57671f408 -> ../../sdi2
In gnome-disk-utility it looks like this
gnome-disk-utility.png
 
So i can't install GhostBSD, since it seems to lock up on setting up amdgpu, im gonna try to use the dd command instead of balena etcher. and if it the live usb still can't boot i'll just use FreeBSD, and set it up by myself, i've never got that problem since i already did a mono boot with ghostbsd and it worked absoutely fine.
 
Ok so it seems that, GhostBSD does not wanna work, so i'll use FreeBSD, isn't there a script to install a desktop environnement quickly ?
 
I choose the auto option and its created an freebsd partition and swap whitout i have to do something ! now let me change my grub configuration and it should boot
 
so ok, here is my 40_custom file:


#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "freebsd" {
insmod part_gpt
insmod ufs2
search --no-floppy --fs-uuid 62fcecf90e518464 --set root
chainloader /boot/loader_4th.efi
 
I also use bash, but i don't have the export command.

This does not work ?
Code:
lanin@debian2:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
lanin@debian2:~$ export PATH=$PATH:/sbin
lanin@debian2:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin
lanin@debian2:~$
 
Back
Top