I'm installing Gentoo and am having problems getting the Grub boot loader to work correctly. I've read quite a few posts already and attempted some of the common fixes to no avail. When booting Grub it gives me a Error 21 notice on boot.
The following is my system setup:
Code: Select all
hda: WindowsXP (NTFS)
hdb: CD-R/RW
hdc: Linux Partitions
Code: Select all
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 9 72261 83 Linux
/dev/hdc2 606 1582 7847752+ f Win95 Ext'd (LBA)
/dev/hdc3 10 605 4787370 83 Linux
/dev/hdc5 606 1186 4666851 83 Linux
/dev/hdc6 1187 1249 506016 82 Linux swap
/dev/hdc7 1250 1542 2353491 7 HPFS/NTFS
/dev/hdc7 1543 1582 321268+ 7 HPFS/NTFS
Code: Select all
-> hdc1: /boot (reiserFS)-(65Mb)-(Primary)
-> hdc2: Extended Partition
-> hdc3: / (reiserFS)-(Primary)
-> hdc5: Debian GNU/Linux Partition (ReiserFS)-(Logical)
-> hdc6: Linux Swap (Shared between the two distros)-(Logical)
-> hdc7: NTFS Partition (Logical)
-> hdc8: NTFS Partition (Logical)
Code: Select all
hda: Maxtor 2R015H1
hdb: LG HL-DT-ST GCE-8481B CD-R/RW
hdc: Quantum Fireball CX13.0A
fd0: Floppy
The first was to enable ext2 because the initrd kernel needed it, I compiled it into the kernel as suggested. Second was to check the Processor Type in Processor Types and Features inside the kernel. I am using a Pentium II 400Mhz (Deutsches) processor, so changed what was listed as i386 to Pentium-Pro/Celeron/Pentium II. And finally another solution was to disable ACPI or add acpi=off to the grub boot config. I removed it from the kernel.
To compile the kernel I use genkernel --config to create initrd-2.40-gentoo-r8 and kernel-2.40.2-gentoo-r8 inside (hdc1)/boot/. After the kernel was compiled I ran grub and executed the following commands:
Code: Select all
grub> root (hd1,0)
Filesystem type is reiserfs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/reiserfs_stange1_5" exists... yes
Running "embed /boot/grub/reiserfs_stage1_5 (hd0)" ... 19 sectors are embedded.
succeded
Running "install /boot/grub/stage1 d (hd0) (hd0)1+19 p (hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeded
Done.
grub>
Code: Select all
GRUB loading stage1.5
GRUB loading, place wait...
Error 21
Code: Select all
default 0
timeout 30
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
#If you compiled your own kernel, use something like this
title=Gentoo Linux
root (hd1,0)
kernel (hd1,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hdc3 hdb=ide-scsi vga=794
initrd (hd1,0)/boot/initrd-2.4.20-gentoo-r8
Code: Select all
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.12 2003/03/11 02:50:53 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdc1 /boot reiserfs noauto,noatime,notail 1 1
/dev/hdc3 / reiserfs noatime 0 0
/dev/hdc6 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
Can anyone help me with this issue, I hope I've provided enough info.


