a0f5da0c6cfdd188f585e108eee067b333606194
[rrq/maintain_lilo.git] / man / lilo.conf.5
1 '\" t
2 .\" @(#)lilo.conf.5 1.0 950728 aeb
3 .\" This page is based on the lilo docs, which carry the following
4 .\" COPYING condition:
5 .\"
6 .\" LILO program code, documentation and auxiliary programs are
7 .\" Copyright 1992-1998 Werner Almesberger.
8 .\" Extensions to LILO, documentation and auxiliary programs are
9 .\" Copyright 1999-2005 John Coffman.
10 .\" All rights reserved by the respective copyright holders.
11 .\" 
12 .\" Redistribution and use in source and binary forms of parts of or the
13 .\" whole original or derived work are permitted provided that the
14 .\" original work is properly attributed to the author. The name of the
15 .\" author may not be used to endorse or promote products derived from
16 .\" this software without specific prior written permission. This work
17 .\" is provided "as is" and without any express or implied warranties.
18 .\"
19 .TH LILO.CONF 5 "July 2010"
20 .SH NAME
21 lilo.conf \- configuration file for lilo
22 .SH DESCRIPTION
23 .LP
24 This file, by default
25 .IR /etc/lilo.conf ,
26 is read by the boot loader installer 'lilo' (see lilo(8)).
27 .LP
28 It might look as follows:
29 .IP
30 .nf
31 # lilo.conf
32 #
33 #  global options:
34 boot=/dev/hda
35 prompt
36 timeout=150
37 lba32
38 compact
39 vga=normal
40 root=/dev/hda1
41 read-only
42 menu-title=" John's Computer "
43 #
44 #  bootable kernel images:
45 image=/boot/zImage-1.5.99
46      label=try
47 image=/boot/zImage-1.0.9
48      label=1.0.9
49 image=/tamu/vmlinuz
50      label=tamu
51      initrd=initramdisk.img
52      root=/dev/hdb2
53      vga=ask
54 #
55 #  other operating systems:
56 other=/dev/hda3
57      label=dos
58      boot-as=0x80    # must be C:
59 other=/dev/hdb1
60      label=Win98
61      boot-as=0x80    # must be C:
62 other=/dev/hdb5
63      label=os2
64      loader=os2_d
65      table=E:   # os2 sees as E:
66 .fi
67 .LP
68 This configuration file specifies that lilo uses the Master
69 Boot Record on /dev/hda. (For a discussion of the various ways
70 to use lilo, and the interaction with other operating systems,
71 see user.tex from the lilo documentation.)
72 .LP
73 When booting, the boot loader will issue its 
74 .I "boot:"
75 prompt and wait for you to enter the label of the kernel (and any options)
76 which you wish to boot. At any time you may hit [Tab] to see
77 a list of kernel/other labels.
78 Alternately, if the \fBmenu\fP boot loader is installed,
79 a menu of boot options will be presented for your selection.
80 The title of this menu is overridden with the menu
81 title specification in this configuration file.
82 If you enter nothing,
83 then the default kernel image, the first mentioned, (/boot/zImage-1.5.99)
84 will be booted after a timeout of 15 seconds (150 deciseconds).
85 There may be at least 16 images mentioned in lilo.conf. (The exact number depends
86 upon compilation options.)
87 .LP
88 As can be seen above, a configuration file starts with a number
89 of global options (the top 9 lines in the example),
90 followed by descriptions of the options for the various images.
91 An option in an image description will override a global option.
92 .LP
93 Comment lines may appear anywhere, and begin with the "#" character.
94
95 .SH "GLOBAL OPTIONS"
96 There are many possible keywords. The description below is
97 almost literally from user.tex (just slightly abbreviated).
98 .TP
99 .BI "backup=" <backup-file>
100 Specifies the location where a copy of any modified boot sector will be
101 saved in a file. 'backup=' may specify this location in one of three ways:
102 a directory where the default backup file 'boot.NNNN' will be created;
103 a file pathname template to which the '.NNNN' suffix will be added; or
104 the full file pathname, which must include the correct '.NNNN' suffix.
105 All RAID installations should use only the first two alternatives, as
106 multiple backups may be created.  The '.NNNN' suffix is the hexadecimal
107 representation of the major and minor device numbers of the device or
108 partition. If this option is not specified, the default name of boot sector
109 backups is '/boot/boot.NNNN'. If a backup already exists, it will be
110 preserved, rather than overwritten.  C.f., \fBforce-backup=\fP below.
111 .TP
112 .BI "bios-passes-dl=" <option>
113 The option is indicated as \fIyes\fP, \fIno\fP, or \fIunknown\fP.  If not
114 specified, a value of "unknown" is assumed, unless additional information
115 is available to the boot installer. When "no" is specified, it indicates
116 that the BIOS is known not to pass the current boot device code to the boot
117 loader in the DL register.  Its only function at this point is experimental,
118 as certain RAID installations may benefit from knowing that the
119 BIOS is 100% reliable.  Its use should be considered experimental.
120 .sp
121 N.B.:  This option may not be retained in releases beyond 22.5.1, and
122 may be specified on the command line with the '\-Z' switch:  yes=1, no=0.
123 .TP
124 .BI "bitmap=" <bitmap-file>
125 Specifies use of a 640x480x16 (VGA BIOS) or 640x480x256 (VGA/VESA BIOS)
126 bitmap file as the background on which a boot
127 menu is displayed.  May not be used if 'message=' is specified.
128 Use of this option will select a bitmap-capable boot
129 loader, unless overridden with "install=" (see below).
130 .sp
131 When a bitmap file is specified as a background screen during the boot
132 process, the color selection and layout of the text which overlays the
133 graphic image must be specified in one of two ways.  One way, is to use
134 a bitmap image (*.bmp) file which has had a header written by the
135 .BI "lilo -E"
136 command.  If this command is used, then all of the
137 information specified by the 'bmp-colors', 'bmp-table', and 'bmp-timer'
138 options is stored in a special LILO header within the bitmap file.
139 Without this header, the 'bmp-' option values should be
140 specified in the configuration file; if not, default values are used.
141 Any use of the 'bmp-' options
142 within the configuration file overrides the values stored in the
143 bitmap file header.
144 .TP
145 .BI "bmp-colors=" <fg>,<bg>,<sh>,<hfg>,<hbg>,<hsh>
146 Specifies the decimal values of the colors to be used for the menu display
147 on a 'bitmap=' background.  The list consists of 6 entries, 3 for normal
148 text followed by 3 for highlighted text.  The order of each triple is:
149 foreground color, background color, shadow color.  If background color is
150 not specified, "transparent" is assumed.  If shadow color is not specified,
151 then "none" is assumed.  The list entries are separated by commas, with no
152 spaces.
153 .TP
154 .BI "bmp-retain"
155 Option applies to all 'image=' and 'other=' sections.
156 (See COMMON OPTIONS, below.)
157 .TP
158 .BI "bmp-table=" <x>,<y>,<ncol>,<nrow>,<xsep>,<spill>
159 Specifies the location and layout of the menu table.  <x>,<y> specify the
160 starting x- and y-position of the upper left corner of the table in
161 character coordinates: x in [1..80], y in [1..30]. <ncol> is the number of
162 columns in the menu (1..5); and <nrow> is the number of rows (entries)
163 in each column.
164 If more than one column is specified, then <xsep> is the number of character
165 columns between the leftmost characters in each column: (18..40), and
166 <spill> is the number of entries in one column which must be filled before
167 entries spill into the next column. <spill> must be .le. <nrow>. If pixel
168 addressing is used, instead of character addressing, then any of <x>, <y>,
169 or <xsep> may be specified with a 'p' suffix on the decimal value.
170 .TP
171 .BI "bmp-timer=" <x>,<y>,<fg>,<bg>,<sh>
172 Optional specification of the 'timeout='
173 countdown timer.  <x>,<y> 
174 specifies the character (or pixel) coordinate of the location of the timer
175 the same as 'bmp-table='
176 above; and the color triple specifies the character color attributes
177 the same as 'bmp-colors=' above, with the exception that the background color
178 .I must
179 be specified.  If used to override the timer specification in a bitmap file,
180 then the form 'bmp-timer = none' is acceptable.  This will disable the timer
181 display entirely.
182 .TP
183 .BI "boot=" <boot-device>
184 Sets the name of the device (e.g. a hard disk partition) that contains
185 the boot sector. If this keyword is omitted, the boot sector is read
186 from (and possibly written to) the device that is currently mounted as root.
187 .sp
188 A raid installation is initiated by specifying a RAID1 device as the boot
189 device; e.g., "boot=/dev/md0".  Note that LILO version 22.0 and later
190 operate differently from earlier versions with respect to the actual
191 location of the boot records.
192 .sp
193 On newer systems you need an unique ID for the boot device. If the boot
194 sector should write to a partition you can use its UUID in the same manner
195 is for the root options.
196 .sp
197 If your boot device is a hard disk you need a special ID, which is supported
198 by udev. You find the right ID in the directory /dev/disks/by-id, i. e.:
199 .IP
200 .nf
201     boot = /dev/disk/by-id/ata-SAMSUNG_SV1604N_S01FJ10X999999
202 .fi
203 .TP
204 .BI "change-rules"
205 Defines boot-time changes to partition type numbers (`hiding').
206 .IP
207 .nf
208 change-rules
209    reset
210    type=DOS12
211       normal=1
212       hidden=0x11
213    type=DOS16_small
214       normal=4
215       hidden=0x14
216    type=DOS16_big
217       normal=0x06
218       hidden=0x16
219 .fi
220 .IP
221 The above excerpt from a configuration file specifies that all default
222 .I change-rules
223 are removed ("reset"), and the change-rules for three partition types
224 are specified.  Without the \fIreset\fP, the three types specified would
225 have been added to the existing default change-rules.  Normally, the default
226 rules are sufficient.  The strings which define the partition types
227 are used in a
228 .I change
229 section (see below), with the suffixes "_normal" or "_hidden" appended.
230 See section "Partition type change rules" of user.tex for more details.
231 .TP
232 .BI "compact"
233 Tries to merge read requests for adjacent sectors into a single 
234 read request. This drastically reduces load time and keeps the map file
235 smaller. Using `compact' is especially recommended when booting
236 using a map file on a floppy disk. 
237 .TP
238 .BI "default=" <name>
239 Uses the specified image as the default boot image. If `default' is omitted,
240 the image appearing first in the configuration file is used. See also,
241 .I vmdefault
242 below.
243 .TP
244 .BI "delay=" <tsecs>
245 Specifies the number of tenths of a second the boot loader should 
246 wait before automatically booting a locked command line,
247 a command line pre-stored by
248 "lilo \-R", or the default `image=' or `other='.
249 When `delay' is non-zero, the boot loader will wait for an interrupt for the 
250 specified interval. If an interrupt is received, or
251 is already waiting, the \fBboot:\fP
252 prompt will be be issued, and no automatic boot will take place. The setting
253 of CAPS LOCK or SCROLL LOCK, or any of the
254 keys ALT, CTRL, or SHIFT, when held down, are taken as interrupts.
255
256 This action is modified by specifying `prompt' (see below).
257 .TP
258 .BI "disk=" <device-name>
259 Defines non-standard parameters for the specified disk.
260 See section "Disk geometry" of user.tex for details.
261 For versions of LILO prior to 22.5, the `bios=' parameter
262 is quite useful for specifying how the BIOS has assigned
263 device codes to your disks.
264 For example,
265 .sp
266 .nf
267        disk=/dev/sda
268             bios=0x80
269        disk=/dev/hda
270             bios=0x81
271        disk=/dev/sdb
272             inaccessible
273 .fi
274 .sp
275 would say that your SCSI disk is the first BIOS disk (0x80),
276 that your (primary master) IDE disk is the second BIOS disk (0x81),
277 and that your second SCSI disk (perhaps a USB device) receives no
278 device code, and is therefore inaccessible at boot time.
279 .sp
280 NOTE: Use of the 'bios=' option is largely obsolete beginning
281 with LILO version 22.5, as the boot loader now identifies disks
282 by 32-bit Volume-ID, and defers BIOS device code determination
283 until boot time.
284 .sp
285 Other options include the specification of disk geometry; e.g.,
286 .sp
287 .nf
288        disk=/dev/fd0
289             sectors=18
290             heads=2
291             cylinders=80
292 .fi
293 .sp
294 probably only useful for floppy disks and loopback devices,
295 since for hard disks the
296 .BI lba32
297 disk addressing option (LILO 21.2) ignores disk geometry.
298 .sp
299 (22.5.8) Developers who have implemented a disk driver for a new block storage
300 device will have to indicate to LILO the maximum number of partitions
301 on the device.  This is in addition to making all of the necessary
302 entries for the device in the "/dev" directory (with 'mknod').  The
303 maximum number of partitions must be one of 63 (like an IDE disk), 31 (uncommon), 15
304 (like SCSI disks -- most common value), or 7 (like one array controller).
305 An example specification would be:
306 .sp
307 .nf
308      disk=/dev/userd0
309           max-partitions=15
310 .fi
311 .sp
312 In cases where there is no
313 kernel partition information available, such as on loopback devices,
314 the 'disk=' specification may include paritition start information;
315 viz.,
316 .sp
317 .nf
318        disk=/dev/loop0
319             bios=0x80                   # use this BIOS code
320             max-partitions=7            # declare partitionable
321             paritition=/dev/loop1
322                  start=63               # offset from sector 0
323             paritition=/dev/loop2
324                  start=102400           # offset from sector 0
325 .fi
326 .sp
327 .TP
328 .BI "disktab=" <disktab-file>
329 Specifies the name of the disk parameter table.
330 The map installer looks for
331 .I /etc/disktab
332 if `disktab' is omitted. The use of disktabs is discouraged.
333 .TP
334 .BI "el-torito-bootable-CD"
335 Flag second stage loader to terminate disk emulation when booting
336 from an El Torito Bootable CD. This option is used by the
337 \fBmkrescue\fP utility when the "\-\-iso" switch is specified.
338 .TP
339 .BI "fix-table"
340 This allows lilo to adjust 3D addresses in partition tables. Each 
341 partition entry contains a 3D (cylinder/head/sector) and a linear 
342 address of the first and the last sector of the partition. If a 
343 partition is not track-aligned and if certain other operating systems 
344 (e.g. PC/MS-DOS or OS/2) are using the same disk, they may change the 
345 3D address. lilo can store its boot sector only on partitions where 
346 both address types correspond. lilo re-adjusts incorrect 3D start 
347 addresses if `fix-table' is set.
348
349 WARNING: This does not guarantee that other operating systems may 
350 not attempt to reset the address later. It is also possible that this 
351 change has other, unexpected side-effects. The correct fix is to 
352 re-partition the drive with a program that does align partitions to 
353 tracks. Also, with some disks (e.g. some large EIDE disks with address 
354 translation enabled), under some circumstances, it may even be 
355 unavoidable to have conflicting partition table entries.
356 .TP
357 .BI "force-backup=" <backup-file>
358 Operation is identical to \fBbackup=\fP above, except an existing backup
359 file is unconditionally overwritten if it exists.
360 .TP
361 .BI "geometric"
362 Force disk addressing which is compatible with older versions of LILO. 
363 Geometric addressing uses cylinder/head/sector addresses, and is limited to
364 disk cylinders up to 1023.  If inaccessible cylinders are referenced,
365 diagnostics will be issued at boot-install time, rather than boot-time. 
366 With a newer BIOS, use of 'lba32' is recommended.
367 .TP
368 .BI "ignore-table"
369 tells lilo to ignore corrupt partition tables. 
370 .TP
371 .BI "install=" <user-interface>
372 Selects the user interface which will be seen at boot time.  One of the
373 following three options may be specified:  \fBtext\fP, \fBmenu\fP, or
374 \fBbmp\fP. The traditional LILO interface is `text'; but `menu' is now the
375 default, unless the configuration file contains the `bitmap='
376 specification.  The \fItext\fP interface is strictly a command-line
377 interface as though the console were a dumb terminal.  The \fImenu\fP
378 interface is a text-based screen of the boot choices, with the option to
379 enter additional command line parameters.  And the \fIbmp\fP interface is a
380 menu presented against a graphic screen, specified as a 640x480 BitMaP file
381 of 16 or 256 colors.  (See the 'lilo \-E' switch for editing options).
382 .sp
383 (Prior to LILO version 22.3, `install=' specified the user interface as
384 a file in the `/boot' directory.)
385 .TP
386 .BI "large-memory"
387 Normally any initial ramdisk (initrd) loaded with a kernel is loaded as
388 high in memory as possible, but never above 15Mb.  This is due to a BIOS
389 limitation on older systems.  On newer systems, this option enables using
390 memory above 15Mb (up to a kernel imposed limit, around 768Mb) for
391 passing the initrd to the kernel.  The presence of this option merely
392 indicates that your system does not have the old BIOS limitation.
393
394 This switch (or its absence) is not passed to the kernel, and does not
395 in any way affect the
396 amount of physical memory which it will use.  (See the
397 kernel documentation for the kernel command line parameter
398 "mem=" for limiting the memory used by the kernel.)
399 .TP
400 .BI "lba32"
401 Generate 32-bit Logical Block Addresses instead of cylinder/head/sector 
402 addresses. If the BIOS supports packet addressing, then packet calls will be
403 used to access the disk. This allows booting from any partition on disks
404 with more than 1024 cylinders.
405 If the BIOS does not support packet addressing, then 'lba32' addresses are
406 translated to cylinder/head/sector ('geometric'), just as for 'linear'.
407 All floppy disk
408 references are retained in C:H:S form.  Use of 'lba32' is recommended on
409 all post-1998 systems.  Beginning with LILO version 22, 'lba32' is the
410 default disk addressing scheme.
411 .TP
412 .BI "linear"
413 Generate 24-bit linear sector addresses instead of cylinder/head/sector 
414 (geometric) addresses. Linear addresses are translated at run time to
415 geometric addresses, and are limited to cylinders <= 1023. When using
416 `linear' with large disks,
417 .I /sbin/lilo
418 may generate references to inaccessible disk cylinders. 'lba32' avoids
419 many of these pitfalls with its use of packet addressing, but requires a
420 recent BIOS (post-1998).  The 'linear' option is considered obsolete,
421 and its use is strongly discouraged.
422 .TP
423 .BI "lock"
424 Enables automatic recording of boot command lines as the defaults 
425 for the following boots. This way, lilo "locks" on a choice until it is 
426 manually overridden.
427 .TP
428 .BI "mandatory"
429 The per-image password option `mandatory' (see below) applies to all images.
430 .TP
431 .BI "map=" <map-file>
432 Specifies the location of the map file. If `map' is omitted, the file
433 .I /boot/map
434 is used.
435
436 On machines with a pre-1998 BIOS, the EDD bios extensions which are required
437 to support "lba32" disk sector addressing may not be present. In this case,
438 the boot-loader will fall back automatically to "geometric" addressing; this
439 fall back situation, or the specific use of "geometric" or "linear"
440 addressing, will require the map file to be located within the first 1024
441 cylinders of the disk drive. This BIOS limitation is not present on
442 post-1998 systems, most of which support the newer EDD disk BIOS calls.
443 .TP
444 .BI "menu-title=" <title-string>
445 Specifies the title line (up to 37 characters) for the boot menu. This
446 title replaces the default "LILO Boot Menu" title string. If
447 .I menu
448 is not installed as the boot loader (see
449 .I "install="
450 option), then this line has no effect.
451 .TP
452 .BI "menu-scheme=" <color-scheme>
453 The default color scheme of the boot menu may be overridden on VGA displays
454 using this option. (The color scheme of MDA displays is fixed.)
455 The general
456 .I color-scheme
457 string is of the form:
458 .sp
459 .nf
460      <text>:<highlight>:<border>:<title>
461 .fi
462 .sp
463 where each entry is two characters which specify a
464 foreground color and a background color. Only the first entry is
465 required. The default highlight is the reverse of the text color; and the
466 default border and title colors are the text color.
467 Colors are specified using the characters \fBkbgcrmyw\fP, for blac\fBK\fP,
468 \fBB\fPlue, \fBG\fPreen, \fBC\fPyan, \fBR\fPed,
469 \fBM\fPagenta, \fBY\fPellow, and \fBW\fPhite: upper case for
470 intense (fg only), lower case for dim.
471 Legal color-scheme strings would be
472 .sp
473 .nf
474     menu-scheme=Wm     intense white on magenta
475     menu-scheme=wr:bw:wr:Yr    the LILO default
476     menu-scheme=Yk:kw    bright yellow on black
477 .fi
478 .sp
479 If
480 .I "menu"
481 is not installed as the boot loader, then this line has no effect.
482 .TP
483 .BI "message=" <message-file>
484 specifies a file containing a message that is displayed before
485 the boot prompt. No message is displayed while waiting 
486 for a shifting key after printing "LILO ". In the message, the FF
487 character ([Ctrl L]) clears the local screen. This is undesirable when
488 the \fImenu\fP boot loader is installed. 
489 The size of the message 
490 file is limited to 65535 bytes. The map file has to be rebuilt if the 
491 message file is changed or moved.  'message=' and 'bitmap=' are mutually
492 exclusive.
493 .TP
494 .BI "nodevcache"
495 (22.8)
496 Disables pre-loading of the internal device cache. May be needed for
497 Linux distributions which use non-standard device naming conventions;
498 e.g., when the first IDE disk is not `/dev/hda'.
499 .TP
500 .BI "nokbdefault=" <name>
501 (22.7.2)
502 The named descriptor is taken to be the default boot image 
503 if no IBM-PC keyboard is 
504 present. If no serial interface ("serial=") is in use, then any "prompt"
505 keyword and "timeout" value are bypassed, and default booting occurs as
506 specified by "delay=".
507 The keyboard detection codes cannot detect the presence or absence of
508 a newer USB keyboard.
509 .TP
510 .BI "noraid"
511 Disables the automatic marking of disk volumes which are components of
512 RAID arrays as \fBinaccessible\fP.  This allows the user to edit the \fBdisk=\fP
513 / \fBinaccessible\fP declarations into the configuration file himself.  Without
514 such declarations, duplicate Volume IDs will be overwritten, leading to
515 confusing situations at boot-time, and possible failure to boot.  The use
516 of this keyword is generally not necessary.
517 .TP
518 .BI "nowarn"
519 Disables warnings about possible future dangers.
520 .TP
521 .BI "optional"
522 The per-image option `optional' (see below) applies to all images.
523 .TP
524 .BI "password=" <password>
525 The per-image option `password=...' (see below) applies to all images. This
526 option may prevent unattended booting, if the default image is `password='
527 protected at the default level `mandatory', which is a level higher than
528 `restricted'.
529 .TP
530 .BI "prompt"
531 Automatic booting (see `delay' above) will not take place unless a locked or
532 pre-stored ("lilo \-R") command line is present. Instead, the boot
533 loader will issue the 
534 .I boot:
535 prompt and wait for user input before proceeding (see
536 .I timeout
537 below).
538 Unattended default image reboots are impossible if `prompt' is set
539 and `timeout' is not, or the default image is password protected at a higher
540 level than `restricted'.
541 .TP
542 .BI "raid-extra-boot=" <option>
543 This option only has meaning for RAID1 installations.
544 The <option> may be specified as \fInone\fP, \fIauto\fP, \fImbr\fP,
545 \fImbr-only\fP,
546 or a comma-separated list of devices; e.g., "/dev/hda,/dev/hdc6".  Starting
547 with LILO version 22.0, the boot record is normally written to the first
548 sector of the RAID1 partition.  On PARALLEL raid sets, no other boot records
549 are needed.  The
550 default action is \fIauto\fP, meaning, automatically generate auxiliary boot
551 records as needed on SKEWED raid sets.  \fInone\fP means
552 suppress generation of all auxiliary boot records.
553 \fImbr-only\fP suppresses generation of a boot record on the raid device,
554 and forces compatibility with versions of LILO earlier than version 22.0
555 by writing boot records to all Master Boot Records (MBRs) of all disks which
556 have partitions in the raid set. \fImbr\fP is like \fImbr-only\fP except the
557 boot record on the RAID partition is not suppressed.
558 Use of an explicit list of devices, forces writing of auxiliary boot records
559 only on those devices enumerated, in addition to the boot record on the RAID1
560 device. Since the version 22 RAID1 codes will never automatically write a boot
561 record on the MBR of device 0x80, if such a boot record is desired, this is
562 one way to have it written. Use of \fImbr\fP is the other way to force
563 writing to the MBR of device 0x80.
564 .TP
565 .BI "restricted"
566 The per-image password option `restricted' (see below) applies to all images.
567 .TP
568 .BI "serial=" <parameters>
569 enables control from a serial line. The specified serial port is
570 initialized and the boot loader is accepting input from it and from 
571 the PC's keyboard. Sending a break on the serial line corresponds to 
572 pressing a shift key on the console in order to get the boot loader's
573 attention. 
574 All boot images should be password-protected if the serial access is 
575 less secure than access to the console, e.g. if the line is connected 
576 to a modem. The parameter string has the following syntax:
577 .sp
578 .nf
579     <port>[,<bps>[<parity>[<bits>]]]
580 .fi
581 .sp
582 <port>:  the number of the serial port, zero-based. 0 corresponds to
583 COM1 alias /dev/ttyS0, etc. All four ports can be used (if present).
584 .sp
585 <bps>:  the baud rate of the serial port. The following baud rates are 
586 supported: 110, 150, 300, 600, 1200, 2400(default), 4800, 9600, plus the 
587 extended rates 19200, 38400, and 57600(56000).  115200 is allowed, but may
588 not work with all COMx port hardware.
589 .sp
590 <parity>:  the parity used on the serial line. The boot loader ignores input 
591 parity and strips the 8th bit. The following (upper or lower case) 
592 characters are used to describe the parity:  "n" for no parity, "e" 
593 for even parity and "o" for odd parity.
594 .sp
595 <bits>:  the number of bits in a character. Only 7 and 8 bits are 
596 supported. Default is 8 if parity is "none", 7 if parity is "even" 
597 or "odd". 
598 .sp
599 If `serial' is set, the value of `delay' is automatically raised to 20.
600 .sp
601 Example: "serial=0,2400n8" initializes COM1 with the default parameters.
602 .TP
603 .BI "single-key"
604 This option specifies that boot images or 'other's are to be selected and
605 launched with a single keystroke.  Selection is based upon the first
606 character of each name, which must be unique.  This option should not be
607 used with the menu or bitmap user interface ("install=").
608 .TP
609 .BI "static-BIOS-codes"
610 Causes the operation of the boot installer and boot loader to bypass the
611 use of Volume-ID information, and to revert to a mode of operation of
612 versions of LILO from 22.4 backward.  With Volume-ID booting (22.5 and later),
613 the BIOS codes
614 of disks are determined at boot time, not install time; hence they may
615 be switched around, either by adding or removing disk(s) from the hardware
616 configuration, or by using a BIOS menu to select the boot device.
617 .sp
618 With the use of
619 this option, BIOS codes of disks MUST be correctly specified at install
620 time; either guessed correctly by LILO (which often fails on
621 mixed IDE/SCSI systems), or explicitly specified with 'disk=/dev/XXX
622 bios=0xYY' statements.  The use of this option precludes
623 any activity which may switch around the BIOS codes assigned to particular
624 disk devices, as noted above.
625 .sp
626 In general, this option should
627 never be used, except as a bug workaround.
628 .TP
629 .BI "suppress-boot-time-BIOS-data"
630 This global option suppresses the boot-time real mode collection of BIOS data
631 on systems which hang on certain BIOS calls.  It is equivalent to using the
632 boot-time switch 'nobd'.
633 .sp
634 This option defeats the disk volume recognition and BIOS device code
635 detection features of LILO on systems with more than one disk. Thus the use
636 of this option will produce a strong cautionary message,
637 which cannot be suppressed.
638 .TP
639 .BI "timeout=" <tsecs>
640 sets a timeout (in tenths of a second) for keyboard input at the 
641 .I boot:
642 prompt.  "timeout" only has meaning if "prompt" is mentioned.
643 If no key is pressed for the specified time, the default image is 
644 automatically booted. The default timeout is infinite.
645 .TP
646 .BI "unattended"
647 (22.6) Alters the operation of the "timeout" parameter in a manner which
648 is useful on
649 noisy serial lines.  Each typed (or noise) character restarts the "timeout"
650 timer and a timeout will always boot the default descriptor, even if noise
651 characters have appeared on the input line.
652 .TP
653 .BI "verbose=" <number>
654 Turns on lots of progress reporting. Higher numbers give more verbose
655 output. If  \-v  is additionally specified on the lilo command line,
656 the level is increased accordingly. The maximum verbosity level is 5.
657 .TP
658 .BI "vmdefault=" <name>
659 The named boot image is used as the default boot if booting in "virtual"
660 mode with a virtual monitor, such as VMware(tm).  Thus a real mode boot and
661 a virtual mode boot can be made to have different default boot images.
662 .br
663
664 .LP
665 Additionally, the kernel configuration parameters
666 .BR append ", " ramdisk ", " read-only ", " read-write ", " root
667 and
668 .B vga
669 can be set in the global options section. They are used as defaults
670 if they aren't specified in the configuration sections of the
671 respective kernel images.
672
673 .SH "PER-IMAGE SECTION"
674 A per-image section starts with either a line
675 .sp
676 .nf
677     \fBimage=\fP\fI<pathname>\fP
678 .fi
679 .sp
680 to indicate a file or device containing the boot image of a Linux
681 kernel, or a line
682 .sp
683 .nf
684     \fBother=\fP\fI<device>\fP
685 .fi
686 .sp
687 to indicate an arbitrary system to boot.
688 .LP
689
690 In the former case, if an \fBimage\fP line specifies booting
691 from a device, then one has to indicate the range of sectors to be mapped
692 using
693 .sp
694 .nf
695     \fBrange=\fP\fI<start>-<end>\fP
696     \fBrange=\fP\fI<start>+<nsec>\fP
697     \fBrange=\fP\fI<sector>\fP
698 .fi
699 .LP
700 In the third case, 'nsec=1' is assumed.
701
702 .SH "KERNEL OPTIONS (image=)"
703 If the booted image is a Linux kernel, then one may pass
704 command line parameters to this kernel.
705 .TP
706 .BI "addappend=" <string>
707 (22.6) The kernel parameters from the specified string, are concatenated to the
708 parameter(s) from an
709 .B "append="
710 specification (see below).
711 The string must be enclosed within double quotes.  Usually, the previous
712 .B "append="
713 will specify parameters common to all kernels by appearing in the top,
714 or global, section of the configuration file and
715 .B "addappend="
716 will be used to add local parameter(s) to an individual image.
717 Addappend= may be used only once per "image=" section.
718 .TP
719 .BI "append=" <string>
720 Appends the options specified to the parameter line passed to the kernel.
721 This is typically used to specify hardware parameters that can't be
722 entirely auto-detected or for which probing may be dangerous. Multiple
723 kernel parameters are separated by a blank space, and the string must be
724 enclosed in double quotes.  A local append= appearing withing an image=
725 section overrides any
726 global append= appearing in the top section of the configuration file.
727 Append= may be used only once per "image="
728 section. To concatenate parameter strings, use "addappend=". Example:
729 .sp
730 .nf
731      append="mem=96M hd=576,64,32 console=ttyS1,9600"
732 .fi
733 .sp
734 .TP
735 .BI "initrd=" <name>
736 Specifies the initial ramdisk image to be loaded with the kernel.  The
737 image will contain modules needed at boot time, such as network and scsi
738 drivers. See man pages for \fImkinitrd(8)\fP.
739 .TP
740 .BI "literal=" <string>
741 Like `append', but removes all other options (e.g. setting of the root
742 device). 'literal' overrides all 'append' and 'addappend' options.
743 Because vital options can be removed unintentionally with `literal',
744 this option cannot be set in the global options section.
745 .TP
746 .BI "ramdisk=" <size>
747 This specifies the size (e.g., "4096k") of the optional RAM disk. A value of 
748 zero indicates that no RAM disk should be created. If this variable is 
749 omitted, the RAM disk size configured into the boot image is used.
750 .TP
751 .BI "read-only"
752 This specifies that the root file system should be mounted read-only.
753 It may be specified as a global option.
754 Typically, the system startup procedure re-mounts the root 
755 file system read-write later (e.g. after fsck'ing it).
756 .TP
757 .BI "read-write"
758 This specifies that the root file system should be mounted read-write.
759 It may be specified as a global option.
760 .TP
761 .BI "root=" <root-device>
762 This specifies the device that should be mounted as root. 
763 It may be specified as a global option.
764 If the special name
765 .B current
766 is used, the root device is set to the device on which the root file
767 system is currently mounted. If the root has been changed with  \-r ,
768 the respective device is used. If the variable `root' is omitted,
769 the root device setting contained in the kernel image is used.
770 (And that is set at compile time using the ROOT_DEV variable in
771 the kernel Makefile, and can later be changed with the rdev(8) program.)
772 .sp
773 The root filesystem may also be specified by a
774 .B LABEL=
775 or
776 .B UUID=
777 directive, as in '/etc/fstab'.  In this case, the argument to
778 .I root=
779 must be enclosed in quotation marks, to avoid a syntax error on the second
780 equal sign, e.g.:
781 .sp
782 .nf
783      root="LABEL=MyDisk"
784      root="UUID=5472fd8e-9089-4256-bcaa-ceab4f01a439"
785 .fi
786 .sp
787 Note:  The command line
788 .I root=
789 parameter passed to the kernel will be: 'root=LABEL=MyDisk'; i.e., without
790 the quotation marks. If the
791 .I root=
792 parameter is passed from the boot time
793 .B boot:
794 prompt, no quotes are used.  The quotes are only there to satisfy the
795 requirements of the boot-installer parser, which treats an equal sign as
796 an operator.  The kernel command line parser is very much simpler, and
797 must not see any quotation marks.  Simply stated, only use the quotation
798 marks within
799 .IR /etc/lilo.conf .
800 .TP
801 .BI "vga=" <mode>
802 This specifies the VGA text mode that should be selected when 
803 booting.
804 It may be specified as a global option.
805 The following values are recognized (case is ignored): 
806 .sp
807 .BR normal :
808 select normal 80x25 text mode. 
809 .sp
810 .BR extended " (or " ext ):
811 select 80x50 text mode.
812 .sp
813 .BR ask :
814 stop and ask for user input (at boot time).
815 .sp
816 <number>: use the corresponding text mode. A list of available modes 
817 can be obtained by booting with
818 .I vga=ask
819 and pressing [Enter]. 
820 .sp
821 If this variable is omitted, the VGA mode setting contained in the 
822 kernel image is used. (And that is set at compile time using the
823 SVGA_MODE variable in the kernel Makefile, and can later be changed with
824 the rdev(8) program.)
825
826 .SH "ALTERNATE SYSTEM (other=)"
827 .LP
828 Used to load systems other than Linux. The `other = <device>' specifies
829 the boot sector of an alternate system contained on a device or disk
830 partition; e.g., DOS on, say, `/dev/hda2', or a floppy on `/dev/fd0'.
831 In the case of booting another system there are these options:
832 .TP
833 .BI "loader=" <chain-loader>
834 This specifies the chain loader that should be used.  It may also be
835 specified as a global option.
836 By default
837 .I chain
838 is used.  This chain loader passes partition and drive information in the
839 boot sector it loads only to DOS on FAT12 or FAT16, Windows on FAT16 or
840 FAT32, or OS/2 on FAT16 or HPFS.
841 The alternate chain loader,
842 .I os2_d
843 passes partition and drive information unconditionally, and uses a format
844 suitable for OS/2 and DOS (see 
845 .I table=<letter>
846 below).
847 .TP
848 .BI "table=" <device>
849 This specifies the device that contains the partition table. 
850 The boot loader will pass default partition information to the booted
851 operating system if this variable is omitted. (Some operating systems
852 have other means to determine from which partition they have been booted.
853 E.g., MS-DOS usually stores the geometry of the boot disk or partition
854 in its boot sector.)
855 Note that /sbin/lilo must be re-run if a partition table mapped referenced
856 with `table' is modified.
857 .TP
858 .BI "table=" <drive-letter>
859 This is a special case for the
860 .I os2_d
861 chain loader.  It specifies the DOS drive letter for the partition
862 that will be booted.  This is
863 .I mandatory
864 when booting OS/2 installed on
865 an extended partition.  The drive letter may be specified with or without a
866 trailing colon.
867 .TP
868 .BI "change"
869 This keyword starts a section which describes how primary partition IDs are
870 changed, and how primary partitions are activated and deactivated.  If
871 .B change
872 is omitted, change rules are generated as though the 
873 .I "automatic"
874 keyword were specified.  The keyword
875 .B change
876 alone, without any rules following, will suppress automatic change-rules.
877 For example,
878 .IP
879 .nf
880    other=/dev/hda2
881       label=dos
882       table=/dev/hda
883       change
884         automatic
885         partition=/dev/hda1
886            set=DOS12_hidden
887            deactivate
888         partition=/dev/hda2
889            set=DOS16_big_normal
890            activate
891 .fi
892 .IP
893 specifies that when primary partition /dev/hda2 is booted, automatic
894 change-rules will be in effect; plus, partition 1, a DOS12 partition, will
895 be set hidden, and deactivated.  In addition, partition 2, will be set
896 normal, and activated.  Activation sets the boot-flag in the partition
897 table.  The 
898 .I automatic
899 keyword may conflict with default change rules, so the
900 .I set=
901 lines above may be redundant.
902 .TP
903 .BI "boot-as=" "<bios>"
904 This option (LILO version 22.5.1) indicates the BIOS device code which must
905 be assigned to the specified drive in order for the "other=" operating
906 system to boot.  If the chain loader detects that another BIOS device code
907 is assigned to this disk, then it will dynamically swap the assigned device
908 code with the specified device code.
909 .sp
910 This option is easier to specify than "map-drive=" and more general than
911 "master-boot" in that any device code may be specified.  Unlike
912 "map-drive=", the determination whether to swap device codes is made at boot
913 time, not install time.  This is advantageous on systems where the BIOS
914 presents a boot menu of devices, and will map disks to devices in different
915 ways, depending upon the BIOS boot selection.
916 .sp
917 This option may be specified as a global option, in which case it applies to
918 all "other=" sections unless overridden with a specific "master-boot" option.
919 If one of "boot-as=" or "master-boot" is specified as a global option, it is
920 better to specify "master-boot" as the global option, as it will not
921 interfere with floppy disk BIOS device codes; "boot-as=" is then used as a
922 local option to override "master-boot" as necessary.
923 .TP
924 .BI "master-boot"
925 This flag (LILO version 22.5) indicates a DOS/Windows/OS2 or other
926 system which will only boot from BIOS device 0x80, the "C:" drive, or BIOS
927 device 0, the A: drive. When this
928 flag is specified, if this drive is not assigned device code 0x80 or 0 by the
929 BIOS, then the chain loader will dynamically swap the device code actually
930 assigned with device code 0x80 or 0 to make this drive appear
931 to be the first hard or floppy drive, "C:" or "A:".
932 .sp
933 This flag is easier to use than "map-drive=" (see below), and is preferred,
934 if simple forcing of device code 0x80 is all that is required. It is also
935 more general, in that the necessity to swap BIOS device codes is determined
936 dynamically at boot-time, not at boot install-time, as with "map-drive=". 
937 It is slightly more powerful than "boot-as=", in that the device code which
938 is assigned, 0 or 0x80, is determined dynamically.
939 .sp
940 This option may be specified as a global option, in which case it applies to
941 all "other=" sections unless overridden with a specific "boot-as=" option.
942 .TP
943 .BI "map-drive=" <num>
944 Maps BIOS calls for the specified drive to the device code specified on the
945 next line as \fBto=\fP<num>.  This mapping is useful for booting operating
946 systems, such as DOS, from the second hard drive.  The following, swaps the
947 C: and D: drives,
948 .sp
949 .nf
950    map-drive=0x80
951       to=0x81
952    map-drive=0x81
953       to=0x80
954 .fi
955 .sp
956 This option is largely
957 rendered obsolete by "boot-as=", introduced with LILO version 22.5.
958 .TP
959 .BI "unsafe"
960 Do not access the boot sector at map creation time. This disables 
961 some sanity checks, including a partition table check. If the boot 
962 sector is on a fixed-format floppy disk device, using UNSAFE avoids the 
963 need to put a readable disk into the drive when running the map 
964 installer. If the boot sector is on a hard drive, the BIOS device code
965 of the drive will have to be specified explicitly with "disk=/dev/XXXX
966 bios=0x8X inaccessible" in the configuration file.
967 `unsafe' and `table' (explicit or implicit) are mutually incompatible. 
968
969 .SH "COMMON DESCRIPTOR OPTIONS (image= & other=)"
970 .LP
971 In both the
972 .BR image= " and " other=
973 cases, the following options apply.
974 .TP
975 .BI "bypass"
976 No password is required to boot this image. Used to indicate that the global
977 password does not apply to this `image=' or `other='.  See 'password=' below.
978 .TP
979 .BI "label=" <name>
980 The boot loader uses the main file name (without its path)
981 of each image specification to identify that image.
982 A different name can be used by setting the variable `label'.
983 .TP
984 .BI "alias=" <name>
985 A second name for the same entry can be used by specifying an alias.
986 .TP
987 .BI "bmp-retain"
988 The bitmap graphic (install=bmp) is retained when control is passed to the
989 loaded kernel image, or other= bootloader; i.e., the screen is not
990 blanked to alphanumeric mode before starting the kernel.  This feature is
991 considered EXPERIMENTAL, for those users working with startup splash
992 screens.
993 .TP
994 .BI "fallback=" <command-line>
995 Specifies a string that is stored as the default 
996 command line if the current image is booted. This is useful when 
997 experimenting with kernels which may crash before allowing interaction 
998 with the system. If using the
999 .BI fallback
1000 option, the next reboot (e.g. 
1001 triggered by a manual reset or by a watchdog timer) will load a 
1002 different (supposedly stable) kernel. The command line stored by the fallback 
1003 mechanism is cleared by removing or changing the default command line 
1004 with the
1005 .IR "-R"
1006 option, which should be a part of the boot startup scripts.
1007 .TP
1008 .BI "lock"
1009 (See above.)
1010 .TP
1011 .BI "optional"
1012 Omit the image if it is not available at map creation time.
1013 It may be specified as a global option.
1014 This is useful to specify test kernels that are not always present.
1015 .TP
1016 .BI "password=" <password>
1017 Protect the `image=' or `other=' with a password (or passphrase).
1018 It may be specified as a global option.
1019 The interpretation of the `password=' setting is modified by the words
1020 `mandatory', `restricted', and `bypass' (see below).
1021 .br
1022 The password may be specified in the config-file (less secure) or entered
1023 at the time the boot loader is installed. To request interactive entry of
1024 the password, it should be specified: \fBpassword=""\fP.
1025 Passwords entered interactively are not required to be entered again if the
1026 boot installer is re-run. They are cached, in hashed form, in a companion
1027 file to the config-file, default name: \fB/etc/lilo.conf.crc\fP. If the 
1028 config-file is updated, a warning message
1029 will be issued telling you to re-run \fIlilo \-p\fP to force re-creation of the
1030 password cache file.
1031 .TP
1032 .BI "mandatory"
1033 A password is required to boot this image. This is the default. May be used
1034 on a single `image=' or `other=' to override a different global setting.
1035 .TP
1036 .BI "nokbdisable"
1037 (22.7.2)
1038 The specified descriptor is not bootable if the IBM-PC keyboard is not present.
1039 This option is really only useful if the "serial=" boot terminal is in use.
1040 With no keyboard (and no serial terminal) attached, selecting a boot descriptor 
1041 other than the default is impossible.
1042 See
1043 .I nokbdefault
1044 above.
1045 .TP
1046 .BI "restricted"
1047 A password is only required to boot the image if kernel parameters
1048 are specified on the command line (e.g. 'single').  May be used
1049 on a single `image=' or `other=' to override a different global setting.
1050 .TP
1051 .BI "vmwarn"
1052 If booting under a virtual monitor such as VMware(tm), the image with this
1053 label will cause a cautionary warning to be issued at boot time, and user
1054 intervention will be required to continue or to abort the boot process.
1055 .TP
1056 .BI "vmdisable"
1057 If booting under a virtual monitor, the image with this label will not be
1058 displayed as a boot option.  The image is only bootable in real mode.  See
1059 .I vmdefault
1060 above.
1061
1062 .LP
1063
1064 .SH "SEE ALSO"
1065 lilo(8), mkinitrd(8), mknod(1), mkrescue(8), rdev(8).
1066