Installation guide
root (<device-type><device-number>,<partition>) — Configures the root partition for
GRUB, such as (hd0,0), and mounts the partition.
The following is an example root command:
root (hd0,0)
rootnoverify (<device-type><device-number>,<partition>) — Configures the root
partition for GRUB, just like the root command, but does not mount the partition.
Other commands are also available; type help --all for a full list of commands. For a description
of all GRUB commands, refer to the documentation available online at
http://www.gnu.org/software/grub/manual/.
9.7. GRUB Menu Configurat ion File
The configuration file (/boot/grub/grub.conf), which is used to create the list of operating
systems to boot in GRUB's menu interface, essentially allows the user to select a pre-set group of
commands to execute. The commands given in Section 9.6, “ GRUB Commands” can be used, as well
as some special commands that are only available in the configuration file.
9.7.1. Configurat ion File St ruct ure
The GRUB menu interface configuration file is /boot/grub/grub.conf. The commands to set the
global preferences for the menu interface are placed at the top of the file, followed by stanzas for
each operating kernel or operating system listed in the menu.
The following is a very basic GRUB menu configuration file designed to boot either Red Hat
Enterprise Linux or Microsoft Windows 2000:
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-2.el5PAE)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-2.el5PAE ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.18-2.el5PAE.img
# section to load Windows
title Windows
rootnoverify (hd0,0)
chainloader +1
This file configures GRUB to build a menu with Red Hat Enterprise Linux as the default operating
system and sets it to autoboot after 10 seconds. Two sections are given, one for each operating
system entry, with commands specific to the system disk partition table.
Note
Note that the default is specified as an integer. This refers to the first title line in the GRUB
configuration file. For the Windows section to be set as the default in the previous example,
change the default=0 to default=1.
Red Hat Ent erprise Linux 5 Inst allat ion G uide
102