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
.
Configuring a GRUB menu configuration file to boot multiple operating systems is beyond the
scope of this chapter. Consult
Section 9, “Additional Resources”
for a list of additional
resources.
7.2. Configuration File Directives
The following are directives commonly used in the GRUB menu configuration file:
•
chainloader </path/to/file>
— Loads the specified file as a chain loader. Replace
</path/to/file>
with the absolute path to the chain loader. If the file is located on the first
sector of the specified partition, use the blocklist notation,
+1
.
•
color <normal-color><selected-color>
— Allows specific colors to be used in the menu,
where two colors are configured as the foreground and background. Use simple color names
such as
red/black
. For example:
color red/black green/blue
•
default=<integer>
— Replace
<integer>
with the default entry title number to be loaded if
the menu interface times out.
•
fallback=<integer>
— Replace
<integer>
with the entry title number to try if the first
attempt fails.
•
hiddenmenu
— Prevents the GRUB menu interface from being displayed, loading the
default
entry when the
timeout
period expires. The user can see the standard GRUB menu
by pressing the Esc key.
•
initrd </path/to/initrd>
— Enables users to specify an initial RAM disk to use when
booting. Replace
</path/to/initrd>
with the absolute path to the initial RAM disk.
•
kernel </path/to/kernel><option-1><option-N>
— Specifies the kernel file to load
when booting the operating system. Replace
</path/to/kernel>
with an absolute path from
the partition specified by the root directive. Multiple options can be passed to the kernel when
it is loaded.
Chapter 2. The GRUB Boot Loader
22
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......