Chapter 9.
93
The GRUB Boot Loader
When a computer with Red Hat Enterprise Linux is turned on, the operating system is loaded into
memory by a special program called a
boot loader
. A boot loader usually exists on the system's
primary hard drive (or other media device) and has the sole responsibility of loading the Linux kernel
with its required files or (in some cases) other operating systems into memory.
9.1. Boot Loaders and System Architecture
Each architecture capable of running Red Hat Enterprise Linux uses a different boot loader. The
following table lists the boot loaders available for each architecture:
Architecture
Boot Loaders
AMD
®
AMD64
GRUB
IBM
®
eServer
™
System i
™
OS/400
®
IBM
®
eServer
™
System p
™
YABOOT
IBM
®
System z
®
z/IPL
IBM
®
System z
®
z/IPL
Intel
®
Itanium
™
ELILO
x86
GRUB
Table 9.1. Boot Loaders by Architecture
This chapter discusses commands and configuration options for the GRUB boot loader included with
Red Hat Enterprise Linux for the x86 architecture.
9.2. GRUB
The
GNU GRand Unified Boot loader
(GRUB) is a program which enables the selection of the installed
operating system or kernel to be loaded at system boot time. It also allows the user to pass arguments
to the kernel.
9.2.1. GRUB and the x86 Boot Process
This section discusses the specific role GRUB plays when booting an x86 system. For a look at the
overall boot process, refer to
Section 33.2, “A Detailed Look at the Boot Process”
.
GRUB loads itself into memory in the following stages:
1.
The Stage 1 or primary boot loader is read into memory by the BIOS from the MBR
1
.
The primary
boot loader exists on less than 512 bytes of disk space within the MBR and is capable of loading
either the Stage 1.5 or Stage 2 boot loader.
2.
The Stage 1.5 boot loader is read into memory by the Stage 1 boot loader, if necessary.
Some
hardware requires an intermediate step to get to the Stage 2 boot loader. This is sometimes true
when the
/boot/
partition is above the 1024 cylinder head of the hard drive or when using LBA
mode. The Stage 1.5 boot loader is found either on the
/boot/
partition or on a small part of the
MBR and the
/boot/
partition.
Summary of Contents for ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Page 12: ...xii ...
Page 20: ......
Page 30: ...12 ...
Page 32: ...14 ...
Page 82: ...64 ...
Page 106: ...88 ...
Page 122: ...104 ...
Page 124: ...106 ...
Page 126: ......
Page 132: ...114 ...
Page 168: ...150 ...
Page 182: ...164 ...
Page 192: ...174 ...
Page 194: ......
Page 236: ...218 ...
Page 238: ...220 ...
Page 270: ......
Page 274: ...256 ...
Page 278: ...260 ...
Page 292: ...274 ...
Page 294: ......
Page 300: ...282 ...
Page 304: ......
Page 316: ...298 ...
Page 370: ...352 ...
Page 384: ...366 ...
Page 385: ...Part VII Appendix ...
Page 386: ......