How to boot GhostBSD from a GRUB 2 config?

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
rowo
Posts: 19
Joined: Thu Jul 12, 2018 10:35 am

How to boot GhostBSD from a GRUB 2 config?

Post by rowo »

I installed GhostBSD from GhostBSD11.1-xfce-amd64.iso into the 3rd partition (DOS PT) of my second HDD, that is /dev/sdb3 for Linux and /dev/ada1s3 for BSD. I tried various different entries for grub.cfg (using openSUSE Tumbleweed) but none of them works.

The first three entries result in an error message "invalid signature", the last two ones in
"unknown file system
you must load the kernel first"

I am sure to use the correct partition because I can easily mount it under Linux:
mount -r -t ufs -o ufstype=ufs2 /dev/sdb3 /mnt

So what is the correct entry for grub.cfg?

Content for GhostBSD in grub.cfg:

Code: Select all

menuentry "GhostBSD 11.1 @ (hd1,3)" {
   set root=(hd1,msdos3)
   chainloader +1
}
menuentry "GhostBSD 11.1 @ (hd1,3)" {
   set root=(hd1,3)
   chainloader +1
}
menuentry "GhostBSD 11.1 @ (hd1,3)" {
   insmod ufs2
   insmod bsd
   set root=(hd1,3)
   chainloader +1
}
menuentry "GhostBSD 11.1 @ (hd1,3)" {
   insmod ufs2
   insmod bsd
   set root=(hd1,3)
   kfreebsd /boot/loader
   kfreebsd_loadenv /boot/device.hints
   set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ada1s3a
   set kFreeBSD.vfs.root.mountfrom.options=rw
}

menuentry "GhostBSD 11.2 @ (hd1,3)" {
   insmod ufs2
   insmod bsd
   set root=(hd1,3)
   kfreebsd /boot/kernel/kernel
   kfreebsd_loadenv /boot/device.hints
   set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ada1s3a
   set kFreeBSD.vfs.root.mountfrom.options=rw
}
User avatar
Powerwagon77
Posts: 18
Joined: Sat Jul 07, 2018 2:14 pm

Re: How to boot GhostBSD from a GRUB 2 config?

Post by Powerwagon77 »

I'm dual booting from Fedora, though I'm booting less and less from it. Here is my grub2 entry:

menuentry "GhostBSD" {
set root='hd0,msdos1'
kfreebsd /boot/loader
}

You should be able to modify my second line to hd1,msdos3 and be good to go.
Hobthrust
Posts: 1
Joined: Mon Nov 04, 2019 11:05 am

Re: How to boot GhostBSD from a GRUB 2 config?

Post by Hobthrust »

I'm not the OP but same problem - your solution worked, thanks! Using gpt rather than mbr but other than that, the same.
Post Reply