Chapter 2: Boot Process, init, and Shutdown


An important and powerful aspect of Red Hat Linux is the open method it uses for starting and stopping the operating system. During boot time, Red Hat Linux loads programs in a specific and configurable order. Once booted, you are free to change the configuration files controlling the boot process as well as the configuration files for the programs started at boot time.

Similarly, system shutdown gracefully terminates processes in an organized and configurable way, although customization of this process is rarely required. Understanding how the boot and shutdown processes work will not only allow you to easily customize Red Hat Linux to your needs, but will also make it easier to troubleshoot problems related to starting or shutting down your system.

In addition, the initialization process used by Red Hat Linux allows for multiple configurations, or runlevels, to be created on a single machine. This allows the administrator to switch between modes, and to define a single mode as the default.

The Boot Process

Below are the basic stages of the boot process for an x86 system:

  1. The system BIOS checks the system and launches the first-stage boot loader on the MBR of the primary hard disk.

  2. The first-stage boot loader loads itself into memory and launches the second-stage boot loader from the /boot/ partition.

  3. The kernel is loaded into memory, which in turn loads any necessary modules and mounts the root partition read-only.

  4. The kernel hands control of the boot process to the /sbin/init program.

  5. The /sbin/init program loads all services and user-space tools, and mounts all partitions listed in /etc/fstab.

  6. The user is presented with a login prompt for the freshly booted Linux system.

Because configuration of the boot process is more common than the customization of the shutdown process, the remainder of this chapter will discuss in detail how the boot process works and how it can be customized to suit your needs.




Official Red Hat Linux Administrator's Guide
Official Red Hat Linux Administrators Guide
ISBN: 0764516957
EAN: 2147483647
Year: 2002
Pages: 278
Authors: Red Hat Inc

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net