LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-19-2005, 01:56 PM   #1
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
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. 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
 
Old 06-20-2005, 11:46 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
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
 
Old 09-25-2006, 06:00 PM   #3
jasonwstone
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
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).
 
Old 09-25-2006, 09:01 PM   #4
jasonwstone
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
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
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot XP/Ubuntu on SATA and IDE... snapmando Ubuntu 4 09-08-2005 02:55 PM
How to create Dual boot disk on IDE & SATA bikerle Linux - Newbie 19 02-10-2005 08:35 AM
cannot dual boot suse 9.1 and winxp between sata and ide respectively jarobman SUSE / openSUSE 7 01-11-2005 11:06 PM
Installation and Dual Boot (Mandrake on a IDE, XP on a SATA) xstormos Linux - Newbie 5 09-10-2004 10:27 PM
dual boot on 2 drives...sata and ide vrdhananjay Linux - Hardware 6 09-08-2004 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:14 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