Thursday, August 5, 2010

software RAID grub problem

So, after correctly configuring a software RAID 1 (mirror) in a Linux installer, after rebooting, only if the /boot partition is part of a mirror, you'll get a grub prompt. Now, you can search Google for what you can accomplish from there, or you can read this. :) What can I say, I've searched Google before you. Anyway..you'll get this:

grub>
First, you'll have to type this, and you will get the location of grub setup files:

grub>find /grub/stage1 
(hd0,0) 
(hd1,0) 
So, if you have SATA, (hd0,0) stands for /dev/sda, and (hd1,0) stands for /dev/sdb - it will be hd* for IDE. So, to make sure you have grub install on both MBR on both drives of the mirror, type this:


grub>device (hd0) /dev/sdb
grub>root (hd0,0) and then:
grub>setup (hd0) 
grub>quit 
 This actually changes MBR to /dev/sdb (not the usual /dev/sda) and copies necessary files to boot. After reboot, it will still load grub from /dev/sda, but if something happens to it, it will successfully start your Linux from /dev/sdb.

No comments:

Post a Comment