Personal tools
You are here: Home Members pacneil's Home Beginning Linux LILO
Navigation
Log in


Forgot your password?
New user?
 
Document Actions

LILO

by Neil Schneider last modified 2005-06-08 12:47

LILO

next up previous contents index
Next: Other Administrative Tasks Up: Building a New Kernel Previous: Compiling the Kernel

LILO

The new kernel is built and is in /usr/src/linux/arch/i386/boot/bzImage, time to move it into the /boot directory.

root@localhost # mv arch/i386/boot/bzImage /boot
Since we are already in the /usr/src/linux directory, we only need to use the relative path, not the entire path to the image. It's never recommended to replace a current version kernel, before testing. To do this run it first as linux.new and make sure there are no errors. So now it needs to be added to the /etc/lilo.conf.

Edit the file to look similar to this.

boot=/dev/hda

map=/boot/map

install=/boot/boot.b

prompt

timeout=250

image=/boot/bzImage

label=linux.new

root=/dev/hda1

read-only

image=/boot/vmlinuz-2.4.20

label=linux

root=/dev/hda1

initrd=/boot/initrd-2.4.20.img

read-only
Then run lilo to include the new kernel. If it is successful something similar to this should appear on the screen.

root@localhost # lilo

Added linux.new *

Added linux
Now reboot the system, and choose linux.new to test the new kernel.


next up previous contents index
Next: Other Administrative Tasks Up: Building a New Kernel Previous: Compiling the Kernel
2005-05-10

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: