Next: 2.2.3.1.4 Configuration
Up: 2.2.3.1 Introduction
Previous: 2.2.3.1.2 How to boot
 
Contents
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:
- Set GRUB's root device to the drive where the OS images are stored
by the command `root'
- Load the kernel image by the command `kernel' .
- If you need modules, load them with the command `module' or `modulenounzip'.
- 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.
- Set GRUB's root device to the same drive as Linux's. Probably the
command `find /vmlinuz' or similar can help you.
- 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: 2.2.3.1.4 Configuration
Up: 2.2.3.1 Introduction
Previous: 2.2.3.1.2 How to boot
 
Contents