Installing Ubuntu 10.04 w/ RAID 1 and GPT

Thursday, September 16th, 2010 @ 9:05pm

After spending several days of pain and frustration over trying to get RAID 1 working with Lucid Lynx and GPT, I finally got it working. Maybe this will be of use to someone else.

I initially tried following steps from here, but was unable to get the system to boot correctly. Eventually I stumbled upon this article which allowed me to get the boot loader working correctly.

Apparently between MSDOS partition tables and GPT, MSDOS automatically reserves a portion of the hard drive for the boot loader while GPT doesn’t. I guess the advantage of having GPT do so is that you can place it anywhere on the disc, although I would imagine you would want it near the beginning anyway.

You can follow either the graphical installation shown here or use the alternate cd to install 10.04, but the most important thing is that you leave a very small partition (< 1MiB) and flag it as bios_grub in order for the boot loader to handle things correctly. You can do this directly from gparted or run it on the command line like so:

$ sudo parted /dev/sda set <partition_number> bios_grub on

I haven’t tried configuring RAID 1 on the bios_grub partitions for each HDD, but I’m happy to leave it be as it works. Once that’s done, you can install grub manually (where sda and sdb are your respective hard disks):

$ sudo update-grub
$ sudo grub-install /dev/sda
$ sudo grub-install /dev/sdb

Additional Resources:

Submit a comment! Become famous!

Preview Comment

  1. Anonymous said
    Jun 23rd, 2017 @ 6:55am