This article is reproduced from: [Install dual Linux operating systems on a PC] (http://blog.csdn.net/search_fish/article/details/6031616)
This article is to install Ubuntu 8.10 and RHEL 5.4 on a PC. The installation sequence is to install Ubuntu 8.10 first and then install RHEL 5.4. Of course, this installation sequence will cause the latter to overwrite the Grub of the former. There is a corresponding solution in this article. (Some people say that if you reverse the order of installation, Ubuntu will automatically recognize Redhat.)
1. Download related software
Nero Burning Rom V8.3.13.0 Green Multilingual Portable Edition
http://www.duote.com/soft/16594.html
Ubuntu 8.10
http://download.chinaunix.net/download.php?id=25196&ResourceID=12407
RHEL 5.4
http://download.chinaunix.net/download.php?id=25725&ResourceID=12623
2. Burn the CD used during installation
Use Nero Burning Rom V8.3.13.0 to burn the downloaded iso images of Ubuntu 8.10 and RHEL 5.4 into DVD discs.
Three, install Ubuntu 8.10
Install according to the instructions on the CD, select manual when partitioning, and create independent partitions for / and /boot. (Don't forget to create a swap partition here, and you need to reserve part of the hard disk space for RHEL 5.4.)
Fourth, install RHEL 5.4
Install according to the instructions on the CD, and choose to install RHEL 5.4 on the remaining space of the hard disk.
**5. After installing RHEL 5.4, the Grub of Ubuntu 8.10 has been overwritten. Let's solve this problem. **
1 , Enter RHEL 5.4, find /boot/grub/menu.lst, and record the boot items about RHEL 5.4. (Can be recorded on a piece of paper)
2 , Use Ubuntu 8.10 LiveCD to choose to try Ubuntu to enter, open Terminal, use sudo grub to enter Grub and enter the following command:
find /grub/stage1 or find /grub/menu.lst (This command is used to find the partition where /boot is located. If there is no separate /boot when installing Ubuntu 8.10, then use find /boot/grub/stage1 or find / boot/grub/menu.lst to find it.)
root (hd0,5) (here you need to execute the root command using the result returned by the find command above)
setup (hd0)
quit
(There must be a space after root and setup, otherwise an error will be reported.)
3 , Restart the system.
4 After the system successfully enters Ubuntu 8.10, add the boot entry of RHEL 5.4 just recorded to /boot/grub/menu.lst.
5 , Restart the system again, press the ESC key to enter the system selection menu, and both systems exist.
Recommended Posts