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
root(hd1,0)
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..
__________________________

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mitch Frazier's picture

You Should be Close

On June 11th, 2009 Mitch Frazier says:

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 and the Web Editor for linuxjournal.com.

rehanzz's picture

dual boot with suse n rehhat

On June 12th, 2009 rehanzz says:

Hi,

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........

Mitch Frazier's picture

More Info

On June 12th, 2009 Mitch Frazier says:

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 and the Web Editor for linuxjournal.com.

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

December 2009, #188

If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.


Read this issue