Install three systems with Grub does not conflict

  

Mandrake9.1 released in a short time, as a mad mad hacker, of course, can not let go of a good opportunity — — download, ing & hellip; … .

But how can I get them to fight? It is a good idea to use grub, because grub is installed by RedHat by default.

What is Grub? Simple is also the system boot program, it is no problem to use it to guide the three systems, and there is no need to find other paid software everywhere.

I. Partition

I have two hard drives in my computer. The basic idea is that 80G is Win system, 10G hard disk is placed on two Linux systems, and the first hard disk has Win2K. System, if you only have one hard disk, you can use PQ to divide it into a blank area, and then draw a swap partition in the empty area, the format is /swap, the size is generally 1.5 times the memory, if your memory is 512M or above The swap partition is the same as the memory size. Then divide the two root partitions with a size of about 5G and format them as EXT3. The advantage of this is that after installing the Linux system, the Win system will not become very slow because it does not recognize the EXT3 format.

Second, install Linux system

Now it is very convenient to install Linux, just press the prompt on the screen, the system installation is in no particular order, but install Grub when installing RedHat9 On the MBR of the hard disk hda1, when installing Mandrake 9.1, installing LILO or Grub on the first sector of /boot is OK. In linux, the primary partition is hda1, the primary partition of the second hard disk is hdb1, and the logical partition starts from hda5. If there are two hard disks, it may start from hdb5, and so on. If you don't know what's going on, use fdisk -l or df-la to view it. When you want to install the system, there will be a corresponding installation location, which is also hdaX or hdbX partition, and there is no Win C and D disk under Linux.

Third, modify grub.conf

The system is installed, but now only RedHat9 and Win system can be booted, you must change /boot/grub/grub.conf to make the three systems run normally. , use the root user to enter the system, first use fdisk -ld terminal to view your partition situation, know the partition situation is easy to handle, use any file editor to open /boot/grub/grub.conf, in general, Win system Will be automatically loaded into grub, the following is the author's grub.conf file, let's analyze

default=0

timeout=10

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

title Windows2K

rootnoverify (hd0,0)

chainloader +1

title RedHat9< Br>

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 as the default boot system, a 0 is the first row in the system, and so on.

timeout=X is the time when the Grub menu stays in seconds

title XXX, XXX is the title, which is the name of the operating system you want to boot, you can modify it yourself

root (hdX, Y) Both X and Y represent a value, and X is the hard disk on which the Linux root partition is located. If you only have one hard drive. That is hd0. If a distribution of your linux is installed on the second hard drive, this X is 1. Y is the area in which the Linux you installed is in. This value is a bit different, not so clear. For example. For example, I installed Mandrake on the second partition of the second hard disk, 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 of the hard disk partition and the initrd file to be booted, be sure to write The correct XY value, otherwise the system cannot be booted.

quiet devfs=mount acpi=off vga=788 is the starting parameter.

rootnoverify (hdX, Y) If you can't start Win, you can try root (hdX, Y) to try

chainloader +1 means to specify the first track on this partition. To start

I want to add another operating system to GRUB in Redhat, but this is the case. If you use GRUB in other distributions to boot other distributions, the principle is the same. This is similar to BOOT.INI in Win2K and XP. Grub is very simple. Try it a few times.

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

Copyright © Windows knowledge All Rights Reserved