Grub 启动时的 Error 13: Invalid or unsupported executable 问题的解决

这几天在用bt3,至于拿来干什么,大家都知道啦,前段时间是用我的台式机用grub4dos启动的,这几天想用笔记本跑bt3,但是按照一般的设置后,grub启动时显示:Error 13: Invalid or unsupported executable 。

到处找了下,基本上确定是 vmlinuz和bt3内核不一致,但是为什么原来在台式机同样的设置可以,这个就不得而知了。

按以下方法解决

 重新编译内核之后,重启系统,grub引导出错

Grub Error 13: Invalid or unsupported executable format
出错语句在 
    kernel /vmlinuz-2.6.15 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
安装的时候是xp和FC共存的,再次重启系统,进入xp,搜索 error 13的解决方法,无果。
使用营救盘 进入fc,查看/etc/grub.conf文件中设置,检查设置中的文件名。和硬盘上文件一致。
再次使用google查看vmlinuz文件的解释,在linuxidc.com上看到
vmlinuz是可执行的Linux内核,它位于/boot/vmlinuz,vmlinuz的建立有两种方式。一是编译内核时通过“make zImage”创建,然后通过:

“cp /usr/src/linux-2.4/arch/i386/linux/boot/zImage /boot/vmlinuz”产生。zImage适用于小内核的情况,它的存在是为了向后的兼容性。二是内核编译时通过命令make bzImage创建,然后通过:“cp /usr/src/linux-2.4/arch/i386/linux/boot/bzImage /boot/vmlinuz”产生。

vmlinuz是通过make bzImage命令产生的,拷贝到/boot/下需要改名为vmlinuz-version 
由于vmlinuz是编译内核之前,系统原有的 和编译内核之后的 系统不匹配  所以无法启动
重启进入grub , 按e  进行修改,将 vmlinuz-version 改为bzImage, 按b 启动linux
进入linux之后,到/boot/下 把旧的vmlinuz删除,然后将bzImage改名为vmlinuz-version
一切就正常了。

附录:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,8)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,8)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15_FC5)
    root (hd0,8)
    kernel /vmlinuz-2.6.15 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.15.img
title Other
    rootnoverify (hd0,0)
    chainloader +1
原文地址:https://www.cnblogs.com/liugod/p/1613219.html