next up previous contents
Next: 2.2.3.1.4 Configuration Up: 2.2.3.1 Introduction Previous: 2.2.3.1.2 How to boot   Contents

2.2.3.1.3 Loading an operating system directly

Multiboot 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.

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'
  2. Load the kernel image by the command `kernel' .
  3. If you need modules, load them with the command `module' or `modulenounzip'.
  4. Run the command `boot'
Linux 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.

It is relatively easy to boot Linux from GRUB, because it somewhat resembles to boot a Multiboot-compliant OS.

  1. Set GRUB's root device to the same drive as Linux's. Probably the command `find /vmlinuz' or similar can help you.
  2. Load the kernel:
grub> kernel /vmlinuz root=/dev/hda1
If you need to specify some kernel parameters, just append them to the command. For example, to set `vga' to `ext', do this:

grub> kernel /vmlinuz root=/dev/hda1 vga=ext


next up previous contents
Next: 2.2.3.1.4 Configuration Up: 2.2.3.1 Introduction Previous: 2.2.3.1.2 How to boot   Contents