public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Grub problems
Date: Sun, 29 Oct 2006 13:05:19 -0700	[thread overview]
Message-ID: <7573e9640610291205u4da6cecclf2cf94a9992db155@mail.gmail.com> (raw)
In-Reply-To: <21852482.1162147675990.JavaMail.root@elwamui-norfolk.atl.sa.earthlink.net>

On 10/29/06, Jeff Cranmer <jcranmer01@earthlink.net> wrote:
> swapspace is on /dev/sda2,  /boot is on /dev/sda1, and root is on /dev/sda6

[snip]

> My grub.conf file is as follows:
>
> default=0
> timeout=30
> splashimage=(hd0,5)/boot/grub/splash.xpm.gz
> title=Gentoo Linux 2.6.17-r8
>   root (hd0,5)
>   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
>   initrd /boot/initramfs-genkernel-x86_64-2.6.17-gentoo-r8

You have a separate /boot partition, so you should reference things on
*that* partition.  So your grub.conf should be:

default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.17-r8
    kernel (hd0,0)/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
    initrd (hd0,0)/initramfs-genkernel-x86_64-2.6.17-gentoo-r8

> When I run grub-install /dev/sda, it reports no errors.
>
> The device.map file contains the following
> (hd0)      /dev/sda

This is correct if the BIOS is setup to boot from the SATA drive
before any IDE hard disks.

I never really liked grub-install.  Try:

cat << EOF | grub --device-map=/boot/grub/device.map
root (hd0,0)
setup (hd0)
EOF

The most important line from the above is one that looks like this:

Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p
(hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded

If you don't see this, post what you do see.

-Richard
-- 
gentoo-user@gentoo.org mailing list



       reply	other threads:[~2006-10-29 20:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <21852482.1162147675990.JavaMail.root@elwamui-norfolk.atl.sa.earthlink.net>
2006-10-29 20:05 ` Richard Fish [this message]
2006-10-29 20:55 [gentoo-user] Grub problems Jeff Cranmer
2006-10-29 23:27 ` Richard Fish
  -- strict thread matches above, loose matches on Subject: below --
2006-10-29 21:02 Jeff Cranmer
2006-10-30  0:49 Jeff Cranmer
2006-10-30  1:06 ` Joe Menola
2006-10-30  3:48 ` Richard Fish
2006-10-30  2:02 Jeff Cranmer
2006-10-30  2:14 ` David Relson
2006-10-30  2:23   ` Brett I. Holcomb
2006-10-30 11:46 Jeff Cranmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7573e9640610291205u4da6cecclf2cf94a9992db155@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox