Grub install fails to Raid1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debian-installer (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: debian-installer
Installing Lucid (10.04) Alpha 3 to a system fails at the Grub install part with the following dialog box
[!!] Configuring grub-pc
Unable to install GRUB in /dev/sda
Executing 'grub-install /dev/sda' failed.
This is a fatal error
<Go Back> <Continue>
If I go back and try again I get the same error. If I continue, and install LILO as the boot loader it works (but I would prefer to use GRUB).
The system has two disks with three partitions on each
/dev/sda
/dev/sda1 - 50Gig NTFS - Not used for this install
/dev/sda2 - 256Meg - Raid (part of md0) to be used as /boot
/dev/sda3 - 270Gig - Raid (part of md1) used for LVM (which then has /, swap, /var, /home)
/dev/sdb - same partitions as /dev/sda
If I redo the install, but use /dev/sda2 as a ext4 device with /boot on it (i.e. no raid) it works fine - grub installs and I can boot after the install completes.
The underlying problem is that the /boot/grub/ device. map file was missing
Managed to get this working by doing the following.
Boot from the CDROM and run 'Rescue a Broken System' grub-mkdevicema p -n' grub-install /dev/sda' grub-install /dev/sdb' (for completeness - this is a mirrored system) update- grub2'
Run a shell on the root partition
Mount /boot and /var
Run the command '/usr/sbin/
Run the command '/usr/sbin/
Run the command '/usr/sbin/
Run the command '/usr/sbin/
Reboot - and it all works