Installing a three-system conflict-less solution with the system boot grub

Source: Internet
Author: User

Mandrake9.1 in a short time, respectively, as a crazy fan of Linux, of course, can not let go of how good opportunity-download, carve ing ...

But how do you keep them from fighting? Using GRUB is a better approach because grub is redhat by default.

What's grub? The simple thing is that the system boot program, using it to guide three systems is no problem at all, and do not have to look for other billing software everywhere.

One, zoning

I have two hard drives in my computer, the basic idea is 80G for win system, 10G hard drive two Linux system, the first hard drive has Win2K system, if you have only one hard drive, you can use PQ divided into an empty area, and then in the empty out of the area to delimit a swap partition, the format for/swap, Size is generally 1.5 times times the memory, if your memory is 512M or above the swap partition and memory size of the same line, and then separate two size of about 5G root partition, formatted into EXT3. The advantage of this is that when the Linux system is installed, the win system does not become very slow because it does not recognize the EXT3 format.

Second, install Linux system

Now it is very convenient to install Linux, as long as the prompts on the screen to the line, the system is installed in a sequential, but the installation of RedHat9 to install the grub on the hard disk hda1 MBR, install Mandrake9.1 when the Lilo or grub installed to/ The first sector on the boot is OK. In Linux, the primary partition is HDA1, the primary partition of the second hard disk is HDB1, the logical partition starts from HDA5, if there are two hard drives, it may start from HDB5, and so on. If you don't know what is going on, use fdisk-l or Df-la to view it. To install the system, there will be corresponding to allow you to choose the location of the installation, but also Hdax or hdbx partition, Linux, there is no win in the C and D disk points.

Iii. Modification of grub.conf

System installed, but now only to guide the RedHat9 and win system, must be changed to/boot/grub/grub.conf to allow three systems to operate normally, with root users into the system, the first use of FDISK-LD terminal to view your partition situation, know that the zoning situation is good to do , with any file editor to open/boot/grub/grub.conf, in general, the win system will automatically load into grub, the following is the author's grub.conf file, we analyze

Default=0

timeout=10

Splashimage= (hd1,2)/boot/grub/splash.xpm.gz

Title windows2k

Rootnoverify (hd0,0)

Chainloader +1

Title RedHat9

Root (hd1,2)

Kernel/boot/vmlinuz-2.4.20-8 ro root=label=/

Initrd/boot/initrd-2.4.20-8.img

Title Mandrake9.1

Kernel (hd1,4)/boot/vmlinuz root=/dev/hdb5 quiet Devfs=mount acpi=off vga=788

INITRD (hd1,4)/boot/initrd.img

Default=x is the default boot system, 0 is the first system, and so on.

Timeout=x the time, in seconds, to stay on the Grub menu

Title Xxx,xxx, which is the name of the operating system you want to boot, can be modified yourself.

Root (hdx,y) x and Y all represent a number, and X is the Linux root partition on which hard drive. If you have only one hard drive. That's hd0. If one of your Linux distributions is installed on a second hard drive, this x is 1. Y is the area on which Linux is installed on your behalf. The value is a little different, not too clear. For instance. For example, I install Mandrake to the second partition of the second hard drive, which is HDB5. Then his root (Hdx,y) should be written as root (hd1,4), which means that z in Y=hdaz or HDBZ minus 1.

Kernel (hdx,y)/boot/vmlinuz Root=/dev/hdaz and Initrd (hdx,y)/boot/ Initrd.img is the image and Initrd file on which hard disk partition you want to boot, be sure to write the correct XY value, or you won't be able to boot the system.

Quiet Devfs=mount Acpi=off vga=788 is a startup parameter.

Rootnoverify (hdx,y) If you cannot start win, you can change to root (hdx,y) to try

Chainloader +1 means to specify the first track on this partition to start

It's also true that you want to join other operating systems into grub in Redhat, as well as using grub from other distributions to guide other distributions. This is similar to the Boot.ini in Win2K and XP, grub is simple, try a few more times will be.

Do everything well, of course, restart the computer, and then you can enjoy multiple systems together without conflict of fun.

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.