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.
- How to configure an Open Suse Linux Server
- Comprehensive Analysis of Suse Linux passed the sun Test
- Preschool guidance: SUSE Linux
- Follow the summer project of Open Suse and Google Programming
- Describe how to install Jdk and mysql in Open SUSE