?
Solved

Dual BOOT Linux 3 and 4

Posted on 2006-06-20
5
Medium Priority
?
219 Views
Last Modified: 2013-12-15
i want to know how to dula boot REDHAT ENTERPRISE LINUX 3.0 and 4.0 ?
0
Comment
Question by:swapan2005
2 Comments
 
LVL 97

Accepted Solution

by:
Lee W, MVP earned 200 total points
ID: 16948701
Why do you want to - the key part of linux is the kernel - you can install different kernels and modify your boot loader (lilo or grub) to boot either one.
0
 
LVL 5

Expert Comment

by:kyle_in_taiwan
ID: 17381480
If you've got RHEL3 on partition /dev/hda2 and RHEL4 on /dev/hdb2, then you need to edit your /boot/grub/grub.conf file like this:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda5
#          initrd /initrd-version.img
#boot=/dev/hda
default linux
timeout 10
color green/black light-gray/blue

# section to load RHEL3
title RHEL 3
root (hd0,1)                                      //  /dev/hda = (hd0), so /dev/hda2 = (hd0,1)
kernel /vmlinuz root=/dev/hda2
boot


# section to load RHEL4
title RHEL 4
root (hd1,1)                                         //  /dev/hdb = (hd1), so /dev/hdb2 = (hd1,1)
kernel /vmlinuz root=/dev/hdb2
boot





Now all this depends on how you have your partitions set up.  If you've got your root files on /dev/hda2 and your /boot files are on /dev/hda3, then you need to change the line that starts "kernel" like this:

# section to load RHEL3
title RHEL 3
root (hd0,1)                                      //  /dev/hda = (hd0), so /dev/hda2 = (hd0,1)
kernel /vmlinuz root=/dev/hda3
boot



But basically, you manage this by altering the grub.conf file.  You can find much more detailed information at this site:

http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/ref-guide/ch-grub.html
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month15 days, 19 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question