[Ilugc] how to boot with new kernel image

  • From: anand.kumar@xxxxxxxxxx (Anand Kumar Saha)
  • Date: Wed Sep 1 20:02:44 2004



  | From: Naveen S 

  | how can i know which boot loader my kernel is using 
  | i ahve lilo.conf.anaconda in /etc i hope i have lilo
  `--------

lilo will use /etc/lilo.conf rather than /etc/lilo.conf.anaconda
(or any other config file) by default, if you don't happen to 
use the -C flag to specify the conf file. so please verify. it 
shouldn't happen that you see one thing and get something else.

So if /etc/lilo.conf.anaconda is your config file, run lilo with
# lilo -C /etc/lilo.conf.anaconda

to know which bootloader is installed .. ? availability of lilo's
config file doesn't mean that lilo is your boot loader. it means
that the package lilo is installed. Lilo or Grub, if your bootloader,
would prompt with their respective names when the bootloader menu 
comes. If you see a graphical screen, use Cntl-x to go to command 
line in case of lilo (is it the same with grub?)

  | image=/boot/vmlinuz-2.4.20-8
  |         label=linux
  |         initrd=/boot/initrd-2.4.20-8.img
  |         read-only
  |         append="root=LABEL=/"
  `--------
[snip]

  | if i want to include new kernel image how can i
  | include 
  `--------

pretty much like how the current kernel is specified in 
lilo.conf. 

image=<path to new kernel>
        label=new_kern
        read-only
        root=/dev/<partition>

To know the root <partition>, do a 'du -h' and see where the 
root filesystem '/' is mounted. Make sure you have compiled 
and installed your modules for the new kernel.

saha
PS: and don't forget to run lilo after changing the config 
file ;)
--


Other related posts: