Install lilo to Disk
Installing on the "Partition Boot Record"
/etc/lilo.conf 要有基本設定
boot=/dev/sda map=/boot/map root=/dev/sda1
# -C config-file Specify an alternate pathname for the configuration file
# Default: /etc/lilo.conf
mount -o bind /proc /mnt/custom/proc/
mount -o bind /dev /mnt/custom/dev/
chroot custom /bin/bash
# -t Test only. Do not really write a new boot sector or map file.
lilo -t
-q # List the currently mapped files.
# lilo maintains a file, by default /boot/map
# It containing the name and location of the kernel(s) to boot.
# 詳細資料 -v
Display Options
install=text # selects menu presentation mode
prompt # show a prompt
timeout=100 # timeout in tenths of a second (150 = 15 sec)
message="message.hdb5" # A file containing the choices to be displayed
default=linux # default to boot after timeout, the word corresponds
# to a __label__ in the OS options section (below)
OS Options
image=/mnt/hda2/vmlinuz # kernel image location (mount dependent)
initrd=/mnt/hda2/initrd.img # initrd image location (mount dependent)
root=/dev/hda2 # root for this kernel
label=linux # menu entry for this OS
read-only # initially mount filesystems read-only
LiLo Example
boot=/dev/sda map=/boot/map root=/dev/sda2 default=Linux image=/vmlinuz label=Linux read-only initrd=/initrd.img image=/vmlinuz.old label=LinuxOLD read-only optional initrd=/initrd.img.old