Solved

Dual BOOT Linux 3 and 4

Posted on 2006-06-20
5
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 50 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

733 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