Detailed description of Linux boot program Switching

Source: Internet
Author: User

With the advent of the age of science and technology and the popularization of networks, many people are infatuated with the Linux system. What is the uniqueness of the Linux system? Why attract the eyes of so many people? The following describes how to switch the Linux system boot program. After reading this article, you will be able to switch the Linux system boot program. I hope this article will help you with the price.

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

Use the command to make the configuration file take effect: lilo-v output

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 start partition. The displayed partition marked with "*" is 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.

After reading this article, I hope you will learn how to switch the Linux system boot program.

  1. How to configure an Open Suse Linux Server
  2. Comprehensive Analysis of Suse Linux passed the sun Test
  3. Preschool guidance: SUSE Linux
  4. Follow the summer project of Open Suse and Google Programming
  5. Describe how to install Jdk and mysql in Open SUSE

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.