How to build grub 0.97 on Ubuntu 904

1. Download grub-0.97.tar.gz
ftp://alpha.gnu.org/gnu/grub

2. Update grub-0.97 source code

Start by applying the following patch to allow for better drive detection, fix some GCC 4.x issues, and provide better SATA support for some disk controllers:

$patch -Np1 -i ../grub-0.97-disk_geometry-1.patch

By default, GRUB doesn't support ext2 filesystems with 256-byte inodes. Fix this by applying the following patch:


$patch -Np1 -i ../grub-0.97-256byte_inode-1.patch

2.
$./configure --prefix=/home/gary/XXX
$make
$make install

Ref:

虹光大成就-密教灌頂(一)