LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Software RAID 1, if one drive fails I can't boot just from the other! (https://www.linuxquestions.org/questions/linux-server-73/software-raid-1-if-one-drive-fails-i-cant-boot-just-from-the-other-586613/)

Oskare100 09-22-2007 03:01 PM

Software RAID 1, if one drive fails I can't boot just from the other!
 
Hello,
I've software RAID installed with one SATA and one ATA/IDE drive. It is a combined controller so I had to add noprobe=/dev/hdc to the kernel boot line. Now the disks are named /dev/sda and /dev/sdb. There are four partitions, /dev/sda1 and /dev/sdb1 are the /dev/md0 root partition and then /dev/sda2 and /dev/sdb2 are the swap partition.

First when I removed one drive I just came to the grub command line..

Then I tried to do this in grub to make both drives bootable:
grub>device (hd0) /dev/sda
grub>root (hd0,0)
grub>setup (hd0)
grub>device (hd1) /dev/sdb
grub>root (hd1,0)
grub>setup (hd1)
grub>quit

Now it looks like normal when I get to grub apart from that the background of the boot screen is black instead of blue and then the computer just restarts when it is supposed to start/boot the system.

Any ideas of how I can solve this problem?

Regards Oskar

leandean 09-23-2007 01:48 AM

change the second part of grub to read::

device (hd0) /dev/sdb
root (hd0,0)
setup (hd0)


You specify the drive with /dev/sdx


All times are GMT -5. The time now is 05:45 PM.