Install three systems with grub

Source: Internet
Author: User
Install three systems with grub

Author: swordsman from: Blue ideal

Redhat9 and mandrake9.1 were released separately in the last month. As a Linux enthusiast, I cannot take such a good opportunity to download and dial ing... however, if they get along with each other, grub is the best solution, because it is installed by default by RedHat, and grub is simply the system boot program, it is okay to use it to guide the three systems, and there is no need to find other paid software everywhere.

I. Partitioning
I have two hard disks in my computer. The basic idea is that 80 GB is the win system, and 10 Gb hard disks are placed in two Linux systems. The first hard disk already has a Win2k system. If you only have one hard disk, you can use PQ to separate an empty area and then draw an swap partition in the empty area. The format is/swap, which is generally 1.5 times the memory size, if your memory is MB or above, the swap partition is the same as the memory size, and then two root partitions with a size of about 5 GB are separated and formatted as ext3. The advantage of this is that after the Linux system is installed, the win system will not become very slow because it does not recognize the ext3 format.

Ii. install linux

Now it is very convenient to install Linux, as long as you follow the prompts on the screen, the system installation is not sequential, but when installing redhat9, grub is installed on the hard disk hda1 MBR, install LILO or grub on the first sector of/boot when you install mandrake9.1. In Linux, the primary partition is hda1, the primary partition of the second hard disk is hdb1, and the logical partition starts with hda5. If there are two hard disks, it may start with hdb5, and so on. If you do not know what is going on, use fdisk-l or DF-la. When installing the system, you can select the installation location, such as hdax or hdbx partition. in Linux, there is no win C or D disk.

3. Modify grub. conf

The system has been installed, but now only the redhat9 and win systems can be guided. You must modify/boot/GRUB/grub. conf can make the three systems run normally. Use the root user to enter the system. First, use the fdisk-LD terminal to view your partition information and check the partition information, use any file editor to open/boot/GRUB/grub. conf. In general, the win system will automatically load it into grub. below is the grub of the author. CONF file. Let's analyze it.
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 system, 0 is the first system, and so on.
Timeout = X indicates the residence time of the GRUB menu, in seconds.
Title XXX, XXX is the title, that is, the name of the operating system you want to boot, you can modify it by yourself
Both root (hdx, Y) x and y represent a value, and X is the hard disk of the Linux Root partition. If you only have one hard disk. Hd0. If one of your Linux distributions is installed on the second hard disk, X is 1. Y indicates the region in which the Linux is installed. This value is a little different and it is hard to clarify. For example. For example, I have installed Mandrake to the second partition of the second hard disk, that is, hdb5. Then his root (hdx, Y) should be written as root (hd1, 4), that is, y = hdaz or Z minus 1 in hdbz.
Kernel (hdx, Y)/boot/vmlinuz root =/dev/hdaz and initrd (hdx, Y)/boot/initrd. IMG is the hard disk partition image and initrd file to be guided. Correct XY values must be written. Otherwise, the system cannot be guided.
Quiet devfs = Mount ACPI = off VGA = 788 is the startup parameter.

Rootnoverify (hdx, Y) If you cannot start win, you can change it to root (hdx, Y ).
Chainloader + 1 indicates specifying the first track on the partition to start

The same is true if you want to add another operating system to grub in RedHat. This is similar to the boot. ini in Win2k and XP. Grub is simple. Just try it several times.

Finally, of course, it is to save the disk and restart the computer, then we can enjoy the fun of multi-system peace.

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.