LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2006, 07:31 AM   #1
PirateFSM
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Rep: Reputation: Disabled
Exclamation Dual Boot with a twist.


Hey guys,

Thank you for taking the time to read this.

I have one disk with XP installed, and one with FC5. I installed FC5 first and have had it for a while, and had a sudden need for an XP install. As of right now the only way i can boot the linux partition is via BIOS selection. My Linux disk is sda and my windows disk is hda. I don't know how this corresponds to hd0 and the like. I have tried grub-install /dev/sda already and it doesn't read my hda for some reason. Some help with probing or a point in the right direction would be great. I have three disks total. sda,sdb,hda. Thank you!
 
Old 07-10-2006, 08:07 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
for GRUB to boot your system, it has to be on the first drive--in the mbr. This is where the BIOS goes first.

(I think) that the grub numbering corresponds to the boot order in the BIOS.

A simple way to test things is make a grub boot floppy, and manually boot your OSes. This will confirm what **GRUB** thinks the correct number are. See the GRUB manual for details on how to boot from the floppy.
 
Old 07-10-2006, 08:10 AM   #3
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
So you have an IDE drive with Windows XP on it and a SATA drive with FC5? The windows install boots normally but you have to choose to boot from the SATA drive to get linux at all, am I right?

If so, all you need to do is install GRUB in the MBR of the first harddrive (the 'Primary Master'), and add the lines to GRUB's menu.lst. To add those lines to GRUB, copy the contents of the menu.lst out (so you don't mess up booting your FC5 install) and when you need to add your Windows install to the menu.lst, it is something like this:


Code:
title Windows XP 
rootnoverify (hd0,0)
chainloader +1
The rootnoverify line is the one that will change. (hd0,0) is the first partition on the first harddisk, (hd2,1) is the first partition on the third harddisk etc.

If this is too confusing, let me know. Good luck!

Edit: pixellany beat me too it, but this is a bit more explicitive so I will leave it here.

Last edited by xpromisex; 07-10-2006 at 08:12 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A twist on a dual boot system. My problem ... VA3OG Linux - Newbie 6 04-06-2006 10:18 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual boot with BIOS twist Question Dobie Linux - Newbie 6 06-12-2004 07:13 AM
Dual boot MD9.1 / Win2k with a twist Dobie Mandriva 1 11-30-2003 09:48 PM
yet another dual boot question...but with a twist infamous41md Linux - Newbie 9 04-03-2003 11:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration