I've suddenly got a glitch with grub.
The box runs Gentoo on the boot drive, and siduction on another drive. It boots to the grub menu on the Gentoo drive, and has a chainloader line to allow me to boot to siduction if I want to, using the grub that is installed on the siduction drive.
This has always worked perfectly, but some recent update must have changed something. Gentoo boots fine, but if I want siduction I get error 13s and no media found after selecting it in the grub menu. I thought perhaps that the hd(x,x) designation in the chainloader line had mysteriously changed, so I played around with that for awhile. It appears that hd(3,0) is most likely the correct one, but when I attempt to boot to it grub dumps me to the GRUB command line, and beeps continuously.
If I change the boot order in the BIOS, and boot to the siduction disk, everything is fine, so it isn't a hardware problem. Something is wrong with the chainloader lines in the menu, but I'm not sure what it could be. Maybe a drive has to be mapped to another one in grub?
Following are the pertinent grub files for both drives [notice siduction runs grub2]:
Gentoo, /boot/grub/grub.conf:
siduction, /boot/grub/grub.cfg:
The box runs Gentoo on the boot drive, and siduction on another drive. It boots to the grub menu on the Gentoo drive, and has a chainloader line to allow me to boot to siduction if I want to, using the grub that is installed on the siduction drive.
This has always worked perfectly, but some recent update must have changed something. Gentoo boots fine, but if I want siduction I get error 13s and no media found after selecting it in the grub menu. I thought perhaps that the hd(x,x) designation in the chainloader line had mysteriously changed, so I played around with that for awhile. It appears that hd(3,0) is most likely the correct one, but when I attempt to boot to it grub dumps me to the GRUB command line, and beeps continuously.
If I change the boot order in the BIOS, and boot to the siduction disk, everything is fine, so it isn't a hardware problem. Something is wrong with the chainloader lines in the menu, but I'm not sure what it could be. Maybe a drive has to be mapped to another one in grub?
Following are the pertinent grub files for both drives [notice siduction runs grub2]:
Gentoo, /boot/grub/grub.conf:
Code:
# /boot/grub.conf
default 0
timeout 3
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
#splashimage=(hd0,0)/boot/grub/grubamd64.xpm.gz
splashimage=(hd0,0)/boot/grub/grub_gentooframe-splash.xpm.gz
##########################################################################
# Framebuffer options: this line is an example for vesafb instead of uvesafb. Using vesafb requires kernel changes and rebuilding.
# kernel /boot/linux-3.6.2-ck root=/dev/sda4 rootfstype=ext4 video=vesafb:ywrap,mtrr:2 vga=791
###################### Installed Linux Kernels below #######################
title Gentoo Linux 3.9.11-ck [ck-sources - "BFS"]
root (hd0,0)
kernel /boot/linux-3.9.11-ck root=/dev/sda4 rootfstype=ext4 video=uvesafb:1280x1024-32@60,mtrr:3,ywrap
#(for hwmon chip error) acpi_enforce_resources=lax
title Gentoo Linux 3.9.11-ck (rescue)
root (hd0,0)
kernel /boot/linux-3.9.11-ck root=/dev/sda4 rootfs=ext4 init=/bin/bb video=vesafb:ywrap,mtrr:1 vga=ask
title Gentoo Linux 3.9.2-ck [ck-sources - "BFS"]
root (hd0,0)
kernel /boot/linux-3.9.2-ck root=/dev/sda4 rootfstype=ext4 video=uvesafb:1280x1024-32@60,mtrr:3,ywrap
#(for hwmon chip error) acpi_enforce_resources=lax
title Gentoo Linux 3.9.2-ck (rescue)
root (hd0,0)
kernel /boot/linux-3.9.2-ck root=/dev/sda4 rootfs=ext4 init=/bin/bb video=vesafb:ywrap,mtrr:1 vga=ask
###########################################################################
title OTHER LINUX OS
title siduction linux [towo~ kernel sources, current version]
root (hd3,0)
chainloader +1
siduction, /boot/grub/grub.cfg:
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=0
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set e0d40967-7e27-4be5-8b08-8677abfe9e17
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=800x600
set gfxpayload=1024x768
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
set locale_dir=/boot/grub/locale
set lang=en
insmod gettext
set timeout=3
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 398f0e4f-f106-4c06-a55a-545874d3d00c
insmod tga
if background_image /thunderrd/images/grub/Plasma-lamp.tga ; then
# set color_normal=black/black
set color_normal=white/black
# set color_highlight=magenta/black
set color_highlight=cyan/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "siduction Linux, with Linux 3.8-2.towo-siduction-amd64" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set e0d40967-7e27-4be5-8b08-8677abfe9e17
linux /boot/vmlinuz-3.8-2.towo-siduction-amd64 root=UUID=e0d40967-7e27-4be5-8b08-8677abfe9e17 ro
initrd /boot/initrd.img-3.8-2.towo-siduction-amd64
}
menuentry "siduction Linux, with Linux 3.8-2.towo-siduction-amd64 (recovery mode)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set e0d40967-7e27-4be5-8b08-8677abfe9e17
linux /boot/vmlinuz-3.8-2.towo-siduction-amd64 root=UUID=e0d40967-7e27-4be5-8b08-8677abfe9e17 ro single
initrd /boot/initrd.img-3.8-2.towo-siduction-amd64
}
menuentry "siduction Linux, with Linux 3.8-0.towo.1-siduction-amd64" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set e0d40967-7e27-4be5-8b08-8677abfe9e17
linux /boot/vmlinuz-3.8-0.towo.1-siduction-amd64 root=UUID=e0d40967-7e27-4be5-8b08-8677abfe9e17 ro
initrd /boot/initrd.img-3.8-0.towo.1-siduction-amd64
}
menuentry "siduction Linux, with Linux 3.8-0.towo.1-siduction-amd64 (recovery mode)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set e0d40967-7e27-4be5-8b08-8677abfe9e17
linux /boot/vmlinuz-3.8-0.towo.1-siduction-amd64 root=UUID=e0d40967-7e27-4be5-8b08-8677abfe9e17 ro single
initrd /boot/initrd.img-3.8-0.towo.1-siduction-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set e0d40967-7e27-4be5-8b08-8677abfe9e17
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set e0d40967-7e27-4be5-8b08-8677abfe9e17
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Gentoo Linux 3.9.11-ck [ck-sources - "BFS"] (on /dev/sdb4)" {
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set d532e93f-5922-45f4-967d-6d351770f0dc
linux /boot/linux-3.9.11-ck root=/dev/sda4 rootfstype=ext4 video=uvesafb:1280x1024-32@60,mtrr:3,ywrap
}
menuentry "Gentoo Linux 3.9.11-ck (rescue) (on /dev/sdb4)" {
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set d532e93f-5922-45f4-967d-6d351770f0dc
linux /boot/linux-3.9.11-ck root=/dev/sda4 rootfs=ext4 init=/bin/bb video=vesafb:ywrap,mtrr:1 vga=ask
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###