If you’ve just installed CentOS 6.x on software RAID and it won’t boot from /dev/md0, don’t worry. It can be fixed.
– Insert CentOS media/DVD and boot in rescue mode (select “Rescue mode” during boot)
– Select the “start shell” option
– chroot with
chroot /mnt/sysimage |
– install GRUB into /dev/md0 with
grub-install /dev/md0 |
– enter exit and than reboot
The other option is to enter into rescue mode and inside grub shell type the next commands:
grub> device (hd0) /dev/sda grub> device (hd1) /dev/sdb grub> root (hd0,0) grub> setup (hd0) grub> root (hd1,0) grub> setup (hd1) grub> quit |