21.3. Booting a New Kernel with LILO

If you have just compiled a new kernel and want to be able to use it, you will need to add a new LILO boot kernel entry. To do this, follow these steps:

1.
After compiling the kernel, copy its compressed kernel image file (usually found under the source directory at arch/i386/bzImage) to the /boot directory. Normally it should be renamed to vmlinuz-xx.yy.zz, where xx.yy.zz is the kernel version number.

2.
On the main page of the Linux Bootup Configuration module, click on the Create a new boot kernel link to go to the kernel creation form.

3.
Enter a unique name for your new kernel into the Name field, such as linux-xx.yy.zz. Whatever you enter will appear in the LILO menu at boot time.

4.
In the Kernel to boot field, enter the full path to the kernel file that you copied to the /boot directory.

5.
To pass extra options to the kernel, set the Kernel options field to Add options and enter them into the text field to its right. Most of the time, no additional options are needed though.

6.
Set the Boot device field to Device, and choose the partition that contains your system's root filesystem from the menu next to it.

7.
If the root directory on your system is mounted from a device that is not compiled into the kernel (such as a SCSI disk or hardware RAID controller), you will need to create an initial RAM disk containing the kernel modules needed to access the root filesystem. The simplest way of checking to see if this is necessary is to look at other existing boot kernel configurations. To create an initial RAM disk file under the /boot directory for kernel version xx.yy.zz, you will need to run a command like

mkinitrd /boot/initrd-xx.yy.zz xx.yy.zz

and then set the Initial ramdisk file option to the path of the newly created file.

8.
Click the Create button to create the new LILO book kernel and return to the module's main page. An icon for the kernel should now be visible.

9.
Click Apply Configuration at the bottom of the page to have LILO reinstalled on your hard disk with the new kernel in its map file. A page showing the output of the lilo command and any errors encountered will be displayed so you can see if the installation was successful or not.

10.
To use the new kernel, you will need to reboot. Depending on the LILO configuration, it will either display a menu of options at boot time, or prompt you to enter an option name. Either way, select your new kernel to have it loaded and started. Be sure to watch the debugging output and error messages that the kernel displays while booting so that if anything goes wrong you can diagnose the problem. If there is a problem, you may need to reboot and select the old kernel option, then use Webmin to fix the LILO configuration.

An existing boot kernel can be edited by clicking its icon on the main page, which will take you to an editing form. Any of the fields can be edited and the changes saved by clicking the Save button, or the kernel can be removed by clicking Delete. Always be careful when editing any kernel configurations that you did not create yourself, as a mistake may make the system unbootable.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.23.112