Red Hat ENTERPRISE LINUX 3 Reference Manual page 36

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

Advertisement

18
# 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
figuration file. For the
to
default=0
default=1
Configuring a GRUB menu configuration file to boot multiple operating systems is beyond the scope
of this chapter. Consult Section 2.11 Additional Resources for a list of additional resources.
2.7.2. Configuration File Directives
The following are directives commonly used in the GRUB menu configuration file:
chainloader
/path/to/file
sector of the specified partition, use the blocklist notation,
color
normal-color
menu, where two colors are configured as the foreground and background. Use simple color names
such as
red/black
color red/black green/blue
default= integer
if the menu interface times out.
fallback= integer
attempt fails.
— Prevents the GRUB menu interface from being displayed, loading the
hiddenmenu
entry when the
timeout
the [Esc] key.
initrd
/path/to/initrd
booting. Replace
kernel
/path/to/kernel
load when booting the operating system. Replace
from the partition specified by the root directive. Multiple options can be passed to the kernel
when it is loaded.
password= password
entries for this menu option.
Optionally, it is possible to specify an alternate menu configuration file after the
password= password
uses the specified alternate configuration file to build the menu. If an alternate menu configuration
section to be set as the default in the previous example, change the
Windows
.
/path/to/file
with the absolute path to the chain loader. If the file is located on the first
selected-color
. For example:
— Replace
integer with the default entry title number to be loaded
— Replace
period expires. The user can see the standard GRUB menu by pressing
— Enables users to specify an initial RAM disk to use when
/path/to/initrd with the absolute path to the initial RAM disk.
option-1
— Prevents a user who does not know the password from editing the
directive. In this case, GRUB restarts the second stage boot loader and
— Loads the specified file as a chain loader. Replace
+1
— Allows specific colors to be used in the
with the entry title number to try if the first
integer
option-N
/path/to/kernel
Chapter 2. Boot Loaders
line in the GRUB con-
title
.
— Specifies the kernel file to
with an absolute path
default

Advertisement

Table of Contents
loading

Table of Contents