View Single Post
  #10 (permalink)  
Old 17-12-2006, 03:16 AM
monk's Avatar
monk monk is offline
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

grub-install - use to install GRUB boot loader on your hard disk. There is no relationship exists between GRUB and kernel upgrade. If you run grub-install it will just reinstall GRUB.

In olden days you need to run lilo command after kernel upgrade. First you will edit /etc/lilo.conf with something as follows:
Code:
image=/boot/vmlinuz
	label=linux
	initrd=/boot/initrd-version.img
	read-only
	root=/dev/hda2
Once you are sure that /etc/lilo.conf is properly configured for new kernel, run to load new changes and kernel:
Code:
lilo -v -v
However grub can read grub.conf file on fly no need to write MBR again.

This is one big difference between GRUB and LILO: With LILO, every time you rebuild your kernel, you will need to reinstall the boot loader (run sbin/lilo). So, there can be less of a maintenance issue with GRUB. Also you'll need to execute lilo again after any changes are made in /etc/lilo.conf.

Rests of your commands are correct
Reply With Quote