SillyViking
18 Dec 2008, 8:06pm
Hi,
I have been dual booting with XP/Ubuntu for a year or two with no issues at all. I have the OS's on two different physical drives and, today, decided I wanted to do a fresh install to upgrade to Ubuntu 8.10. All seemed to go well until I came to restarting the system - when the grub menu appears, if I select to boot into XP I get an error message:
"Error 13: Invalid or unsupported executable format"
If I select Ubuntu from grub, it boots fine.
I went into BIOS and changed the boot order to boot from the XP disk first and XP boots fine, so I am guessing it is just an issue with grub pointing to the wrong place for the XP boot??
For info, I have been asking on a Linux forum for help and was asked to give various bits of info, as follows:
Windows entry in menu.lst (grub):
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
chainloader +1
output of fdisk -l:
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcab10bee
Device Boot Start End Blocks Id System
/dev/sda1 * 1 23574 189358123+ 7 HPFS/NTFS
/dev/sda2 23576 24321 5992245 c W95 FAT32 (LBA)
Disk /dev/sdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009763e
Device Boot Start End Blocks Id System
/dev/sdb1 1 249 2000061 82 Linux swap / Solaris
/dev/sdb2 * 250 5354 41005912+ 83 Linux
/dev/sdb4 5355 9964 37029825 b W95 FAT32
(for info... sda1 is XP, sda2 is XP Restore partition, and sdb4 is a shared FAT32 partition I use for stuff I want available in Linux & XP)
These are the outputs from the grub prompt:
grub> geometry (hd0)
drive 0x80: C/H/S = 24321/255/63, The number of sectors = 390721968, /dev/sda
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 1, Filesystem type is fat, partition type 0xc
grub> geometry (hd1)
drive 0x81: C/H/S = 9964/255/63, The number of sectors = 160086528, /dev/sdb
Partition num: 0, Filesystem type unknown, partition type 0x82
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 3, Filesystem type is fat, partition type 0xb
I also noticed that, when I boot into Ubuntu, just after I have selected it in the grub menu a brief message flashes by saying:
"boot from (hd0,1) ext3 ...." didn't catch the rest of it, but it seems odd that it says hd0??
Anyway, as I said at beginning I CAN boot into both OS using BIOS boot priority, but I would prefer to get grub working and use that.
Anyone able to help???
Thanks, in advance
SV :)
P.S. If it makes any difference - sda is a sata drive, sdb is a ide drive.
I have been dual booting with XP/Ubuntu for a year or two with no issues at all. I have the OS's on two different physical drives and, today, decided I wanted to do a fresh install to upgrade to Ubuntu 8.10. All seemed to go well until I came to restarting the system - when the grub menu appears, if I select to boot into XP I get an error message:
"Error 13: Invalid or unsupported executable format"
If I select Ubuntu from grub, it boots fine.
I went into BIOS and changed the boot order to boot from the XP disk first and XP boots fine, so I am guessing it is just an issue with grub pointing to the wrong place for the XP boot??
For info, I have been asking on a Linux forum for help and was asked to give various bits of info, as follows:
Windows entry in menu.lst (grub):
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
chainloader +1
output of fdisk -l:
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcab10bee
Device Boot Start End Blocks Id System
/dev/sda1 * 1 23574 189358123+ 7 HPFS/NTFS
/dev/sda2 23576 24321 5992245 c W95 FAT32 (LBA)
Disk /dev/sdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009763e
Device Boot Start End Blocks Id System
/dev/sdb1 1 249 2000061 82 Linux swap / Solaris
/dev/sdb2 * 250 5354 41005912+ 83 Linux
/dev/sdb4 5355 9964 37029825 b W95 FAT32
(for info... sda1 is XP, sda2 is XP Restore partition, and sdb4 is a shared FAT32 partition I use for stuff I want available in Linux & XP)
These are the outputs from the grub prompt:
grub> geometry (hd0)
drive 0x80: C/H/S = 24321/255/63, The number of sectors = 390721968, /dev/sda
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 1, Filesystem type is fat, partition type 0xc
grub> geometry (hd1)
drive 0x81: C/H/S = 9964/255/63, The number of sectors = 160086528, /dev/sdb
Partition num: 0, Filesystem type unknown, partition type 0x82
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 3, Filesystem type is fat, partition type 0xb
I also noticed that, when I boot into Ubuntu, just after I have selected it in the grub menu a brief message flashes by saying:
"boot from (hd0,1) ext3 ...." didn't catch the rest of it, but it seems odd that it says hd0??
Anyway, as I said at beginning I CAN boot into both OS using BIOS boot priority, but I would prefer to get grub working and use that.
Anyone able to help???
Thanks, in advance
SV :)
P.S. If it makes any difference - sda is a sata drive, sdb is a ide drive.