host does not boot with grub_pc and /dev/sdd as boot disk

Thomas Lange lange at informatik.uni-koeln.de
Thu Nov 25 16:46:01 CET 2010


I have following configuration:

four SATA disks, three times 1TB, one 80GB disk. This 80GB should be
my boot disk. The three disks will be part of a RAID0.

During installation the disks will be named:

   8        0  976762584 sda
   8       16  976762584 sdb
   8       32  976762584 sdc
   8       48   78150744 sdd

setup-storage creates all partitions softraid and file systems very
well. (Great work Michael!). This is my disk_var.sh

SWAPLIST="/dev/sdd5"
BOOT_DEVICE="/dev/sdd"
ROOT_PARTITION=UUID=55e150ff-0e7f-427b-ab82-0354e7515d8a
BOOT_PARTITION=/dev/sdd1


Later GRUB_PC/10-setup is called without any errors

=====   shell: GRUB_PC/10-setup   =====
Generating grub.cfg ...
cat: /boot/grub/video.lst: No such file or directory
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
done
Installation finished. No error reported.
GRUB_PC/10-setup     OK.

But the host does not boot. No grub prompt, just nothing. First, I
thought is a buggy BIOS. But it's a bug in FAI IMO.

Let's have a look:

> cat /boot/grub/device.map 
(hd0)   /dev/disk/by-id/ata-ST31000524NS_9WK1MYSS
(hd1)   /dev/disk/by-id/ata-ST31000524NS_9WK1MYEJ
(hd2)   /dev/disk/by-id/ata-ST31000524NS_9WK1MYRA
(hd3)   /dev/disk/by-id/ata-SAMSUNG_HD080HJ_S08EJ1GYC01865

My boot disk is not hd0, but hd3 (that means sdd as in disk_var.sh).
But 10-setup just installs grub into hd0.

> cat GRUB_PC/10-setup:
#! /bin/bash
# support for GRUB version 2 (1.98-1)

error=0 ; trap "error=$((error|1))" ERR

$ROOTCMD grub-mkdevicemap -n -m /boot/grub/device.map
$ROOTCMD grub-mkconfig -o /boot/grub/grub.cfg
$ROOTCMD grub-install --no-floppy "(hd0)"

exit $error

After manually calling $ROOTCMD grub-install --no-floppy "(hd3)"
everything works just fine.


Any comments?
-- 
regards Thomas


More information about the linux-fai mailing list