BootLoader > From Lilo to Grub

From Lilo to Grub

Grub installation

 apt-get install grub (for this you can use Synaptic).
 grub-install /dev/hda (or /dev/hdb if you install it in your second HardDisc ). This installs the grub configuration files.
 update-grub (to create the configuration files for our system).

Preservation of configuration files

Configuration files are in

/etc/lilo.conf

and in

/boot/grub/menu.lst

in Grub.

Automatical grub update after installing a new Kernel

Add this lines to you /etc/kernel-img.conf

 postinst_hook = /usr/sbin/update-grub
 postrm_hook = /usr/sbin/update-grub
 do_bootloader = no

See also