Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 218 #244
i
i
i
i
i
i
i
i
8.5.2 Structure of lilo.conf
/etc/lilo.conf starts with a global section, followed by one or more
system sections for each operating system LILO should start. Each system
section starts with a line beginning with image or other.
The order of entries in /etc/lilo.conf matters only in the sense that the
first one in the list is booted automatically if there is no user input at the
boot screen (and unless the default option is used). This happens after
a certain interval set with the delay and timeout options as explained
below.
A sample configuration for a computer with both Windows and Linux is
shown in Example 8.1. The bootable systems include a newly installed
Linux kernel (/boot/vmlinuz) and the original kernel, which is used
as a fallback (/boot/vmlinuz.shipped). There is also an entry to boot
Windows on /dev/hda1 and an additional one to start the program
MemTest86.
Example 8.1: Sample Configuration of /etc/lilo.conf
### LILO global section
boot = /dev/hda # LILO installation target: MBR
backup = /boot/MBR.hda.990428 # backup file for the old MBR
# 1999-04-28
vga = normal # normal text mode (80x25 chars)
read-only
menu-scheme = Wg:kw:Wg:Wg
lba32 # Use BIOS to ignore
# 1024 cylinder limit
prompt
password = q99iwr4 # LILO password (example)
timeout = 80 # Wait at prompt for 8 s before
# default is booted
message = /boot/message # LILO’s greeting
### LILO Linux section (default)
image = /boot/vmlinuz # Default
label = linux
root = /dev/hda7 # Root partition for the kernel
initrd = /boot/initrd
### LILO Linux section (fallback)
image = /boot/vmlinuz.shipped
label = Failsafe
root = /dev/hda7
initrd = /boot/initrd.suse
optional
218
8.5. Booting with LILO