Start Linux Kernel configuration-general Linux technology-Linux programming and kernel information. The following is a detailed description. Getting started with LILO
Now is the final time to reconfigure LILO. It will be responsible for loading the new kernel. LILO is the most popular Linux boot tool and is used by all mainstream Linux publishers. The first thing you need to do is to check your/etc/lilo. conf file. It will contain a line that looks like "image =/vmlinuz. This statement tells LILO where to find the kernel.
STARTUP configuration, part 2
You have two options to Configure LILO to use the new kernel. The first is to overwrite your existing kernel-unless you have some urgent start-up measures on hand, such as boot disks for this kernel, this is a very dangerous method.
The Safer option is to Configure LILO so that it can boot from the new or old kernel. LILO can be configured to start from the new kernel by default, but it still provides a way for you to select the old kernel to start when you encounter problems. This is a recommended practice and will be described later.
STARTUP configuration, Part 3
Your lilo. conf file may look like this:
Boot =/dev/hda
Delay = 20
Vga = normal
Root =/dev/hda1
Read-only
Image =/vmlinuz
Label = linux
To add a new project to your lilo. conf file, refer to the following steps. First, copy/usr/src/linux/arch/i386/boot/bzImage to a file in your root partition, such as/vmlinuz2. Once the copy is complete, copy the last three lines of your lilo. conf file and add them to the end of the file... we are about to end the entire process...
Image =/vmlinuz
Label = linux
Image =/vmlinuz
Label = linux
First, change the first line "image =" to "image =/vmlinuz2 ". Second, change the second line "label =" to "label = oldlinux ". Then, make sure there is a line "delay = 20" at the beginning of the file -- if not, add a line. If it already exists, set the number to at least 20.
After making these changes, you will need to run "lilo" as root ". This is very important! If you do not perform this step, the startup process cannot continue. Running lilo will give lilo a chance to update its startup ing.
STARTUP configuration, details
Now let's explain in detail our changes. This lilo. conf file can be used to enable two different kernels. It allows you to start your original kernel in the/vmlinuz directory. It also allows you to start a new kernel in the/vmlinuz2 directory. By default, it will try to start your new kernel (the image/label line pointing to the new kernel first appears in the configuration file ).
If, for some reason, you need to start the old kernel, you only need to press the Shift key when restarting the computer. LILO will monitor this operation and then allow you to enter the name of the Image Tag to be started. To start the old kernel, enter "oldlinux" and press Enter. To see which options are available, press the TAB key.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service