11.01.2015 Views

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 30.<br />

Boot Process, Init, and Shutdown<br />

An important and powerful aspect of <strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong> is the open, user-configurable<br />

method it uses for starting the operating system. Users are free to configure many aspects of<br />

the boot process, including specifying the programs launched at boot-time. Similarly, system<br />

shutdown gracefully terminates processes in an organized and configurable way, although<br />

customization of this process is rarely required.<br />

Understanding how the boot and shutdown processes work not only allows customization, but<br />

also makes it easier to troubleshoot problems related to starting or shutting down the system.<br />

1. The Boot Process<br />

Below are the basic stages of the boot process for an x86 system:<br />

1. The system BIOS checks the system and launches the first stage boot loader on the MBR of<br />

the primary hard disk.<br />

2. The first stage boot loader loads itself into memory and launches the second stage boot<br />

loader from the /boot/ partition.<br />

3. The second stage boot loader loads the kernel into memory, which in turn loads any<br />

necessary modules and mounts the root partition read-only.<br />

4. The kernel transfers control of the boot process to the /sbin/init program.<br />

5. The /sbin/init program loads all services and user-space tools, and mounts all partitions<br />

listed in /etc/fstab.<br />

6. The user is presented with a login screen for the freshly booted <strong>Linux</strong> system.<br />

Because configuration of the boot process is more <strong>com</strong>mon than the customization of the<br />

shutdown process, the remainder of this chapter discusses in detail how the boot process works<br />

and how it can be customized to suite specific needs.<br />

2. A Detailed Look at the Boot Process<br />

The beginning of the boot process varies depending on the hardware platform being used.<br />

However, once the kernel is found and loaded by the boot loader, the default boot process is<br />

identical across all architectures. This chapter focuses primarily on the x86 architecture.<br />

2.1. The BIOS<br />

When an x86 <strong>com</strong>puter is booted, the processor looks at the end of system memory for the<br />

Basic Input/Output System or BIOS program and runs it. The BIOS controls not only the first<br />

step of the boot process, but also provides the lowest level interface to peripheral devices. For<br />

this reason it is written into read-only, permanent memory and is always available for use.<br />

337

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!