Tuesday 3 June 2003

GRUB is My Bitch!

Jeepers-creepers! Talk about mangled translation from directions and sample installation to implementation on Dulcea.

Dulcea has two disks with Windows on the first (NTFS fills the whole drive), has /boot on /dev/hdb1, and has / on /dev/hdb2.

Now firstoff, I tried to install GRUB from the stage1&2 files distributed with Redhat. I don't know for whom or what they work for, but they didn't work for me. On top of that I ran grub-install like:

grub-install --root-directory=/dev/hdb2 /dev/hdb

That seemed to reverse the way the drives are referenced in GRUB so hda on Dulcea is now hd1 and hdb is hd0. Dunno, but I did finaly get things sorted out and here's how it works now.

1. (Optional) Create a GRUB boot disk

# cat /boot/grub/stage1 /boot/grub/stage2 > /dev/fd0
# reboot

1. (Alternate) Just run GRUB

# grub

2. Now install GRUB in the MBR of hdb. Note that our root is set to /boot a.k.a. /dev/hdb1 or hd0.0

> root (hd0,0)
> embed /grub/e2fs_stage1_5 (hd0)
> install /grub/stage1 (hd0)
(hd0)1+17 p /grub/stage2

3. Reboot and enjoy!

> reboot

FOCK! That was lot of hacking before I got everything figured straight, but its done now and I reign supreme over my own software... I hope.

Next: Making Quake 3 work with sound! (Yeah, right...)

No comments:

Post a Comment

Popular Posts