help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Installing grub2


From: Matt x
Subject: Installing grub2
Date: Tue, 11 Mar 2008 19:27:20 -0400
User-agent: Thunderbird 2.0.0.12 (X11/20080308)

   I've run
# grub-install --no-floppy --modules="_chain normal blocklist ls pc biosdisk fshelp ext2 gzio cat help terminal boot" /dev/sda
My /boot/grub/grub.cfg says:
<code>
set timeout=10
set default=0
set gfxmode=640x480
insmod terminal
insmod gfxterm
insmod vbe
set_menu_color_normal=white/black
set_menu_color_highlight=white/grey
terminal gfxterm
insmod png
backgrub_image (hd0,1)/grub/NightOfUbuntu.png
menuentry "Gentoo 2007.0 (2.6.23-r8)" {
        set root=(hd0,1)
        linux kernel-2.6.23-gentoo-r8 root=/dev/sda3 quiet
}

menuentry "Windows XP" {
        set root=(hd1,1)
        insmod chainloader_normal
        chainloader +1
}
</code>
following the instructions here: http://wiki.debian.org/Grub/Grub2#manpages. Yet, when I boot, I still get the grub rescue prompt.
<quote=Frank">
The two very basic commands are :
 linux   (hd0,5)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda5 ro vga=791
 initrd  (hd0,5)/boot/initrd.img-2.6.24-1-686
then "boot"
</quote>
When I try "linux (hd0,1)/kernel-2.6.23-gentoo-r8 root=/dev/sda3 quiet", I'm told there's no such command as "linux". lsmod shows that the modules I specified with grub-install -were- loaded. ls still shows no files.

   In regards to grub-legacy,
Franklin said:
"That's strange, since the (hd0) is always invoke prior to (hd0,X)

May be you should check the (hd0) mapping, which should match you BIOS
point of view. If you BIOS think /dev/sdb is the bootable disk,
then /boot/grub/devices.map should read something like
  (hd0) /dev/sdb"
Please note that I said:
This happens ... whichever drive is first in the BIOS.
Maybe I'm wrong about this. I'll check again, but I believe that's how it is.
  I do appreciate your help.
-Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]