Next: Build-time configuration
Up: Installation
Previous: Files
First, you have to install the LILO files:
- extract all files from lilo. version.tar.gz in a new
directory.
- configure the Makefile (see section 4.2)
- run make to compile and assemble all parts.
- run make install to copy all LILO files to
the directories where they're installed. /sbin should now
contain the file lilo, /etc should contain disktab
and /boot should contain the following files: any_b.b,
any_d.b, boot.b, chain.b and os2_d.b.
If you want to use LILO on a non-standard disk, you might have to determine
the parameters of your disk(s) and specify them in the configuration file.
See section 3.4 for details.
If you're using such a non-standard system, the next step is to test
LILO with the boot sector on a floppy disk:
- insert a blank (but low-level formatted) floppy disk into
/dev/fd0.
- run echo image= kernel_image
|"
/sbin/lilo -C - -b /dev/fd0 -v -v -v
- reboot. LILO should now load its boot loaders from the floppy disk
and then continue loading the kernel from the hard disk.
Now, you have to decide, which boot concept you want to use. Let's assume
you have a Linux partition on /dev/hda2 and you want to install your
LILO boot sector there. The DOS-MBR loads the LILO boot sector.
- get a working boot disk, e.g. an install or recovery disk. Verify that
you can boot
with this setup and that you can mount your Linux partition(s) with it.
- if the boot sector you want to overwrite with LILO is of any value
(e.g. it's the MBR or if it contains a boot loader you might want to use
if you encounter problems with LILO ), you should mount your boot disk
and make a backup copy of your boot sector to a file on that floppy,
e.g.
dd if=/dev/hda of=/fd/boot_sector bs=512 count=1"
- create the configuration file /etc/lilo.conf, e.g.
global settings
" image specifications
"
Be sure to use absolute paths for all files. Relative paths may cause
unexpected behaviour when using the -r option.
- now, you can check what LILO would do if you were about to install
it on your hard disk:
/sbin/lilo -v -v -v -t"
- if you need some additional boot utility (i.e. BOOTACTV), you
should install that now
- run /sbin/lilo to install LILO on your hard disk
- if you have to change the active partition, use fdisk or
activate to do that
- reboot
Next: Build-time configuration
Up: Installation
Previous: Files
Ross Biro
Sat May 20 13:51:22 PDT 1995