Wednesday, April 20, 2005

Gentoo 2004.3 on Gigabyte GA-6VA7+ (part 5)

Note: These directions are works-in-progress... in fact, they might not even work at all until I find out why I'm ending up with non-bootable systems (looks like a bug in the 2.6 kernel).

(previous step)

Time to install the bootloader. I plan on using GRUB:

# emerge grub

Now to configure GRUB (refer to my old post about GRUB for a more in-depth explanation of what I'm telling GRUB to do here).

# grub --no-floppy
grub> find /grub/stage1
(hd0,0)
(hd1,0)
grub> root (hd0,0)
grub> setup (hd0)
grub> device (hd0) /dev/hdc
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
#


Now, edit your config file for grub:

# nano -w /boot/grub/grub.conf

Here is what mine looks like. Yours may be different, depending on how you configured things (and remember that I'm using Software RAID).

# cat /boot/grub/grub.conf
default 0
timeout 30
title=Gentoo Linux 2.6.11 (April 20 2005)
root (hd0,0)
kernel /kernel-2.6.11-gentoo-Apr20 root=/dev/md2
#


Now I install various system tools (see the handbook):

# emerge syslog-ng
# rc-update add syslog-ng default
# emerge dcron
# rc-update add dcron default
# crontab /etc/crontab


Note: Now you need to unmount everything that you can (including LVM), possibly shutdown the RAID as well prior to reboot.

livecd gentoo # exit
livecd / # cd /
livecd / # cat /proc/mounts

(unmount all of your mounted partitions, including the LVM mounts)

livecd / # umount ... (insert list of mounted file systems)

livecd / # vgchange -an vgmirror
livecd / # reboot


Pull the CD-ROM at this point, otherwise the LiveCD will probably boot.

(next step)

No comments: