View Full Version : Error 13: Invalid or unsupported excutable format

2nd April 2006, 04:47 PM

I recently lost all my partitions on my Windows harddrive (NTFS). I used TestDisk and I think I've managed to get them back. But now when I attempt to boot Windows XP, Grub says

Error 13: Invalid or unsupported excutable format

How can I fix this?

also, when I attempt to mount the hard drive, Fedora says

mount: wrong fs type, bad option, bad superblock on /dev/hda2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

any help is appreciated


3rd April 2006, 01:09 AM
bump plz... i need to fix this badly

3rd April 2006, 01:47 AM
It sounds like the partition types for the partitions might be wrong. To check do the following:

sudo /sbin/fdisk /dev/hda

at the prompt enter p (for print. it will print the partition information)

the id for the windows partitons should be 7 and the system should be hpfs/ntfs
If they are not, then you can change them by doing the following:

1) enter t at the command prompt
2) enter the partition number you want to change (1 for /dev/hda1, 2 for /dev/hda2, etc)
3) you can enter L to see all the partition types supported
4) at the Hex code prompt, enter 7
5) when you are done, enter w to rewrite the partition types

you will probably need to reboot.

I'm not sure if this is the problem, but it is easy to check.


3rd April 2006, 01:49 AM
yes, it is already at 7, but the error persists

3rd April 2006, 01:53 AM
when you do the fdisk, is the windows partition you want to boot bootable (it will have an * by it)


4th April 2006, 12:14 AM
yep it does....

Device Boot Start End Blocks Id System
/dev/hda1 1 9152 4612576+ c W95 FAT32 (LBA)
/dev/hda2 * 9166 77520 34450916+ 7 HPFS/NTFS

could it be a messed boot sector preventing me from viewing the files?