How do I install GRUB on a RAID system installation?

Posted by root45 on Ask Ubuntu See other posts from Ask Ubuntu or by root45
Published on 2011-05-15T21:12:44Z Indexed on 2011/11/24 2:21 UTC
Read the original article Hit count: 603

Filed under:
|

I'm trying to setup and install Ubuntu on a RAID 1 setup. I have two disks, sdb and sdc. I've been following this guide

https://help.ubuntu.com/community/Installation/SoftwareRAID

which more or less works for getting everything set up and Ubuntu installed. The problem is at the end of the installation, it tries to install GRUB. By default it tries my "first disk", which gives a "fatal error". I've tried installing it on a specific partion, e.g. sdb1 as well as RAID devices, e.g. md0, md1, etc.. Nothing seems to work.

Edit: The actual error is

"Unable to install GRUB in /dev/sdb

Executing 'grub-install '/dev/sdb' failed.

This is a fatal error."

Then I'm taken back to the main install menu. If I choose "Install the GRUB boot loader on a hard disk" option, I can pick the partition, but entering sdb2 or md1 gives the same error.

So I went ahead an just didn't install GRUB, which means now I presumably have a working Ubuntu installation, but I can't boot it. I've tried booting from the LiveCD to install GRUB, but I can't chroot into my system because it doesn't seem to recognize that my disk is a Linux disk. There's an error about it being a RAID partition.

So basically I would really like to know how you know to which device to install GRUB at installation, or at the very least, how to install it on to my system now.

I suppose I should also mention that sda is a Windows 7 installation that I would like to keep around and be able to access at boot.

Thanks for any help.

© Ask Ubuntu or respective owner

Related posts about installation

Related posts about raid