
548
|
Chapter 4: Boot Methods
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
--recheck
Force probing of a device map. You should run grub-install with this
option if you add or remove a disk from your system. The device map is
found at /boot/grub/device.map.
--root-directory=dir
Install GRUB images in the directory dir instead of the GRUB root directory.
-v, --version
Print the GRUB version number to standard output and exit.
Installing from the GRUB command line
To install GRUB from the native command environment, make a GRUB boot
floppy as described previously. You will use that floppy to boot to the GRUB
command line to do the installation. If you know which partition holds the GRUB
files, you’re all set. Otherwise, you can find the partition with the find command:
grub> find /boot/grub/stage1
(hd0,0)
Here, the files are on (hd0,0). Use that information to set the GRUB root device:
grub> root (hd0,0)
Run the setup command to install GRUB. To install GRUB on the MBR, run
setup as follows:
grub> setup (hd0)
If you are going to chainload Linux and want to install GRUB on the boot sector
of the Linux partition, run setup like this:
grub> setup (hd0,0)
The GRUB Configuration File
GRUB uses a configuration file that sets up the menu interface. The configuration
file is called grub.conf and is found with the other GRUB files in the /boot/grub
directory. ...