Node:Loading an operating system directly, Next:, Up:General boot methods



How to boot an OS directly with GRUB

Multiboot (see Multiboot Specification) is the native format supported by GRUB. For the sake of convenience, there are also support for Linux, FreeBSD, NetBSD and OpenBSD. If you want to boot other operating systems, you will have to chain-load them (see Chain-loading).

Generally, GRUB can boot any Multiboot-compliant OS in the following steps:

  1. Set GRUB's root device to the drive where the OS images are stored by the command root (see root).
  2. Load the kernel image by the command kernel (see kernel).
  3. If you need modules, load them with the command module (see module) or modulenounzip (see modulenounzip).
  4. Run the command boot (see boot).

Linux, FreeBSD, NetBSD and OpenBSD can be booted in a similar manner. You can load a kernel image by the command kernel and then run the command boot. If the kernel requires some parameters, just append the parameters to kernel, after the file name of the kernel. Also, please refer to OS-specific notes, for the information on your OS-specific issues.