> But: I have not succeeded in installing a valid LILO bootblock in the second
> disks MBR,
> which would allow me to trash the bootfloppy.

If your first disk fails so comprehensively that you have to boot from the
second disk, the second disk will more than likely be recognized by the BIOS as
the first disk in that situation. But if you run lilo with the normal parameters
to install lilo to the MBR of the second disk while the first disk is live, lilo
will be configured to look for the second disk if you boot from it, when it has
now become the first disk. Hence, lilo will fail.

You have to tell it that the disk which is currently the second disk will be the
first disk in the event that you boot from it. You do this by adding the
following line after your boot= line to the alternative lilo.conf for your
second disk:

disk=/dev/sdb   bios=0x800

Also, make sure that this lilo.conf points to all the essential system files on
the copy of /boot on sdb (either mount that partition on /boot, or point
explicitly at these files under their normal point in lilo.conf).

Hopefully, this should get you there.

Cheers,

Bruno Prior         [EMAIL PROTECTED]


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: 03 January 2000 15:20
> To: - *[EMAIL PROTECTED]
> Subject: Lilo for second disk?
>
>
>
> Hi,
> this is only vaguely connected to Raid, but here goes anyways.
> I have a machine with two identical disks set up as RAID 1, including the root
> partition,
> but not the /boot where vmlinux resides. /boot is mirrored with a script when
> it changes.
> I can unplug the second disk and the machine comes up no problem.
> I have made a bootfloppy, and with this floppy I can unplug the first
> disk, and
> the machines
> boots from the floppy into the second disk.
> I can reconstruct the other disk later without losing data.
>
> But: I have not succeeded in installing a valid LILO bootblock in the second
> disks MBR,
> which would allow me to trash the bootfloppy.
>
> Does anybody have an idea how to set up the lilo.conf and how to
> invoke lilo in
> order to do this?
>
> This is my normal lilo.conf:
>
> boot=/dev/sda
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> default=linux
> vga=0x318
> append = "video=vesa:mtrr,ypan"
> image=/boot/vmlinuz
>         label=linux
>         read-only
>         root=/dev/md1
>
> this is my fstab:
> /dev/md1                /                       ext2    defaults        1 1
> /dev/sda2               /boot                   ext2    defaults        1 1
> /dev/sda6               /tmp                    ext2
> defaults        1 2
> /dev/md0                /var                    ext2    defaults
> 1 2
> /dev/md2                /usr                    ext2    defaults
> 1 2
>
> /dev/sda and /dev/sdb are partitioned in the same way. /dev/sda2 is
> mirrored to
> /dev/sdb2 by hand and
> /dev/sdb6 is an empty partition which serves as /tmp in the failure case.
>
> --
> Thank*%s, Klaus-Georg Adams
>
>

Reply via email to