Grub Menu Configuration File - Red Hat ENTERPRISE LINUX 3 Reference Manual

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

Chapter 2. Boot Loaders
— Passes the stage 2 boot loader location to the stage 1 boot loader, such as
stage-2
(hd0,0)/grub/stage2
p
config-file
ration file specified by
Warning
The
command overwrites any information already located on the MBR.
install
kernel
/path/to/kernel
load when booting the operating system. Replace
from the partition specified by the root command. Replace
Linux kernel, such as
system is located. Multiple options can be passed to the kernel in a space separated list.
The following is an example
kernel /vmlinuz-2.4.21 root=/dev/hda5
The option in the previous example specifies that the root file system for Linux is located on the
partition.
hda5
root ( device-type
for GRUB, such as
The following is an example
root (hd0,0)
rootnoverify ( device-type
root partition for GRUB, just like the
Other commands are also available; type
a a description of all GRUB commands, refer to the documentation available online at
http://www.gnu.org/manual/grub/.
2.7. GRUB Menu Configuration File
The configuration file (
tems to boot in GRUB's menu interface, essentially allows the user to select a pre-set group of com-
mands to execute. The commands given in Section 2.6 GRUB Commands can be used, as well as some
special commands that are only available in the configuration file.
2.7.1. Configuration File Structure
The GRUB menu interface configuration file is
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 Enter-
prise Linux or Microsoft Windows 2000:
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
# section to load Linux
title Red Hat Enterprise Linux (2.4.21-1.ent)
root (hd0,0)
kernel /vmlinuz-2.4.21-1 ro root=/dev/sda2
initrd /initrd-2.4.21-1.img
.
— This option tells the
config-file
option-1
root=/dev/hda5
command:
kernel
device-number , partition )
, and mounts the partition.
(hd0,0)
command:
root
device-number , partition )
root
/boot/grub/grub.conf
command to look for the menu configu-
install
, such as
(hd0,0)/grub/grub.conf
option-N
/path/to/kernel
to specify the device on which the root partition for the
command, but does not mount the partition.
for a full list of commands. For
info grub
), which is used to create the list of operating sys-
/boot/grub/grub.conf
.
... — Specifies the kernel file to
with an absolute path
with options for the
option-1
— Configures the root partition
— Configures the
. The commands to set the
17

Advertisement

Table of Contents
loading

Table of Contents