How different distributions Linux operating systems implement coexistence _unix Linux

Source: Internet
Author: User
Tags ini

Linux distributions are numerous, their pros and cons are different, many Linux enthusiasts want to have more than one Linux operating system at the same time, the following author provides two kinds of multiple Linux coexistence methods without the need to install additional boot programs.

Booting multiple Linux operating systems with OS Loader

This approach must satisfy a prerequisite that the Linux operating system bootstrapper cannot be mounted in the master Boot Record (MBR), but only in the first sector of the Linux boot partition, so that Windows 2000/xp OS Loader is not overwritten.

The author uses OS loader to guide Red Banner Linux Desktop version 4.1 as an example. Install Red Flag Linux with the first installation disk to boot the computer, in the boot: prompt after the "Linux Resure" (not including quotes) and enter into the Linux rescue mode, and then make some configuration, ask whether the system partition is set to read and write when the select "Continue", At the sh-2.05b# prompt, enter the command "Chroot/mnt/sysimage" and enter the real Linux root partition to mount a FAT partition to the/mnt/directory, where I take hda13 (g disk under Windows) for example:

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

And then extract the Linux startup information and put it in the Hda13:

DD if=/dev/hda8 OF=/MNT/RFLINUX.LNX bs=512 count=1

When finished, restart the computer into Windows, copy the RFLINUX.LNX under the G disk to C:\, edit the Boot.ini file in the C-disk with Notepad, and add a line at the end:

c:\rflinux.lnx= "Red Banner Linux Desktop version 4.1"

Save and restart the computer, select "Red Banner Linux Desktop version 4.1" On the System boot menu and enter the Red Flag Linux grub boot menu. For the Red Flag Linux desktop version 3.2/4.0, Red Hat linux 8.0/9.0, Fedora Core 1/2/3 can also refer to the above method to add the boot entry to the OS Loader menu, so as to boot multiple Linux operating systems.

Small tip:

1. If you create a boot floppy when installing Linux, you can also use this floppy disk to boot into Linux to execute the corresponding command;

The boot.ini under 2.C disk belong to the protected system files in Windows 2000/XP, the default is not visible, we need to open "My Computer" under Windows, click "tools → folder Options → view" in the menu bar, deselect " Hide protected operating system files (recommended), click OK on the pop-up Warning window, and then select "Show All Files and folders" and click "OK" to edit boot.ini with Notepad.

Booting multiple Linux operating systems with GRUB

This approach is appropriate for cases where grub has been installed to the MBR or if Windows 2000/XP is not installed.

The author takes the Red Hat Linux 9.0 grub boot red Flag Linux Desktop version 4.1 as an example to illustrate. First install Red Banner Linux Desktop version 4.1 to HDA8, its grub is installed in the first sector of the system partition, then install Red Hat Linux 9.0 to HDA8, its grub is installed in MBR. After reboot, enter Red Hat Linux 9.0, log in as root, and Kedit or gedit in X-window to modify Red Hat Linux 9.0 's/boot/grub/ grub.conf file (you can also use VI to edit this file in character mode), add a line at the end:

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

Small tip:

1. "title" followed by the system name shown in the Grub boot menu, can be changed to other names, but not in Chinese;

2. "hd0,7" is the location of the boot system, HD0 is the first primary hard drive, HD1 is the first from the hard disk, HD2 is the second primary hard disk, HD3 is the second from the hard disk, and so on; the number following the comma indicates the partition of the hard disk where the boot system resides, 0~3 represents the first four primary partitions (we generally only divide one primary partition), starting from 4 to represent logical partitions, such as Red Flag Linux installed in Hda8, then this number is 7.

Save exit and restart the computer, select Red Flag Linux 4.1 (2.4.26-1) in the Grub boot menu of Red Hat Linux 9.0 and enter the Grub boot menu of Red Banner Linux desktop version 4.1. If you have additional Linux operating systems, you can add them to the Grub boot menu of Red Hat Linux 9.0 by referencing the above method.

Red Flag Linux Desktop Edition 3.2/4.0/4.1, red Hat Linux 8.0, Fedoracore 1/2/3 grub can also boot 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.