10.66. GRUB-0.97

The GRUB package contains the GRand Unified Bootloader.

10.66.1. Installation of GRUB

GRUB has an issue where it sometimes doesn't detect the disk geometry correctly when used with Linux 2.6. This results in the error message Error 24: Attempt to access block outside partition. This patch also contains various fixes for raid controllers along with support for the new Intel Mac. Apply the following patch using the command below:

patch -Np1 -i ../grub-0.97-fixes-1.patch

The follow patch will fix an issue that exists with grub on x86_64 machines, that causes grub to segfault when you try to configure a drive to utilize grub:

patch -Np1 -i ../grub-0.97-use_mmap-1.patch

Prepare GRUB for compilation:

CC="gcc ${BUILD32}" ./configure --prefix=/usr

Compile the package:

make

To test the results, issue: make check.

Install the package:

make install
mkdir -v /boot/grub
cp -v /usr/lib/grub/x86_64-pc/stage{1,2} /boot/grub

Replace x86_64-pc with whatever directory is appropriate for the hardware in use.

The x86_64-pc directory contains a number of *stage1_5 files, different ones for different file systems. Review the files available and copy the appropriate ones to the /boot/grub directory. Most users will copy the e2fs_stage1_5 and/or reiserfs_stage1_5 files.

10.66.2. Contents of GRUB

Installed programs: grub, grub-install, grub-md5-crypt, grub-set-default, grub-terminfo, and mbchk

Short Descriptions

grub

The Grand Unified Bootloader's command shell

grub-install

Installs GRUB on the given device

grub-md5-crypt

Encrypts a password in MD5 format

grub-set-default

Sets the default boot entry for GRUB

grub-terminfo

Generates a terminfo command from a terminfo name; it can be employed if an unknown terminal is being used

mbchk

Checks the format of a multi-boot kernel