![]() |
LILO >
Some configuration examples.
Spoiler
default="sda1" boot=/dev/sda map=/boot/map install=menu keytable=/boot/us.klt menu-scheme=wb:bw:wb:bw compact prompt nowarn # timeout=100 message=/boot/message image=/boot/vmlinuz label="sda1" root=/dev/sda1 initrd=/boot/initrd.img image=/boot/vmlinuz label="sda2" root=/dev/sda2 initrd=/boot/initrd.img image=/boot/vmlinuz label="sda3" root=/dev/sda3 initrd=/boot/initrd.img
Spoiler
Tested and works on Windows 7.
default="Linux" boot=/dev/sda install=menu prompt nowarn # 30 milliseconds timeout=30 # Fixes "bios device code is being used by two disks" disk=/dev/sda bios=0x80 other=/dev/sda1 label="Windows" image=/boot/vmlinuz label="Linux" root="/dev/sdb6" initrd=/boot/initrd.img vga=0x376 image=/boot/vmlinuz label="Linux-failsafe" root="/dev/sdb6" initrd=/boot/initrd.img append="failsafe"
Spoiler
This is so old, it was was before SATA hard drives!
# NOTE: Must "mount /dev/hda1 /boot", otherwise no boot info will be seen. # make sure /boot isn't read-only either! =) # also note "man lilo.conf" for lots of other options. # Start LILO global section boot = /dev/hda compact # faster, but won't work on all systems. delay = 50 # VESA framebuffer console @ 1024x768x32k vga = 790 # Normal VGA console # vga = normal # VESA framebuffer console @ 1024x768x64k # vga=791 # VESA framebuffer console @ 1024x768x32k # vga=790 # VESA framebuffer console @ 1024x768x256 # vga=773 # VESA framebuffer console @ 800x600x64k # vga=788 # VESA framebuffer console @ 800x600x32k # vga=787 # VESA framebuffer console @ 800x600x256 # vga=771 # VESA framebuffer console @ 640x480x64k # vga=785 # VESA framebuffer console @ 640x480x32k # vga=784 # VESA framebuffer console @ 640x480x256 # vga=769 # ramdisk = 0 # paranoia setting # End LILO global section # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/hda5 label = Linux-poohbear read-only # Non-UMSDOS filesystems should be mounted read-only for checking # change # partition = /dev/hdb1 # deactivate # partition = /dev/hdc1 # deactivate # partition = /dev/hda1 # activate # Linux bootable partition config ends # offline, so that fat32-honeypot can live ## DOS bootable partition config begins #other = /dev/hda3 # label = Fat16-poohbear # table = /dev/hda ## DOS bootable partition config ends # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/hdb5 label = Linux-honeypot read-only # change # partition = /dev/hda1 # deactivate # partition = /dev/hdc1 # deactivate # partition = /dev/hdb1 # activate # Linux bootable partition config ends # DOS bootable partition config begins other = /dev/hdb1 optional label = Fat32-honeypot # alias = fat32 table = /dev/hdb map-drive = 0x80 # Logically swap the drives so that when they to = 0x81 # are accessed via the BIOS, the second drive map-drive = 0x81 # will appear as the first and the first as to = 0x80 # the second. change partition = /dev/hda1 deactivate # set = DOS16_big_hidden partition = /dev/hdb1 activate # set = DOS16_big_normal # DOS bootable partition config ends ## CD-ROM booting under insecure mode, made for hdb1 ## dunno what I'm doing. This also has to be figured out for floppy booting. Bleh. #other = /dev/hdd # optional # label = CDROM-Honeypot # table = /dev/hdb # map-drive = 0x80 # Logically swap the drives so that when they # to = 0x81 # are accessed via the BIOS, the second drive # map-drive = 0x81 # will appear as the first and the first as # to = 0x80 # the second. # change # partition = /dev/hda1 # deactivate # partition = /dev/hdb1 # activate ## bleh, doesn't work #other = /dev/hdd # label = CDROM-MBR # would be valuable if lilo isn't the only thing being interacted with. # I could have lilo on hda, and some other boot manager on another hd other = /dev/hda label = hda-MBR other = /dev/hdb label = hdb-MBR other = /dev/hdc label = hdc-MBR # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/hdc5 label = hdc-linux read-only # change # partition = /dev/hda1 # deactivate # partition = /dev/hdb1 # deactivate # partition = /dev/hdc1 # activate # Linux bootable partition config ends

