error 13: invalid or unsupported executable format!

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
bbkchishi
帖子: 39
注册时间: 2009-04-23 17:13

error 13: invalid or unsupported executable format!

#1

帖子 bbkchishi » 2009-04-28 14:56

启动XP 显示


error 13: invalid or unsupported executable format!


请问怎么解决!!!
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: error 13: invalid or unsupported executable format!

#2

帖子 adagio » 2009-04-28 16:58

请描述详细情况
menu.lst贴上来
sudo fdisk -l 结果贴上来
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
bbkchishi
帖子: 39
注册时间: 2009-04-23 17:13

Re: error 13: invalid or unsupported executable format!

#3

帖子 bbkchishi » 2009-04-28 17:11

按照小草的方法安装的UBUNTU
viewtopic.php?f=48&t=193385
另外 我安装成功之后在LINUX下面把原来安装XP的C盘的那些文件全部删除了,

然后启动GRUB 引导XP启动,显示
error 13: invalid or unsupported executable format!

menu.lst 内容如下:

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=dd3d4a70-5ad7-482d-b5b0-f6ccebe7ecaf ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=dd3d4a70-5ad7-482d-b5b0-f6ccebe7ecaf

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid dd3d4a70-5ad7-482d-b5b0-f6ccebe7ecaf
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=dd3d4a70-5ad7-482d-b5b0-f6ccebe7ecaf ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid dd3d4a70-5ad7-482d-b5b0-f6ccebe7ecaf
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=dd3d4a70-5ad7-482d-b5b0-f6ccebe7ecaf ro single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid dd3d4a70-5ad7-482d-b5b0-f6ccebe7ecaf
kernel /boot/memtest86+.bin
quiet

title windows xp
root(hd0,0)
chainloader +1

### END DEBIAN AUTOMAGIC KERNELS LIST
bbkchishi
帖子: 39
注册时间: 2009-04-23 17:13

Re: error 13: invalid or unsupported executable format!

#4

帖子 bbkchishi » 2009-04-28 17:13

sudo fdisk -l 结果:
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf752f752

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2551 20490876 7 HPFS/NTFS
/dev/sda2 2552 18236 125989762+ f W95 Ext'd (LBA)
/dev/sda3 18237 19452 9767520 83 Linux
/dev/sda5 2552 7650 40957686 7 HPFS/NTFS
/dev/sda6 7651 15299 61440561 7 HPFS/NTFS
/dev/sda7 15300 17922 21069216 b W95 FAT32
/dev/sda8 17923 18236 2522173+ 82 Linux swap / Solaris
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: error 13: invalid or unsupported executable format!

#5

帖子 adagio » 2009-04-28 17:19

bbkchishi 写了:sudo fdisk -l 结果:
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf752f752

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2551 20490876 7 HPFS/NTFS
/dev/sda2 2552 18236 125989762+ f W95 Ext'd (LBA)
/dev/sda3 18237 19452 9767520 83 Linux
/dev/sda5 2552 7650 40957686 7 HPFS/NTFS
/dev/sda6 7651 15299 61440561 7 HPFS/NTFS
/dev/sda7 15300 17922 21069216 b W95 FAT32
/dev/sda8 17923 18236 2522173+ 82 Linux swap / Solaris
你的分区表乱了,sda3是主分区,现在跑到扩展分区里去了
具体去看看billbear的帖子
viewtopic.php?f=77&t=194802

先备份ubuntu,用ghost或者tar,然后尝试下用PQ或者PM修复,如果不行只好删掉重装了
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
bbkchishi
帖子: 39
注册时间: 2009-04-23 17:13

Re: error 13: invalid or unsupported executable format!

#6

帖子 bbkchishi » 2009-04-28 17:22

其实 我不关心UBUNTU , 我关心的是我的XP能不能启动起来, UBUNTU 安装10分钟就好了 可是我的XP 可是好长时间了,装了很多我要用的软件了的
bbkchishi
帖子: 39
注册时间: 2009-04-23 17:13

Re: error 13: invalid or unsupported executable format!

#7

帖子 bbkchishi » 2009-04-28 17:23

UBUNTU 用GRUB 引导是没问题, 为什么GRUB 引导 就起不来? 这个问题应该是关键把!
bbkchishi
帖子: 39
注册时间: 2009-04-23 17:13

Re: error 13: invalid or unsupported executable format!

#8

帖子 bbkchishi » 2009-04-28 17:35

我不关心UBUNTU , 我关心的是XP 能不能启动呢?

怎么才能XP正常启动起来?

安装了LINUX以后, 系统是用GRUB来引导系统启动的, 怎么才能修复到XP原来的自己的引导程序?

如果我在BIOS里面修改光盘启动,然后那XP 的安装盘修复下XP ,XP 会不会好, 当然UBUNTU被破坏我是可以容忍的, 因为我装一个UBUNTU 需要10分钟,而XP 可是有很多自己常用的工具。
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: error 13: invalid or unsupported executable format!

#9

帖子 adagio » 2009-04-28 17:38

你关心什么我不管,但现在你的分区表有问题,问题怎么搞出来的我不知道,可能是装ubuntu的时候也可能是原来就有,但现在只能这样解决
既然你不关心ubuntu,就直接修复,扫面分区表的软件很多,5楼说的可以,还有很多自己试吧
最好先备份
……
或者干脆删除sda3,再把它搞成逻辑分区
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: error 13: invalid or unsupported executable format!

#10

帖子 adagio » 2009-04-28 17:45

进XP不难,用你的XP 的安装盘进dos,执行

代码: 全选

fdisk /mbr
或者fixboot命令即可,这样就把grub删掉换成ntload了,重启即可进XP

不过分区表错乱终究是隐患,建议自己装个winPE,或者光盘PE
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
bbkchishi
帖子: 39
注册时间: 2009-04-23 17:13

Re: error 13: invalid or unsupported executable format!

#11

帖子 bbkchishi » 2009-04-28 17:48

算了 我直接 拿XP 的光盘来修复下算了, UBUNTU 明天再装一次! 不过分区表乱 是怎么搞出来的? 我装的时候是在硬盘的最后空闲分区装的 怎么会出现这种情况呢?
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: error 13: invalid or unsupported executable format!

#12

帖子 adagio » 2009-04-28 17:50

那只有你自己知道了 :em04
大多数情况是装ubuntu的时候乱搞搞出来的
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: error 13: invalid or unsupported executable format!

#13

帖子 billbear » 2009-04-28 21:56

厄,我觉得分区表没有问题。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: error 13: invalid or unsupported executable format!

#14

帖子 billbear » 2009-04-28 22:06

但是分区在末尾可能是问题。分区可能跨越了 bios 能识别的边界。我遇到过类似的情况,分区的一部分是 bios 能访问到的,另一部分访问不到。安装的结果看运气,因为文件不一定写在分区的哪个位置。如果 stage2、menu.lst、内核和initrd 都在 bios 可访问的部分,就没有问题,如果 stage2 不能访问,grub 会死掉。如果 menu.lst 不能访问,菜单出不来。如果内核和 initrd 不能访问,引导会失败。
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: error 13: invalid or unsupported executable format!

#15

帖子 adagio » 2009-04-28 23:40

billbear 写了:厄,我觉得分区表没有问题。
:shock: :shock: :shock:
sda3位于sda2和sda5中间啊,这个没问题?
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
回复