Comment 37 for bug 46520

Revision history for this message
Annoyed Ape (jarkoian) wrote : Re: Grub installs to wrong drive's MBR in default install. No way to change in standard installer.

This bug still exists and was reproduced by my attempt to install Ibex on my multiple hard drive system.

I have 6 IDE drives, and one IDE CDROM drive. They are configured: /dev/sda, b, c, and d are hooked to a Promise PCI IDE card, master/slave channel 0, master/slave channel 1 respectively. These are LVM drives, and NOT boot drives. The motherboard's BIOS doesn't see these drives, as they are handled by the Promise IDE's onboard BIOS.

The other two drives are /dev/sde and f. These are both masters on channel 0/1 of the motherboard. The CDROM drive is also attached as a slave of channel 0. The motherboard BIOS sees these drives, and the boot order can be chosen to boot 1st from the CD, then from drive 0 (/dev/sde presumably).

I think I have old GRUB(s) hanging around on one or more of the MBRs from Gutsy Gibbon, etc. The Ibex installer put GRUB on the wrong drive. Going to a GRUB terminal and typing:

root (hd0,0)
find /boot/grub/stage1 (This line gives a file not found error)
find /grub/stage1 (This line works)
setup (hd0)
reboot

Allows me to get past the GRUB Error 2 problem, but then the boot fails as fsck can't access the /dev/sde1 partition... presumably because it thinks it is either busy or already mounted. Looking at it when it drops me into a rescue mode shows it is not mounted, but that the /dev/mapper/pdj.... is associated with that partition. Allowing it to finish booting by (crtl-D escaping from the rescue shell) correcly mounts the /boot partition, but I still can't fsck /dev/sde1.