Next: DOS/Windows, Previous: GNU/Linux, Up: Some caveats on OS-specific issues [Contents][Index]
Booting a NetBSD kernel from GRUB is also relatively easy: first set
GRUB’s root device, then load the kernel and the modules, and finally
run boot.
grub> insmod part_bsd grub> set root=(hd0,netbsd1)
For a disk with a GUID Partition Table (GPT), and assuming that the NetBSD root partition is the third GPT partition, do this:
grub> insmod part_gpt grub> set root=(hd0,gpt3)
knetbsd:
grub> knetbsd /netbsd
Various options may be given to knetbsd. These options are,
for the most part, the same as in the NetBSD boot loader. For instance,
to boot the system in single-user mode and with verbose messages, do
this:
grub> knetbsd /netbsd -s -v
knetbsd_module_elf. A typical example is the module for the
root file system:
grub> knetbsd_module_elf /stand/amd64/6.0/modules/ffs/ffs.kmod
boot (see boot).