免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1763 | 回复: 0
打印 上一主题 下一主题

Error 13: Invalid or unsupported executable ... [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-24 01:49 |只看该作者 |倒序浏览
重新编译内核之后,重启系统,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


               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/70359/showart_1145440.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP