The following is an example of a no-frills lilo.conf file:
1: boot=/dev/hda
2: map=/boot/map
3: install=/boot/boot.b
4: prompt
5: timeout=50
6: default=linux
7:
8: image=/boot/vmlinuz-2.2.12-20
9: label=linux
10: initrd=/boot/initrd-2.2.12-20.img
11: read-only
12: root=/dev/hda6
13:
14: other=/dev/hda1
15: label=dos
Key:
Global options.
"Per-image section" for Linux. (Note: If you want, you can have seperate "Per-image sections" for different kernels and/or different Linux distros.)
"Per-image section" for DOS/Windows.
1: On which boot sector the first little bit of Lilo will be stored. This location can be the MBR of a hard drive, the boot sector of a hard drive partition, or even the boot sector of a floppy disk.
2: The location of the map file. Omitting this line will default the location to /boot/map.
3: The file to install as the new boot sector. Omitting this will default the file to /boot/boot.b.
4: Displays the boot: prompt at boot time. Omitting this means you have to press Ctrl, Shift, or Alt key to bring up boot: prompt.
5: Time in 10ths of a second, boot: prompt waits for input before booting the default operating system. It also cancels current password entry if user takes too long. Omitting this and including prompt will result in an infinite timeout.
6: The default operating system. At the boot: prompt; by entering nothing and pressing Enter or waiting until timeout expires, Lilo will boot the default operating system. Omitting this will boot the first kernel image mentioned. In this case line 8 (Linux) because it comes before line 14 (DOS).
8: Where your kernel image is located.
9: What you enter at the boot: prompt to boot the OS in question. In this case, entering linux will load /boot/vmlinuz-2.2.12-20 (a.k.a. your Linux kernel). It's up to you what label you want to give each OS. Omitting this line will default the label to the kernel image's filename (without the path). In this case that would be vmlinuz-2.2.12-20.
10: Set the file that will be used as the initial RAM disk for preloading block device kernel modules (mostly to allow booting from SCSI or RAID drives). For more information, enter: info mkinitrd.
11: Mount root (/) partition as read-only to protect it from corruption whilst checks are performed on it (e.g. fsck). Once the checks are complete it will be remounted as read-write.
12: Set location of root (/) partition. Omitting this will default to the location stored in the kernel image.
14: other just means, "boot an operating system other than Linux. In this case the computer advances to the boot sector of the first partition, of your first hard drive (/dev/hda1), which boots DOS (followed by Windows) as if there were only one operating system on the computer. (If you're confused by that last bit, re-read the introduction at the top of this page).
|