Whole document tree
You probably noticed that you need to type several commands to boot your OS. There's a solution to that - GRUB provides a menu interface (see section 12.2 The simple menu interface) from which you can select an item (using arrow keys) that will do everything to boot an OS.
To enable the menu, you need a configuration file, `menu.lst' under the boot directory. We'll analyze an example file.
The file first contains some general settings, the menu interface
related options. You can put these commands (see section 13.1 The list of commands for the menu only) before any of the items (starting with
As you may have guessed, these lines are comments. Lines starting with a hash character (`#'), and blank lines, are ignored by GRUB.
The first entry (here, counting starts with number zero, not one!) will be the default choice.
As the comment says, GRUB will boot automatically in 30 seconds, unless interrupted with a keypress.
If, for any reason, the default entry doesn't work, fall back to the second one (this is rarely used, for obvious reasons).
Note that the complete descriptions of these commands, which are menu interface specific, can be found in 13.1 The list of commands for the menu only. Other descriptions can be found in 13. The list of available commands.
Now, on to the actual OS definitions. You will see that each entry
begins with a special command,
The argument for the command
This boots GNU/Hurd from the first hard disk.
This boots GNU/Linux, but from the second hard disk.
This boots Mach with a kernel on a floppy, but the root filesystem at
hd0s3. It also contains a
This item will boot FreeBSD kernel loaded from the `a' partition of the third PC slice of the first hard disk.
This will boot OS/2, using a chain-loader (see section 4.1.2 Load another boot loader to boot unsupported operating systems).
The same as the above, but for Windows.
This will just (re)install GRUB onto the hard disk.
In the last entry, the command
We hope that you now understand how to use the basic features of GRUB. To learn more about GRUB, see the following chapters.
This document was generated by Jason Thomas on February, 4 2002 using texi2html