GRUB Interfaces


GRUB features three interfaces, each of which provides a different level of functionality. Each of these interfaces allows users to boot operating systems and move between interfaces within the GRUB environment.

Menu Interface

If GRUB was automatically configured by the Red Hat Linux installation program, this is the interface shown by default. A menu of operating systems or kernels preconfigured with their own boot commands are displayed as a list, ordered by name. Use the arrow keys to select an option other than the default selection and press the Enter key to boot it. Alternatively, a timeout period is set, so that GRUB will start loading the default option.

From the menu interface, type e to enter the entry editor interface or c to load a command-line interface. See the “Command-Line Interface” section of this chapter for more information on configuring this interface.

Menu Entry Editor Interface

To access the menu entry editor, type e at the boot loader menu. The GRUB commands for that entry are displayed here, and users may alter these command lines before booting the operating system by adding a command line (o inserts the new line after the current line and O before it), editing one (e), or deleting one (d).

After all changes are made, type b to execute the commands and boot the operating system. The Esc key discards any changes and reloads the standard menu interface. Type c to load the command-line interface.

Command-Line Interface

The command line is the most basic GRUB interface, but it is also the one that grants the most control. The command line makes it possible to type any relevant GRUB commands followed by the Enter key to execute them. This interface features some advanced shell-like features, including Tab key completion, based on context, and Ctrl key combinations when typing commands, such as Ctrl-a to move to the beginning of a line, and Ctrl-e to move to the end of a line. In addition, the arrow, Home, End, and Delete keys work as they do in the bash shell. See the “GRUB Commands” section for a list of common commands.

Order of Interface Use

When the GRUB environment loads the second-stage boot loader, it looks for its configuration file. When found, it uses the configuration file to build the menu list and displays the boot menu interface. If the configuration file cannot be found, or if the configuration file is unreadable, GRUB will load the command-line interface to allow users to manually type the commands necessary to boot an operating system.

If the configuration file is not valid, GRUB will print out the error and ask for input. This can be very helpful, because users can then see precisely where the problem occurred and fix it in the file. Pressing any key will reload the menu interface, where it is then possible to edit the menu option and correct the problem based on the error reported by GRUB. If the correction fails, the error is reported and GRUB will begin again.




Official Red Hat Linux Administrator's Guide
Official Red Hat Linux Administrators Guide
ISBN: 0764516957
EAN: 2147483647
Year: 2002
Pages: 278
Authors: Red Hat Inc

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net