Chapter 9. The GRUB Boot Loader
100
partition specified by the root command. Replace
<option-1>
with options for the Linux kernel,
such as
root=/dev/VolGroup00/LogVol00
to specify the device on which the root partition for
the system is located. Multiple options can be passed to the kernel in a space 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/
.
9.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 9.6, “GRUB Commands”
can be used, as well
as some special commands that are only available in the configuration file.
9.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 Server (2.6.182.el5PAE)
root (hd0,0)
kernel /boot/vmlinuz2.6.182.el5PAE ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd2.6.182.el5PAE.img
# section to load Windows
title Windows
rootnoverify (hd0,0)
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 12: ...xii ...
Страница 20: ......
Страница 30: ...12 ...
Страница 32: ...14 ...
Страница 82: ...64 ...
Страница 106: ...88 ...
Страница 122: ...104 ...
Страница 124: ...106 ...
Страница 126: ......
Страница 132: ...114 ...
Страница 168: ...150 ...
Страница 182: ...164 ...
Страница 192: ...174 ...
Страница 194: ......
Страница 236: ...218 ...
Страница 238: ...220 ...
Страница 270: ......
Страница 274: ...256 ...
Страница 278: ...260 ...
Страница 292: ...274 ...
Страница 294: ......
Страница 300: ...282 ...
Страница 304: ......
Страница 316: ...298 ...
Страница 357: ...Creating Partitions 339 Figure 32 7 Creating a Software RAID Device 4 Click OK to add the device to the list ...
Страница 370: ...352 ...
Страница 384: ...366 ...
Страница 385: ...Part VII Appendix ...
Страница 386: ......