[YLUG] grub

Patrick Dupre pd520 at york.ac.uk
Wed Feb 25 23:42:28 UTC 2009


Hello,

I have 2 systems (identical) on 2 different disks:
THis is my /etc/grub.conf
boot=/dev/sda
title Fedora (2.6.23.17-88.fc7)
         root (hd0,7)
         kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=/dev/sda8 rhgb quiet 
selinux=0
         initrd /boot/initrd-2.6.23.17-88.fc7.img

title Fedora (2.6.23.17-88.fc7 new)
         root (hd1,4)
         kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=/dev/sdb5 rhgb quiet 
selinux=0
         initrd /boot/initrd-2.6.23.17-88.fc7.img


I can easily boot on /dev/sda8, but not on /dev/sdb5, However, if I do:

         root (hd0,7)
         kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=/dev/sdb5 rhgb quiet 
selinux=0
         initrd /boot/initrd-2.6.23.17-88.fc7.img

then I can boot on /dev/sdb5

I try plenty of thing but I have not been able to make it work properly.
When I try to make a grub-install from /dev/sdb5, I get:
Probing devices to guess BIOS drives. This may take a long time.
The file /boot/grub/stage1 not read correctly.

I check the /boot/grub/device.map (it has both! hd0 and hd1).

Still from /dev/sdb5,
If I do: grub
then: root (hd1,4)
I get:
  Filesystem type is ext2fs, partition type 0x83

find /boot/grub/stage1
gives: (hd0,7) !!!
It looks like that grun check in the mbr !!!!
then:
setup (hd0)
gives:
  Checking if "/boot/grub/stage1" exists... no
  Checking if "/grub/stage1" exists... no

Error 2: Bad file or directory type


How can I fix this grub configuration ?

thank.

-- 
---
==========================================================================
  Patrick DUPRÉ                      |   |
  Department of Chemistry            |   |    Phone: (44)-(0)-1904-434384
  The University of York             |   |    Fax:   (44)-(0)-1904-432516
  Heslington                         |   |
  York YO10 5DD  United Kingdom      |   |    email: pd520 at york.ac.uk
==========================================================================


More information about the York mailing list