LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dual boot, dual drives. Where to put GRUB? (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-dual-drives-where-to-put-grub-237524/)

rgbrock1 10-01-2004 09:29 AM

Dual boot, dual drives. Where to put GRUB?
 
Hi all,

I'm kind of new to Linux and have a basic question about dual booting.
Currently, I have Windblows XP and SuSE 9.0 on seperate partitions on my single internal hard drive. Now that I know that I want to run SuSE all the time I would like to install it on a second internal drive. (I'll delete SuSE from the partition it exists on currently and rewrite the MBR using Windblows.)

Now. When I intall SuSE onto the second internal drive (which will be used all for itself) do I install GRUB on the MBR of the first hard drive, used by Windblows XP only, or to the second hard drive, used by SuSE only?????

Thanks much in advance.

Regards,
Richard Brock

dsegel 10-01-2004 09:31 AM

Put it on the MBR of the first drive, since that's the one that your BIOS will try to boot from. GRUB will then give you the option of booting into Windows or SuSE.

rgbrock1 10-01-2004 10:11 AM

So, if I have the following

/hda = Windblows XP
/hdb = SuSE

Then I should install GRUB on the MBR of /hda?

Thanks again.

dsegel 10-01-2004 10:20 AM

Yes, exactly.

In your BIOS you can set the boot order (e.g. floppy, CD-ROM, hard drive 1, hard drive 2, etc.). You need GRUB installed into the MBR of the first hard drive in the boot order, which is almost always /dev/hda.

vectordrake 10-02-2004 09:17 AM

I would suggest for minimum impact, that you open your case and switch the drives. Then, you can install grub on the first drive, which will be Suse, and leave Windows basically alone. If Yast or whatever tool you use to get set up doesn't for some reason detect the Windows install, or it otherwise doesn't boot, you can edit the /boot/grub/menu.lst file to reflect where windows is and use the map function to fool Windows into thinking its first.

The advantage of this is that if you ever bork your Suse drive or install, you can merely plug the Windows drive back in to the first position (of course, your switching the jumper when you do this part, right?) and continue as if Suse wasn't already there. This method makes your Windows/Suse basicall autonomous, but working together. I've found this to be the best solution I could find for multi-drive, multi-OS booting. Good luck.

res0r9lm 10-02-2004 10:56 AM

you don't need to do no cable switching. like what was already said you can change boot order in bios so if suse is in /dev/hdb you can just install to /boot or MBR which would be a good idea as windows wants to be on first drive. Although if you wish to have windows on second hdd you can have grub remap drive so windows think it's on first drive

Code:

title=Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
rootnoverify (hd1,0)
makeactive
chainloader +1



All times are GMT -5. The time now is 12:52 AM.