LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Dual Boot XP w/ Grub (IDE + SATA) (http://www.linuxquestions.org/questions/linux-general-1/dual-boot-xp-w-grub-ide-sata-335189/)

TruckStuff 06-19-2005 02:56 PM

Dual Boot XP w/ Grub (IDE + SATA)
 
OK, I know this subject has been coverd 10k times in this forum alone, and believe me, I've read every one of those threads with no success yet. My setup:

/dev/hda = Linux From Scratch (ext3); IDE drive
/dev/sda = Windows XP (NTFS); SATA drive

I've been having this issue for a long time, but I have finally decided to sit down and figure it out once and for all. I have lots of other dual boot systems, but those have XP and Linux on the same IDE drive. I've also done it with Linux and Windows on separate IDE drives. This is the first time I've attempted a Grub dual boot on an IDE and SATA drives.

Both OSes will boot if I change the boot priority in the BIOS, but (for obvious reasons) I don't want to have to enter the BIOS every time I want to change OSes.

Grub recognizes 3 drives: fd0, hd0, and hd1. hd0 is my LFS system, which boots fine. So I have to assume that hd1 is my SATA drive. I've tried every Grub boot option for windows I can find on the net and on this forum. These are some things I have tried with no luck:
Code:

title Windows XP
  root (hd1,0)
  chainloader +1

Code:

title Windows XP
  rootnoverify (hd1,0)
  chainloader +1
  makeactive

Code:

title Windows XP
  root (hd1,0)
  chainloader +1
  makeactive

Code:

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

Code:

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

Code:

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

Every one of these results in the commands appearing on the screen, then nothing. System just sits there. :scratch: The only thing I can figure is that Grub has some bizarre way of addressing SATA drives that I can't find docs for anywhere on the net. Help is appreciated

WhatsHisName 06-21-2005 12:46 AM

Try adding “boot” to the end.

For example:

map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
chainloader +1
makeactive
boot

assuming that windows is in /dev/sda1

jasonwstone 09-25-2006 07:00 PM

I started another thread before I found this one. I have the exact case and have tried many of these. for the last one I got Error 13: Invalid or unsupported executible format. Trying to boot XP. I expect my SATA is HD2 since I have two IDE drives. However in the Grub edit menu I have tried other hd# with the same error. (maybe that doesn't work).

jasonwstone 09-25-2006 10:01 PM

Fixed
 
The menu.lst file shown on http://www.linuxquestions.org/linux/...d_HD_with_Grub
did it for me. Man! there are a lot of other suggestions here in the forums!
Even though I have 2 IDE's it still works to boot XP using (hd1) exactly as he has it shown.

Thanks talLinux


All times are GMT -5. The time now is 05:04 AM.