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

want some advice on grub 2 chaining issues



Want to figure out whether to file a bug on this or not, and maybe how many.

Three drives, four installs of Linux at this time.

80G drive hung off the motherboard's controller, 16OG and 320G hung
off the expansion card's controller in the master positions of the
primary and secondary channels:

00:0f.0 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)

ata-Maxtor_4R080L0_R2T745PE

00:07.0 Mass storage controller: Integrated Technology Express, Inc.
IT/ITE8212 Dual channel ATA RAID controller (rev 13)

ata-Maxtor_6B160P0_B41H5J7H
ata-WDC_WD3200AAJB-00J3A0_WD-WCAV2Z842365

Debian is in the 1st partition of the 80G drive on the motherboard's
controller, single partition.

Fedora 14 is in the 1st and 3rd partition of the 160G drive on the
primary channel of the expansion card. Also, a liveCD install of F14
on the 4th partition of the 320G drive.

Fedora 15 is on the 1st and 2nd partitions of the 320G drive.

With only one drive connected (at the same points as above), I can
boot each of the OSses.

With all three connected as above, I can only boot Debian and the F14
on the 160G drive. But I can't chain boot anything.

Trying to boot the 320G drive or chain boot the 160G or 320G drive,
there is no response after the selector screen.

Trying to chain boot the 80G drive to itself gives the message,
"invalid signature".

-------------------------------- /etc/grub.d/40_custom:
-----------------------------------
#!/bin/sh
exec tail -n +3 $0
# 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.

# chainload the first three disks blindly

menuentry "chain first drive (self)" {
# set root=(hd0,1)
insmod part_msdos
insmod ext2
set root=(hd2,msdos1)
search --no-floppy --fs-uuid --set=root 32e25b11-5b7b-4686-b6bd-e36159a3162b
chainloader +1
}

menuentry "chain second" {
# set root=(hd1,1)
insmod part_msdos
insmod ext2
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set root=6f56e069-9379-4552-91d9-e30920bbd173
chainloader +1
}

menuentry "chain third" {
# set root=(hd3,1)
insmod part_msdos
insmod ext2
set root=(hd1,msdos1)
search --no-floppy --fs-uuid --set=root bfb92d48-0cd1-4eb0-8e33-ea54e93936dd
chainloader +1
}

menuentry "chain third part 4" {
# set root=(hd3,4)
insmod part_msdos
insmod ext2
set root=(hd1,msdos4)
search --no-floppy --fs-uuid --set=root da739f32-f4b4-4632-bc74-4e908ea02d2c
chainloader +1
}

---------------------- /boot/grub/device.map----------------------------------
(hd0)	/dev/disk/by-id/ata-Maxtor_6B160P0_B41H5J7H
(hd1)	/dev/disk/by-id/ata-WDC_WD3200AAJB-00J3A0_WD-WCAV2Z842365
(hd2)	/dev/disk/by-id/ata-Maxtor_4R080L0_R2T745PE

----------------------/boot/grub/grub.cfg after update-grub:
-------------------------
rover@deb:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set 32e25b11-5b7b-4686-b6bd-e36159a3162b
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set 32e25b11-5b7b-4686-b6bd-e36159a3162b
set locale_dir=($root)/boot/grub/locale
set lang=ja
insmod gettext
set timeout=5
play 480 440 1
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set 32e25b11-5b7b-4686-b6bd-e36159a3162b
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/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/08_os-prober ###
menuentry "Fedora (2.6.35.13-91.fc14.i686.PAE) (on /dev/sdb1)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 6f56e069-9379-4552-91d9-e30920bbd173
	linux /boot/vmlinuz-2.6.35.13-91.fc14.i686.PAE ro
root=UUID=6f56e069-9379-4552-91d9-e30920bbd173 rd_LVM_LV=f15/f15_swap
rd_LVM_LV=vg_f11/f11swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=ja_JP.UTF-8
KEYTABLE=jp106 rhgb quiet
	initrd /boot/initramfs-2.6.35.13-91.fc14.i686.PAE.img
}
menuentry "Fedora (2.6.35.12-90.fc14.i686.PAE) (on /dev/sdb1)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 6f56e069-9379-4552-91d9-e30920bbd173
	linux /boot/vmlinuz-2.6.35.12-90.fc14.i686.PAE ro
root=UUID=6f56e069-9379-4552-91d9-e30920bbd173 rd_LVM_LV=f15/f15_swap
rd_LVM_LV=vg_f11/f11swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=ja_JP.UTF-8
KEYTABLE=jp106 rhgb quiet
	initrd /boot/initramfs-2.6.35.12-90.fc14.i686.PAE.img
}
menuentry "Fedora (2.6.38.2-9.fc15.i686.PAE) (on /dev/sdg1)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set bfb92d48-0cd1-4eb0-8e33-ea54e93936dd
	linux /boot/vmlinuz-2.6.38.2-9.fc15.i686.PAE ro
root=UUID=bfb92d48-0cd1-4eb0-8e33-ea54e93936dd rd_LVM_LV=f15/f15_swap
rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=ja_JP.UTF-8 KEYTABLE=jp106 rhgb
quiet
	initrd /boot/initramfs-2.6.38.2-9.fc15.i686.PAE.img
}
menuentry "Fedora (2.6.35.6-45.fc14.i686) (on /dev/sdg4)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos4)'
	search --no-floppy --fs-uuid --set da739f32-f4b4-4632-bc74-4e908ea02d2c
	linux /boot/vmlinuz-2.6.35.6-45.fc14.i686 ro
root=UUID=da739f32-f4b4-4632-bc74-4e908ea02d2c rd_LVM_LV=f15/f15_swap
rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=jp106 rhgb quiet
	initrd /boot/initramfs-2.6.35.6-45.fc14.i686.img
}
### END /etc/grub.d/08_os-prober ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian
--class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd2,msdos1)'
	search --no-floppy --fs-uuid --set 32e25b11-5b7b-4686-b6bd-e36159a3162b
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686
root=UUID=32e25b11-5b7b-4686-b6bd-e36159a3162b ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)'
--class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd2,msdos1)'
	search --no-floppy --fs-uuid --set 32e25b11-5b7b-4686-b6bd-e36159a3162b
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686
root=UUID=32e25b11-5b7b-4686-b6bd-e36159a3162b ro single
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### 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.

# chainload the first three disks blindly

menuentry "chain first drive (self)" {
# set root=(hd0,1)
insmod part_msdos
insmod ext2
set root=(hd2,msdos1)
search --no-floppy --fs-uuid --set=root 32e25b11-5b7b-4686-b6bd-e36159a3162b
chainloader +1
}

menuentry "chain second" {
# set root=(hd1,1)
insmod part_msdos
insmod ext2
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set root=6f56e069-9379-4552-91d9-e30920bbd173
chainloader +1
}

menuentry "chain third" {
# set root=(hd3,1)
insmod part_msdos
insmod ext2
set root=(hd1,msdos1)
search --no-floppy --fs-uuid --set=root bfb92d48-0cd1-4eb0-8e33-ea54e93936dd
chainloader +1
}

menuentry "chain third part 4" {
# set root=(hd3,4)
insmod part_msdos
insmod ext2
set root=(hd1,msdos4)
search --no-floppy --fs-uuid --set=root da739f32-f4b4-4632-bc74-4e908ea02d2c
chainloader +1
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Reply to: