3

I've been following an installation guide for FreeBSD and this part seems to be skipped. When I reboot my system after the initial installation it loads to grub boot loader, but in command mode as no options have been setup yet. I have windows10 installed on another drive.

How do I load FreeBSD from this command mode?

1
  • 1
    yeah, it says: 'GNU GRUB version 2.02' 'Minimal BASH-like line editing is supported...' and then 'grub>'
    – koko
    Feb 23, 2020 at 17:54

2 Answers 2

4

Run ls to list the partitions and replace hd0,X with your root partition:

set root=(hd0,X)
kfreebsd /boot/kernel/kernel
boot
7
  • 1
    error: can't find command 'root'
    – koko
    Feb 23, 2020 at 18:10
  • the kernel command doesn't seem to work for me either
    – koko
    Feb 23, 2020 at 18:16
  • 1
    @koko use kfreebsd instead of kernel
    – GAD3R
    Feb 23, 2020 at 18:21
  • can't find 'kfreebsd' either, have I missed something during installation?
    – koko
    Feb 23, 2020 at 18:25
  • 1
    @koko here is how to boot freebsd from grub2 help.ubuntu.com/community/Grub2%20Other%20Os#Direct_Kernel_Boot .kfreebsd is a grub command.
    – GAD3R
    Feb 23, 2020 at 18:29
0

I'd suggest to install GRUB2WIN.
I have a similar setup; FreeBSD multi-booted with GNU/Linux.

For EFI hardware:

set root=(hdX,Y)
chainloader /boot/loader.efi
boot

For non-EFI hardware:

set root=(hdX,Y)
kfreebsd /boot/loader
boot

For EFI hardware + ZFS:

set root=(hdX,Y)
chainloader /@/boot/loader.efi
boot

For non-EFI hardware + ZFS:

set root=(hdX,Y)
kfreebsd /@/boot/loader
boot

All of these methods work for me, and I hope they do for you, too.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .