Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Grub problems
Date: Sun, 29 Oct 2006 20:20:59
Message-Id: 7573e9640610291205u4da6cecclf2cf94a9992db155@mail.gmail.com
1 On 10/29/06, Jeff Cranmer <jcranmer01@×××××××××.net> wrote:
2 > swapspace is on /dev/sda2, /boot is on /dev/sda1, and root is on /dev/sda6
3
4 [snip]
5
6 > My grub.conf file is as follows:
7 >
8 > default=0
9 > timeout=30
10 > splashimage=(hd0,5)/boot/grub/splash.xpm.gz
11 > title=Gentoo Linux 2.6.17-r8
12 > root (hd0,5)
13 > kernel /boot/kernel-genkernel-x86_64-2,6,17-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda6 udev vga=0x318 video=vesafb:mtrr:3,ywrap doscsi
14 > initrd /boot/initramfs-genkernel-x86_64-2.6.17-gentoo-r8
15
16 You have a separate /boot partition, so you should reference things on
17 *that* partition. So your grub.conf should be:
18
19 default=0
20 timeout=30
21 splashimage=(hd0,0)/grub/splash.xpm.gz
22 title=Gentoo Linux 2.6.17-r8
23 kernel (hd0,0)/kernel-genkernel-x86_64-2,6,17-gentoo-r8
24 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda6 udev
25 vga=0x318 video=vesafb:mtrr:3,ywrap doscsi
26 initrd (hd0,0)/initramfs-genkernel-x86_64-2.6.17-gentoo-r8
27
28 > When I run grub-install /dev/sda, it reports no errors.
29 >
30 > The device.map file contains the following
31 > (hd0) /dev/sda
32
33 This is correct if the BIOS is setup to boot from the SATA drive
34 before any IDE hard disks.
35
36 I never really liked grub-install. Try:
37
38 cat << EOF | grub --device-map=/boot/grub/device.map
39 root (hd0,0)
40 setup (hd0)
41 EOF
42
43 The most important line from the above is one that looks like this:
44
45 Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p
46 (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
47
48 If you don't see this, post what you do see.
49
50 -Richard
51 --
52 gentoo-user@g.o mailing list