Linux From Scratch: Version 5.0-pre1
Prev | Chapter 6. Installing basic system software | Next

# Installing Grub-0.93

    Estimated build time:           ? SBU
    Estimated required disk space:  9 MB

## Contents of Grub

(To be determined)

##

## Grub Installation Dependencies

(To be determined)

##

## Installation of Grub

Grub needs a patch applied that fixes a compile problem with GCC-3.3.1:

    patch -Np1 -i ../grub-0.93-gcc33-1.patch

Prepare Grub for compilation:

    ./configure --prefix=/usr

Compile the package:

    make

And install it:

    make install
    mkdir /boot/grub
    cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub

Replace `i386-pc` with whatever directory is appropriate for your hardware.

The `i386-pc` directory also contains a number of `*stage1_5` files, different ones for different filesystems. Have a look at the ones available and copy the appropriate ones to the `/boot/grub` directory. Most people will copy the `e2fs_stage1_5` and/or `reiserfs_stage1_5` files.

Prev | Home | Next
Installing Grep-2.5.1 | Up | Installing Gzip-1.3.5