
The Boot Process | 533
Boot Methods
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
though, that one of the advantages of using GRUB is that if there is a problem
booting from the menu, it drops you down to the command-line interface so you
can enter commands directly and try to recover. Also, see “Creating a GRUB boot
floppy,” later in this chapter, for information on making a GRUB boot floppy.
*
The Boot Process
On an x86-based PC, the first sector of every hard disk is known as the boot sector
and contains the partition table for that disk and possibly also code for booting an
operating system. The boot sector of the first hard disk is known as the master
boot record (MBR), because when you boot the system, the BIOS transfers control
to a program that lives on that sector along with the partition table. That code is
the boot loader, the code that initiates an operating system. When you add Linux
to the system, you need to modify the boot loader, replace it, or boot from a
floppy or CD to start Linux.
In Linux, each disk and each partition on the disk is treated as a device. For
example, the entire first hard disk is known as /dev/hda, and the entire second
hard disk is /dev/hdb. The first partition of the first hard drive is /dev/hda1, and the
second partition is /dev/hda2. The first partition of the second hard drive is /dev/
hdb1 ...