I've got WinXP on an SATA drive, another SATA drive for storage, an IDE drive for storage, and another 80GB IDE drive that I just slapped in for Ubuntu.
I had some weird issues installing Ubuntu 8.04 to the 80GB IDE drive; Grub freaked out and refused to boot either Windows or Linux. So I unplugged all of the drives except the 80GB IDE drive, and installed Ubuntu. So far so good, it runs fine.
Now, I'm not quite sure how to add Windows to the Grub config file. Here's why: When I set the system up, Ubuntu set up the IDE drive as sda, and mapped that to hd0. Now, when I do an fdisk -lu, it's telling me that the 500GB drive that I set up for Windows is sda, and the IDE drive that Ubuntu is on is sdd.
I've tried adding sdb through sdd to the device.map file, and specifying them like this:
Code:
title Windows XP
root (hd2,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
but that just fails every time, saying that the bootloader is missing, press Ctrl+Alt+Del to restart (that's a Windows error, so I presume it's hitting one of my storage drives and failing to find a boot.ini). I've also tried specifying the drive handle in the Grub boot, like:
but I'm pretty sure I've got the syntax wrong there.
Not quite sure how to proceed here, and I figured I'd ask, as I've already had to reinstall 'cause I mucked something up and Grub stopped being able to find Ubuntu.
This is my device.map file:
This is the output of fdisk -lu (shortened for readability):
Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes //Windows
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xfb58fb58
Device Boot Start End Blocks Id System
/dev/sda1 * 63 976751999 488375968+ 7 HPFS/NTFS
Disk /dev/sdb: 160.0 GB, 160000000000 bytes //SATA Storage
Disk /dev/sdc: 122.9 GB, 122942324736 bytes //IDE Storage
Disk /dev/sdd: 80.0 GB, 80026361856 bytes //the 80GB IDE drive
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x2d402d3f
Device Boot Start End Blocks Id System
/dev/sdd1 * 63 150239879 75119908+ 83 Linux
/dev/sdd2 150239880 156296384 3028252+ 5 Extended
/dev/sdd5 150239943 156296384 3028221 82 Linux swap / Solaris
And this is what I have for booting Ubuntu in menu.lst:
Code:
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=e98f4358-a7cb-497e-8b81-25eb5bd05b27 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
Thanks in advance, and sorry for what's kindof a repost. I know that Grub configuration is a common issue, but so far I haven't seen anyone with a similar issue to mine.
Bookmarks