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 ......