Thursday, February 17, 2011

Hardware RAID 1 on Ubuntu server 10.10 32bit

My server has Intel hardware RAID (Intel Matrix RAID storage) on mother board, I decided to install RAID 1 with 2 HDD 160GB with Ubuntu server 10.10 32bit. Luckily, this version can detect this Intel RAID Matrix driver. So I can install it without any problem, but Ubuntu did not let me change the FLAG of “Bootable” to ON. So that I can not boot into my system. This is really !@#.

In this post, I’ll show you how to turn that FLAG ON.

Use your Ubuntu server CD, then choose “Boot from the first hard disk”

After you log on to the system, use the fdisk utility as follow.

List all disks on your server

$sudo fdisk –l

You can see that there are sda and sdb in my system. You must do this step for both 2 hard drives:

$sudo fdisk /dev/sda

The you enter fdisk.

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help):

The type “a”:

Command (m for help):a

Then choose  the partition that you need to set FLAG Bootable on, in my is “1”

Partition number (1-5):1

Write change:

Command (m for help):w

Exit

Command (m for help):x

Then do the same with the second hard disk.

$sudo fdisk /dev/sdb

The you enter fdisk.

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help):
Command (m for help):a
Partition number (1-5):1
Command (m for help):w
Command (m for help):x

Good luck

No comments:

Post a Comment