Multiboot - NetBSD
NetBSD also supports GRUB multiboot specifications. Hence, it's very easy to boot the operating system up. The full specification is available here: https://www.gnu.org/software/grub/manual/grub/html_node/NetBSD.html.
Instructions for Boot
These are the instructions for setting up boot sequences for GNU/Linux. They are multi-boot standard procedures.
#1 - Search and Set Root Partition
You need to seek out your root partition via search command and set command for setting the root partition to it. You also need to load the part_bsd
module.
grub> insmod part_bsd
grub> set root=(hd0,netbsd1)
#2 - Load the Kernel
Next is to load the kernel using knetbsd command. You can load it as follows:
# Basic
grub> knetbsd /netbsd
# With kernel arguments
grub> knetbsd /netbsd -s -v
#3 - Load the Kernel Modules
Next is to load the kernel modules using knetbsd_module_elf command:
grub> knetbsd_module_elf /stand/amd64/6.0/modules/ffs/ffs.kmod
#4 - Boot it
Once done, you can proceed to execute boot sequences using the boot command and release the boot sequence to that operating system.
grub> boot
That's all about multibooting netBSD.