LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Boot WinXP (on SATA) from GRUB (on PATA?) (https://www.linuxquestions.org/questions/linux-newbie-8/boot-winxp-on-sata-from-grub-on-pata-168270/)

sbixby 04-09-2004 04:03 PM

Boot WinXP (on SATA) from GRUB (on PATA?)
 
I have an ASUS A7N8X box that's mostly for WinXP (as that's how I earn my living). I want to explore Linux in detail and have installed Fedora Core 1 on the system. It generally runs fine and I'm working through the issues a little at a time.

First off, though, is how to get GRUB to boot WinXP on my drive configuration. What I have is a 120G SATA drive as the boot drive for XP and two older PATA drives on the IDE channels along with two optical drives.

The BIOS is set to boot from "SCSI", which lets the Silicon Image 3112 controller perform boot duties.

Currently the drives are laid out as follows:

PATA 0 (shows as /dev/hda)
100MB for /boot
79G for NTFS

PATA 1 (shows as /dev/hdb)
30GB for FAT32
2GB for Linux Swap
28GB for Linux root (/)

SATA 0 (shows as, I think /dev/hde? Not sure.)
120GB for NTFS.

GRUB is installed on the /dev/hda MBR.


So, if I change BIOS to boot from the first HD, GRUB boots Fedora Core just fine. This is what I'd like to use for booting Windows as well.

Will GRUB do this for me?

The default install of /etc/grub.conf showed a second boot directive trying to boot "DOS" at (hd0,2) (from memory).

From my understanding of GRUB's nomenclature and how Windows sees the drive ordering as PATA0, PATA1, SATA0...etc, I thought that I could get GRUB to boot WinXP off SATA using "(hd2,x)". I tried several values for 'x' and all but '0' had GRUB saying "no such partition". A value of '0' resulted in a lock-up of GRUB.

I suspect some of this is due to GRUB not being aware of the SATA drive at boot time as opposed to when the kernel has probed out the BIOS to find the SATA.

I've also tried using the 'ff' & boot.ini trick to run the boot loader from NTLDR with no success; if it got anywhere it just got to where the screen shows "GRUB" in the corner.

Any ideas?

araberboy 04-27-2004 05:49 PM

hi, i can not speak english well.

You have to edit your menu.lst from /boot/grub/.



This is an example for booting windows on PATA:

Titel Windows-SATA
root (hd1,0)
makeactive
chainloader +1
map (hd0) (hd1)
map (hd1) (hd0)



I think you shoult take this:

Titel Windows-SATA
root (hd2,0)
makeactive
chainloader +1
map (hd0) (hd2)
map (hd2) (hd0)

sbixby 04-29-2004 01:23 AM

Whoo Hoo! That did the trick!

Thanks a lot!

araberboy 04-30-2004 10:40 AM

fine, i am happy to help another. MJ


All times are GMT -5. The time now is 09:49 AM.