dual boot with suse n rehhat

Hi all,

I goal is to install suse 10 and RHEL 5 on different LUNs, and in the bootloader i need to get option to switch.I have installed SUSE in LUN 0 successfully completed the installation it came up.For the second OS ie.RHEL i changed the boot sequnce in BIOS to LUN 1 and installed (with out boot loader) succesfully....I went to /boot/grub/menu.lst and added the the new OS to the grub like
title suse
kernal Path
initr path

But when i select SUSE in grub it is showing grub loaderror.
Can anyone tell me what are all the configuration changes i should make to achive my goal..

You Should be Close

Mitch Frazier's picture

This is a bit confusing, you installed SuSE and it boots, then you installed RedHat and it doesn't boot, yet the grub entries you're trying to "fix" refer to SuSE... I'll assume that that's a typo and it's actually RedHat that won't boot from the second drive.

The most likely problem is that you have the "root" entry incorrect, you're probably specifying the wrong drive.

Boot into SuSE and run:

  $ grub --device-map=test.map
  grub> quit
  $ cat test.map
  (fd0)   /dev/fd0
  (hd0)   /dev/sda
  (hd1)   /dev/sdb

Use the map that grub creates to verify that the drive you've specified in your "root" entry corresponds to the drive that contains RedHat.

If that doesn't help post your menu.lst file here and also your /boot/grub/device.map file.

Also note that you probably made this more complicated than it needed to be, most modern Linux installers will allow you to install on a second drive and will correctly fix/install the boot loader so that everything works. At least in theory.

Mitch Frazier is an Associate Editor for Linux Journal.

dual boot with suse n rehhat

rehanzz's picture


I have checked the test.map file it is fine.and the output of /boot/grub/device.map is
(hd0) /dev/sda
(hd1) /dev/sdb

can u please tell me what are all the configuration changes should be made for SAN boot with single boot loader right from the installation of suse and RHEL.I am new to linux.During installation i have made only the changes like RHEL with bootloader at /dev/sda and SUSE with boot from root partition.Is it correct? If not can u guide me to do this..........

I am able to install windows in LUN 2 and i am able to boot from it....Then y is it not possible for SUSE..?Please guide me....

thanks in advance........

More Info

Mitch Frazier's picture

Post a copy of your /boot/grub/menu.lst and also a listing of the partitions that you have on the two drives. You can get a list of the partitions via:

  $ fdisk /dev/sda
  Command (m for help): p
  Command (m for help): q

Then do the same for /dev/sdb.

Also, explain to me how you're getting Windows to boot from the second drive? Is it booting via grub or ...?

Mitch Frazier is an Associate Editor for Linux Journal.

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState