Thesord
August 30th, 2009, 04:10 AM
I've used Ubuntu for some time on another system, but on this one I have multiple hdds. I'm kind of a newbie here as I pretty much used the automated process in the past.
I have 3 hdds. One of them had XP installed, the other was ntfs holding data and I chose the third one to install Ubuntu 9.04 as well as GRUB (formatted the whole hdd). I then changed bios boot priority so that the hdd with grub would boot first.
Ubuntu boots fine but it fails to boot XP through grub.
I checked the /boot/grub/menu.lst file to see how the XP entry is:
(it was created with hd1,0 automatically)
title Microsoft Windows XP Professional
rootnoverify (hd1,0)
savedefault
chainloader +1
I have read that XP can't boot unless it is in the first hdd so I need to add the mapping commands to get the desired behaviour:
grub>map (hd0) (hd1)
grub>map (hd1) (hd0)
I have two problems here.
I don't know which hdd is the one that has Windows XP (that is, if hd1,0 is the right thing). When I tried to boot with the entry above I got grub error 13 "Invalid or unsupported executable format".
Secondly I also don't know in what order I need to add the mapping commands to the XP entry on the meny.lst.
My fdisk -l output is the following:
(80.0 GB is XP, 250.0 GB ntfs is the data one)
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf7f7f7f7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9728 78140128+ 7 HPFS/NTFS
Disk /dev/sdb: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9a99c226
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 14402 115684033+ 83 Linux
/dev/sdb2 14403 15017 4939987+ 5 Extended
/dev/sdb5 14403 15017 4939956 82 Linux swap / Solaris
Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00e5a77f
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 30400 244187968+ 7 HPFS/NTFS
Appreciate any help :)
I have 3 hdds. One of them had XP installed, the other was ntfs holding data and I chose the third one to install Ubuntu 9.04 as well as GRUB (formatted the whole hdd). I then changed bios boot priority so that the hdd with grub would boot first.
Ubuntu boots fine but it fails to boot XP through grub.
I checked the /boot/grub/menu.lst file to see how the XP entry is:
(it was created with hd1,0 automatically)
title Microsoft Windows XP Professional
rootnoverify (hd1,0)
savedefault
chainloader +1
I have read that XP can't boot unless it is in the first hdd so I need to add the mapping commands to get the desired behaviour:
grub>map (hd0) (hd1)
grub>map (hd1) (hd0)
I have two problems here.
I don't know which hdd is the one that has Windows XP (that is, if hd1,0 is the right thing). When I tried to boot with the entry above I got grub error 13 "Invalid or unsupported executable format".
Secondly I also don't know in what order I need to add the mapping commands to the XP entry on the meny.lst.
My fdisk -l output is the following:
(80.0 GB is XP, 250.0 GB ntfs is the data one)
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf7f7f7f7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9728 78140128+ 7 HPFS/NTFS
Disk /dev/sdb: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9a99c226
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 14402 115684033+ 83 Linux
/dev/sdb2 14403 15017 4939987+ 5 Extended
/dev/sdb5 14403 15017 4939956 82 Linux swap / Solaris
Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00e5a77f
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 30400 244187968+ 7 HPFS/NTFS
Appreciate any help :)