'\" t .\" @(#)lilo.conf.5 .\" This page is based on the lilo docs, which carry the following .\" COPYING condition: .\" .\" LILO program code, documentation and auxiliary programs are .\" Copyright 1992-1998 Werner Almesberger. .\" Extensions to LILO, documentation and auxiliary programs are .\" Copyright 1999-2005 John Coffman. .\" Extensions to LILO, documentation and auxiliary programs are .\" Copyright 2009-2011 Joachim Wiedorn. .\" .\" All rights reserved by the respective copyright holders. .\" .\" Redistribution and use in source and binary forms of parts of or the .\" whole original or derived work are permitted provided that the .\" original work is properly attributed to the author. The name of the .\" author may not be used to endorse or promote products derived from .\" this software without specific prior written permission. This work .\" is provided "as is" and without any express or implied warranties. .\" .TH LILO.CONF 5 "June 2013" .SH NAME lilo.conf \- configuration file for lilo .SH DESCRIPTION .LP This file, by default .IR /etc/lilo.conf , is read by the boot loader installer 'lilo' (see lilo(8)). .LP It might look as follows: .IP .nf # /etc/lilo.conf # # global options: boot=/dev/hda prompt timeout=150 lba32 compact vga=normal root=/dev/hda1 read-only menu-title=" John's Computer " # ### bootable kernel images ### image=/boot/vmlinuz-2.6.29-1-i386 label=try initrd=/boot/initrd.img-2.6.29-1-i386 image=/boot/vmlinuz-2.4.33-1-i386 label=2.4.33 image=/tamu/vmlinuz label=tamu initrd=/tamu/initrd.img root=/dev/hdb2 vga=ask # ### other operating systems ### other=/dev/hda3 label=PCDOS boot-as=0x80 # must be C: other=/dev/hdb1 label=WinXP boot-as=0x80 # must be C: other=/dev/hdb5 label=oldDOS loader=chain table=/dev/hdb5 .fi .LP This configuration file specifies that lilo uses the Master Boot Record on /dev/hda. (For a discussion of the various ways to use lilo, and the interaction with other operating systems, see html/user_21-5.html inside the old documentation.) .LP When booting, the boot loader will issue its .I "boot:" prompt and wait for you to enter the label of the kernel (and any options) which you wish to boot. At any time you may hit [Tab] to see a list of kernel/other labels. Alternately, if the \fBmenu\fP boot loader is installed, a menu of boot options will be presented for your selection. The title of this menu is overridden with the menu title specification in this configuration file. If you enter nothing, then the default kernel image, the first mentioned, (in the example /boot/vmlinuz-2.6.29-1-i386) will be booted after a timeout of 15 seconds (150 deciseconds). There may be at least 16 images mentioned in lilo.conf. (The exact number depends upon compilation options.) .LP As can be seen above, a configuration file starts with a number of global options (the top 9 lines in the example), followed by descriptions of the options for the various images. An option in an image description will override a global option. .LP Comment lines may appear anywhere, and begin with the "#" character. .SH "GLOBAL OPTIONS" There are many possible keywords. The description below is almost literally from html/user_21-5.html inside the old documentation (just slightly abbreviated). .TP .BI "backup=" Specifies the location where a copy of any modified boot sector will be saved in a file. 'backup=' may specify this location in one of three ways: a directory where the default backup file 'boot.NNNN' will be created; a file pathname template to which the '.NNNN' suffix will be added; or the full file pathname, which must include the correct '.NNNN' suffix. All RAID installations should use only the first two alternatives, as multiple backups may be created. The '.NNNN' suffix is the hexadecimal representation of the major and minor device numbers of the device or partition. If this option is not specified, the default name of boot sector backups is '/boot/boot.NNNN'. If a backup already exists, it will be preserved, rather than overwritten. C.f., \fBforce-backup=\fP below. .TP .BI "bios-passes-dl="