evets25
August 30th, 2008, 02:46 PM
Alright so here's the situation: I had Ubuntu installed on my computer, and I decided to install windows XP again to play a few games that I just couldn't get working properly in wine. I'm aiming for a dual-boot setup, but there's a catch: I have a rather complicated partition setup, with 3 drives. I'll list them as the BIOS sees them. Here we go:
(IDE) Primary Master: 20Gb Maxtor with 3 partitions
- swap
- /boot
- /
(IDE) Primary Slave: 80Gb WD with 1 partition now, 2 partitions before
NOW:
- Windows XP
BEFORE:
- swap
- ~/backup
(SATA) Third Master: DVD-RW drive
(SATA) Fourth Master: WD 500Gb drive with 2 partitions:
- swap
- ~/storage
When I installed Windows XP, what I did was simply unplug everything except the second drive (the 80Gb one) and the DVD drive, and set the drive's jumper settings to "master" instead of "slave". Then, I booted from the winXP install CD and installed normally.
So far so good. I then tried to plug in the other drives, setting the fresh winXP drive back to the primary slave, and then booting into ubuntu. I managed to do that, although it spewed a bunch of error messages into console and I had to do some fstab hacking to make it happy again. I could even mount the windows partition through nautilus, as if it were a removable device.
So then, I went to edit my grub menu, to add winXP, and this is where it screwed up. I backup it up, then added the following entry to /boot/grub/menu.lst:
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
I copied that by hand, not copy-and-paste, so there may be typos, either in this version or the actual version on my computer.
I get to the grub OS selection screen, select "Windows XP" and that's when I get this error:
Error 13: Invalid or unsupported executable format
Press any key to continue...
I suspect that the problem is that i've got the wrong numbers for the root(hd#,#) line, but AFAIK, the primary slave, first partition should be (hd1,0), like I have it. I've also tried endless variations on that grub entry, rearranging the lines, using "rootnoverfiy" instead of "root", and removing/adding the "makeactive" and "savedefault" lines. I can't think of anything else to do.
Help.
(IDE) Primary Master: 20Gb Maxtor with 3 partitions
- swap
- /boot
- /
(IDE) Primary Slave: 80Gb WD with 1 partition now, 2 partitions before
NOW:
- Windows XP
BEFORE:
- swap
- ~/backup
(SATA) Third Master: DVD-RW drive
(SATA) Fourth Master: WD 500Gb drive with 2 partitions:
- swap
- ~/storage
When I installed Windows XP, what I did was simply unplug everything except the second drive (the 80Gb one) and the DVD drive, and set the drive's jumper settings to "master" instead of "slave". Then, I booted from the winXP install CD and installed normally.
So far so good. I then tried to plug in the other drives, setting the fresh winXP drive back to the primary slave, and then booting into ubuntu. I managed to do that, although it spewed a bunch of error messages into console and I had to do some fstab hacking to make it happy again. I could even mount the windows partition through nautilus, as if it were a removable device.
So then, I went to edit my grub menu, to add winXP, and this is where it screwed up. I backup it up, then added the following entry to /boot/grub/menu.lst:
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
I copied that by hand, not copy-and-paste, so there may be typos, either in this version or the actual version on my computer.
I get to the grub OS selection screen, select "Windows XP" and that's when I get this error:
Error 13: Invalid or unsupported executable format
Press any key to continue...
I suspect that the problem is that i've got the wrong numbers for the root(hd#,#) line, but AFAIK, the primary slave, first partition should be (hd1,0), like I have it. I've also tried endless variations on that grub entry, rearranging the lines, using "rootnoverfiy" instead of "root", and removing/adding the "makeactive" and "savedefault" lines. I can't think of anything else to do.
Help.