
546
|
Chapter 4: Boot Methods
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
In this example, the blocklist notation (+1) does not include either the device
name or the offset because we set the root device to the Windows partition, and
the Windows loader begins at offset 0 of that partition.
GRUB also includes a device map. The device map is an ASCII file, usually /boot/
grub/device.map. Since the operating system isn’t loaded yet when you use GRUB
to boot Linux (or any other operating system), GRUB knows only the BIOS drive
names. The purpose of the device map is to map the BIOS drives to Linux devices.
For example:
(fd0) /dev/fd0
(hd0) /dev/hda
Installing GRUB
Installing GRUB involves two stages. First, you install the GRUB files on your
system, either by compiling and installing the source tarball or from a package.
That puts the GRUB files in the correct locations on your system. The second step
is to install the GRUB software as your boot manager. This is the step we describe
in this section.
If you installed GRUB as part of your Linux installation, the distribution’s instal-
lation program took care of both stages of installing GRUB, and you’ll most likely
see the GRUB menu when you boot Linux. If you didn’t install GRUB as part of
your Linux installation, you have two choices. The easiest way to install GRUB is
with the grub-install ...