Booting GNU/Linux - Lilo
Navigation :
Section précédente : Administration du système
Page suivante : GRUB
Index de la section ~~Administration avancée du système~~ - Index de la Base de Connaissances
Section précédente : Administration du système
Page suivante : GRUB
Index de la section ~~Administration avancée du système~~ - Index de la Base de Connaissances
LiLo Configuration
~LiLo's configuration file is '/etc/lilo.conf'. You can edit it either by loading it into an editor, or - since 7.1 - by using the '~DrakBoot' tool in '~DrakConf' ('Mandrake Control Center' - 'Boot' - 'Boot Config').If you want to or have to do the configuration by hand, however, here's how. ~LiLo's configuration file features two sections. A general section which contains options for ~LiLo itself and one or more special sections for each operating system or GNU/Linux kernel you wish to boot. The most important thing to remember is to run the
lilo
boot=/dev/hda<br> map=/boot/map<br> install=/boot/boot.b<br> vga=790<br> default=linux<br> keytable=/boot/de-latin1-nodeadkeys.klt<br> lba32<br> prompt<br> timeout=50<br> message=/boot/message/dev/hda
If you are using another boot loader and want to keep on using that as the master loader, you have to install ~LiLo not into the MBR, since that would overwrite the other loader, but into the partition where the '/boot' directory is located. This is one of the options available at the end of the installation process. map=/boot/map, install=/boot/boot.b These entries tell ~LiLo where some files it needs are located.
'/boot/boot.b' is a symlink pointing to either of these files: boot-graphic.b for a graphical boot screen, boot-menu.b for a text menu boot screen and boot-text.b for a simple command line boot interface. Two switch between these interfaces, just change the symlink:
ln -sf boot-{...}.b boot.b
You'll find those numbers in '/usr/src/linux/Documentation/fb/vesafb.txt' (second table). You will have to convert them into decimal numbers first, though. default=linux Says which of the special entries should be booted by default if no entry is selected from the boot menu after a specified period of time. If this entry is missing, the first special entry is the default entry. keytable=/boot/de-latin1-nodeadkeys.klt This defines the key table to be used when editing ~LiLo's boot command line. lba32 Uses 'Large Block Addressing' and thus bypasses the BIOS' 1024 cylinder barrier. The practical upshot of which is that you can have your boot partition anywhere you want to. prompt Well, you get a boot prompt ;-). You might want to remove this, if you are booting only one operating system from ~LiLo. timeout=50 The interval of time in tenth/seconds (i.e. 50 = 5 sec.) after which the default entry (see above) will be booted. message=/boot/message Defines the file which contains the boot screen message for text-menu and text boot screens. The general section is followed by entries for the operating systems or GNU/Linux kernels to boot. Entries for system kernels start with
image
other
An entry for the system kernel may look like this: image=/boot/vmlinuz label=linux root=/dev/hda8 initrd=/boot/2.2.14-15mdk_1 append="" read-only image=/boot/vmlinuz Place and name of the kernel image. This file usually is a symlink to the 'real' kernel image file in '/boot', 'vmlinuz-{version}'. If more than one kernel image file is present, this symlink will be switched dynamically according to the kernel (boot menu entry) you select on the ~LiLo boot screen or prompt. label=linux Under which name this entry will appear in the boot menu. root=/dev/hda8 The device name of the partition where the '/boot' directory is located. initrd=/boot/2.2.14-15mdk_1 Where the initrd image is located. This entry is only necessary if you boot off devices the drivers of which have been compiled as kernel modules (e.g. SCSI hard disks) and not into the kernel itself. See
man mkinitrd
man lilo.conf
lilo
Booting Other Kernels / Distributions / Operating Systems Via ~LiLo
Other Kernels
This feature comes in handy when you want to test a new kernel but keep your trusty old one around in case the new one doesn't work as expected.Edit 'lilo.conf' to create an entry for your new kernel. If you've used a kernel-RPM, chances are that there already is an entry for the new kernel.
The new entry looks like the old one, except for the
label
initrd
lilo
Other Distributions
If you are installing another Linux distribution on your computer (or another release of Mandrake), tell it to install the ~LiLo boot sector not in the master boot record but to the first sectors of the partition which will hold the '/boot' directory. Then boot your first distribution again, edit 'lilo.conf' and add an entry like this:other=/dev/{root partition of other distro}<br> label=otherlin
boot=
/dev/hda
/dev/hda1
lilo
Other Operating Systems
~LiLo has so far been able to boot every operating system I've encountered yet. An entry for DOS, Windows 3.x or 9.x installed onto the first IDE disk may look like this: other=/dev/hda1 label=ms table=/dev/hda This tells ~LiLo:- where the first partition of this operating label is (here the first partition on the first IDE drive)
- which boot prompt argument will boot this entry ("win")
- where the partition table for this system is located (here on the first IDE drive).
other=/dev/sda2<br> label=beos
map-drive = 0x80<br> to = 0x81<br> map-drive = 0x81<br> to = 0x80
Related Resources:
Multi-Disk HOWTOInstallation HOWTO, 8.2
LILO mini-HOWTO
Multiboot using LILO mini-HOWTO
Linux+DOS+Win95+OS2 mini-HOWTO
Linux+NT-Loader mini-HOWTO
Linux+Win95 mini-HOWTO
Booting Linux with the Win 2k Boot Loader
man lilo
man lilo.conf
~LiLo User Guide in /usr/share/doc/lilo-{...}
Revision / Modified: Sept. 19, 2001
Author: Tom Berger
Legal: This page is covered by the GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB and Mandrakesoft.
Booting GNU/Linux - Lilo
Version 1.14 last modified by ptyxs on 09/11/2006 at 21:47
Version 1.14 last modified by ptyxs on 09/11/2006 at 21:47
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!



