How to coexist in Linux operating systems of different releases

Source: Internet
Author: User

Many Linux distributions have different advantages and disadvantages. Many Linux enthusiasts want to have multiple Linux operating systems at the same time, below I will provide two methods for multi-Linux coexistence without the need to install additional boot programs.

Use OS Loader to boot multiple Linux operating systems

This method must meet one of the prerequisites: The Boot Program of the Linux operating system cannot be installed in the primary Boot Record (MBR), but can only be installed in the first sector of the Linux boot partition, in this way, the OS Loader of Windows 2000/XP will not be overwritten.

The following describes how to use OS Loader to boot red-flag Linux Desktop 4.1. After installing red-flag linux, use the first installation disk to boot the computer. Enter "Linux resure" (excluding quotation marks) at the boot: prompt and press enter to enter the linux rescue mode. Then, perform some configuration, ask if you want to set the system partition to read/write with "continue", enter the command "chroot/mnt/sysimage" at the sh-2.05b # prompt and press enter to enter the real Linux root partition, run the following command to mount a FAT partition to the/mnt/directory. Here we take hda13 (Windows G disk) as an example:

Cd/mnt
Mount/dev/hda13/mnt-t vfat

Then extract the Linux Startup information and place it in hda13:

Dd if =/dev/hda8 of =/mnt/rflinux. lnx bs = 512 count = 1

After that, restart the computer to go to Windows, copy rflinux. lnx on disk G to C: \, use NotePad to edit the boot. ini file on disk C, and add a line at the end:

C: \ rflinux. lnx = "red-flag Linux desktop version 4.1"

Save and restart your computer. Select "red-flag Linux Desktop 4.1" from the system boot menu and press enter To Go To The GRUB boot menu of red-flag Linux. For Red-flag Linux Desktop 3.2/4.0, Red Hat Linux 8.0/9.0, and Fedora Core 1/2/3, you can also add the boot item to the OS Loader menu by referring to the method above, to Boot multiple Linux operating systems.

TIPS:

1. If a boot floppy disk is created during Linux installation, you can use this floppy disk to boot to Linux and run the corresponding commands;

2. boot. ini is a protected system file in Windows 2000/XP, which is invisible by default. We need to enable "my computer" in Windows ", click "Tools> Folder Options> View" in the menu bar, deselect "Hide protected operating system files (recommended)", and click "OK" in the displayed warning window ", then, select "show all files and folders" and click "OK" to edit boot in notepad. ini.

Use GRUB to boot multiple Linux operating systems

This method is applicable when GRUB has been installed to MBR or Windows 2000/XP has not been installed.

The author takes GRUB boot Red-flag Linux 9.0 as an example. First install the Red-flag Linux desktop version 4.1 to hda8. Its GRUB is installed in the first sector of the system partition, then Red Hat Linux 9.0 to hda8 is installed, and its GRUB is installed in MBR. After the restart, go to Red Hat Linux 9.0 and log on as the root user. Use KEdit or gEdit in X-Window to modify/boot/grub of Red Hat Linux 9.0. conf file (you can also use vi to edit this file in character mode), and add a line at the end:

Title Red Flag Linux 4.1 (2.4.26-1)
Rootnoverify (hd0, 7)
Chainloader + 1

TIPS:

1. "title" is followed by the system name displayed in the GRUB boot menu. It can be changed to another name, but it cannot be in Chinese;

2. "hd0, 7" is the location of the boot system, hd0 is the first master hard disk, hd1 is the first slave hard disk, hd2 is the second Master hard disk, hd3 is the second disk, and so on. The number after the comma indicates the hard disk partition where the boot system is located, 0 ~ 3 indicates the first four primary partitions (generally only one primary partition). Starting from 4, it indicates logical partitions. For example, if the red-flag Linux is installed in hda8, the number is 7.

Save and exit and restart the computer. In the GRUB boot menu of Red Hat Linux 9.0, select Red Flag Linux 4.1 (2.4.26-1) "and press enter To Go To The GRUB boot menu of Red Flag Linux Desktop 4.1. If other Linux operating systems are installed, add them to the GRUB boot menu of Red Hat Linux 9.0 by referring to the above method.

GRUB of Red-flag Linux 3.2/4.0/4.1, Red Hat Linux 8.0, and FedoraCore 1/2/3 can also guide other Linux operating systems.

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.