Saturday, October 25, 2008

LILO with /boot on a Raid 1 mirror

  • I ran mcc in Mandriva 2009.0 and selected /dev/md0 as the Boot Device. The lilo.conf generated is shown below:

default="linux"
boot=/dev/md0
map=/boot/map
install=menu
keytable=/boot/us.klt
raid-extra-boot=mbr-only
menu-scheme=wb:bw:wb:bw
compact
prompt
nowarn
timeout=10
message=/boot/message
#disk=/dev/sdb bios=0x80
image=/boot/vmlinuz
label="linux"
root=/dev/md0
initrd=/boot/initrd.img
append="scsi_mod.scan=sync"

  • To migrate a OS partition from a non-raid drive to a raid volume, one must reinstall lilo after the partition was cloned. And that has to be done after chroot: (assuming the new raid volume is mounted in /mnt/newsys)
    chroot /mnt/newsys
    mount /proc
    lilo -H

    Otherwise lilo will fail to boot.
Ref:
Lilo.conf man page

1 comment:

Je said...

Thanks for this helpful post.