separated list.
The following is an example
kernel
command:
kernel /vmlinuz-2.6.8-1.523 ro root=/dev/VolGroup00/LogVol00
The option in the previous example specifies that the root file system for Linux is located on
the
hda5
partition.
•
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/
.
7. GRUB Menu Configuration 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 6, “GRUB Commands”
can be used,
as well as some special commands that are only available in the configuration file.
7.1. Configuration File Structure
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 AS (2.6.8-1.523) root (hd0,0) kernel
/vmlinuz-2.6.8-1.523 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd
/initrd-2.6.8-1.523.img # section to load Windows title Windows rootnoverify
(hd0,0) chain1
This file configures GRUB to build a menu with Red Hat Enterprise Linux as the default
GRUB Menu Configuration File
21
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: ......