LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RAID 1 on boot/root: LILO error (https://www.linuxquestions.org/questions/linux-software-2/raid-1-on-boot-root-lilo-error-337802/)

hamish 06-27-2005 06:29 PM

RAID 1 on boot/root: LILO error
 
Hello

I'm setting up RAID 1 on my boot and root partitions, using hda and hdc

In order to be redundant, I would like to install my LILO configuration onto the MBR of both my hard drives.

My lill.conf looks like this:

Code:


lba32

# MBR to install LILO to:
#disk = /dev/md0
boot = /dev/hda #LOOK HERE
map = /boot/.map

install = /boot/boot-menu.b 
menu-scheme=Wb
prompt
delay = 50
vga = 791

#
# Linux bootable partition config begins
#
image = /boot/gentoo-2.6.11
        root = /dev/md1
        #root = /devices/discs/disc0/part3
        label = Gentoo
        read-only # read-only for checking

When boot = /dev/hda (as above), I get no errors when running /sbin/lilo. Thus, the MBR is correctly installed on /dev/hda and the computer will boot if hda is plugged in.

However, when I chagne the line and set boot = /dev/hdc, and then run /sbin/lilo, I get an error:

Code:

localhost root # lilo
Warning: /dev/hdc is not on the first disk
Warning: The boot sector and map file are on different disks.
Added Gentoo *
Added Windows

What does this mean? I know that it isn't the first disk, but that should not matter.

When I unplug hda and try and boot with just /dev/hdc plugged in, my screen is just filled with "999999999".

Any suggestions?

Cheers
Hamish

mugstar 06-27-2005 06:33 PM

When it comes to MBR's, there can be only one, and it can only go on the first sectors of the first disk. No way round it, AFAIK.

hamish 06-28-2005 02:47 AM

But I'm sure I've read on sites that you should install LILO/Grub to the MBR for both.

Maybe grub would work better.

Hamish


All times are GMT -5. The time now is 11:00 AM.