Gentoo Archives: gentoo-user

From: Jeff Cranmer <jcranmer01@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Grub problems
Date: Sun, 29 Oct 2006 21:06:26
Message-Id: 1786485.1162155722187.JavaMail.root@elwamui-norfolk.atl.sa.earthlink.net
1 PS: The /boot/grub/devices.map presently contains
2 (hd0) /dev/sda
3 (hd1) /dev/hde
4 (hd2) /dev/hdh
5
6 Jeff
7
8 -----Original Message-----
9 >From: Jeff Cranmer <jcranmer01@×××××××××.net>
10 >Sent: Oct 29, 2006 3:55 PM
11 >To: gentoo-user@l.g.o
12 >Subject: Re: [gentoo-user] Grub problems
13 >
14 >Hi Richard,
15 >
16 >The full output from running your suggested command after editing the grub.conf file per your instructions was
17 >
18 > Checking if "/boot/grub/stage1" exists... yes
19 > Checking if "/boot/grub/stage2" exists... yes
20 > Checking if "/boot/grub/e2fs_stage_1_5" exists... yes
21 > Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
22 >succeeded
23 > Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
24 >Done.
25 >
26 >I still have the same response when I try to reboot :-(
27 >
28 >Jeff
29 >
30 >
31 >-----Original Message-----
32 >>From: Richard Fish <bigfish@××××××××××.org>
33 >>Sent: Oct 29, 2006 3:05 PM
34 >>To: gentoo-user@l.g.o
35 >>Subject: Re: [gentoo-user] Grub problems
36 >>
37 >>On 10/29/06, Jeff Cranmer <jcranmer01@×××××××××.net> wrote:
38 >>> swapspace is on /dev/sda2, /boot is on /dev/sda1, and root is on /dev/sda6
39 >>
40 >>[snip]
41 >>
42 >>> My grub.conf file is as follows:
43 >>>
44 >>> default=0
45 >>> timeout=30
46 >>> splashimage=(hd0,5)/boot/grub/splash.xpm.gz
47 >>> title=Gentoo Linux 2.6.17-r8
48 >>> root (hd0,5)
49 >>> 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
50 >>> initrd /boot/initramfs-genkernel-x86_64-2.6.17-gentoo-r8
51 >>
52 >>You have a separate /boot partition, so you should reference things on
53 >>*that* partition. So your grub.conf should be:
54 >>
55 >>default=0
56 >>timeout=30
57 >>splashimage=(hd0,0)/grub/splash.xpm.gz
58 >>title=Gentoo Linux 2.6.17-r8
59 >> kernel (hd0,0)/kernel-genkernel-x86_64-2,6,17-gentoo-r8
60 >>root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda6 udev
61 >>vga=0x318 video=vesafb:mtrr:3,ywrap doscsi
62 >> initrd (hd0,0)/initramfs-genkernel-x86_64-2.6.17-gentoo-r8
63 >>
64 >>> When I run grub-install /dev/sda, it reports no errors.
65 >>>
66 >>> The device.map file contains the following
67 >>> (hd0) /dev/sda
68 >>
69 >>This is correct if the BIOS is setup to boot from the SATA drive
70 >>before any IDE hard disks.
71 >>
72 >>I never really liked grub-install. Try:
73 >>
74 >>cat << EOF | grub --device-map=/boot/grub/device.map
75 >>root (hd0,0)
76 >>setup (hd0)
77 >>EOF
78 >>
79 >>The most important line from the above is one that looks like this:
80 >>
81 >>Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p
82 >>(hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
83 >>
84 >>If you don't see this, post what you do see.
85 >>
86 >>-Richard
87 >>--
88 >>gentoo-user@g.o mailing list
89 >>
90 >
91 >--
92 >gentoo-user@g.o mailing list
93 >
94 --
95 gentoo-user@g.o mailing list