Linux boot program Switching

Source: Internet
Author: User
Article Title: Linux operating system boot program switch. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Prerequisites: Install grub and lilo on the system at the same time.
[Switch from grub to lilo]

Step 1: generate the main configuration file/etc/lilo. conf

Copy the template file to the main configuration file: cp/etc/lilo. conf. anaconda/etc/lilo. conf

Step 2: Make the configuration file take effect

Run the following command to make the configuration file take effect: lilo-v:

Step 3: Load lilo to the startup Partition

Run the following command to load lilo to the startup partition: lilo-B/dev/sda1. The output result is as follows:

If no parameter is required, run the command lilo to load Lilo to the MBR. Run the fdisk-l command to view the partitions.

"Indicates the default start partition of the system, as shown in:

Step 4: restart the Linux system and check the effect.

Switch from lilo to grub]

Step 1: Detach lilo from the startup Partition


Run the command to uninstall lilo: lilo-U

Step 2: Install grub

Run the following command to install grub: grub-install/dev/sda1 and install grub to the system default start partition. The output result is as follows:

Step 3: restart the linu system to view the effect.

PS: RedHat linux uses grub to replace lilo as the default boot program from the beginning of 7. After testing, if lilo is switched from Lilo to grub, if only lilo is uninstalled, and then the system is restarted, linux is also guided by grub. In addition, this switchover operation fails to be tested on RHEL AS5. I wonder if it is because of my RHEL AS5 (kernel 2.6.18-8. e15 on an i686)

Unsupported or incorrect operation. In research ......

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.