LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1488|回复: 8

[求助]linux 2.6.20内核编译以后启动时出错:Error 15: File not found

[复制链接]
发表于 2007-5-4 10:06:10 | 显示全部楼层 |阅读模式
编译了一个2.6.20的内核,启动的时候显示:
root (hd0,7)
Filesystem type is ext2fs, partition type 0x83
/boot/vmlinuz-2.6.20 ro root=LABEL=/ rhgb quiet
Error 15: File not found

我的grub.conf文件内容:
# 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 /, eg.
# root (hd0,7)
# kernel /boot/vmlinuz-version ro root=/dev/hda8
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
#splashimage=(hd0,7)/boot/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.20)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.12.3 ro root=LABEL=/ rhgb quiet
        initrd /boot/initrd-2.6.12.3.img
title Fedora Core (2.6.18-1.1827_FC6)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.18-1.1827_FC6 ro root=LABEL=/ rhgb quiet
        initrd /boot/initrd-2.6.18-1.1827_FC6.img
title Other
        rootnoverify (hd0,0)
        chainloader +1
第一个title那段是我模仿原来的加上去的;这种错误怎么解决呢?
发表于 2007-5-4 10:08:12 | 显示全部楼层
内核的路径和你grub里面写的不一致
回复 支持 反对

使用道具 举报

发表于 2007-5-4 10:09:33 | 显示全部楼层
不过真搞不懂,为什么那么新人都喜欢自己编内核。编不好问题多的要死,还不如先用现成的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-4 10:10:53 | 显示全部楼层
那应该怎么写呢?没看明白。。。
回复 支持 反对

使用道具 举报

发表于 2007-5-4 14:34:23 | 显示全部楼层
= =确保你内核在boot下,并且叫做那个名字就行了。。。vmlinuz-2.6.20
你不会编译好了以后还没有从那个目录拷过去吧
回复 支持 反对

使用道具 举报

发表于 2007-5-4 17:51:44 | 显示全部楼层
把你/boot下的所有文件名都写出来看看
回复 支持 反对

使用道具 举报

发表于 2007-5-26 17:15:07 | 显示全部楼层

Error

Post by zxf1942
把你/boot下的所有文件名都写出来看看

都进不去了,怎么来看/boot下的文件?
回复 支持 反对

使用道具 举报

发表于 2007-5-31 19:18:11 | 显示全部楼层
GRUB 命令模式
Tab 键 推出某分区某目录某文件。

例:

kernel (hd0,1)/   快速按两下Tab键 。
假如看到了 boot 目录。

kernel (hd0,1)/boot/   快速按两下Tab键 。
假如看到了 grub 目录。

cat (hd0,1)/boot/grub/menu.lst
这样就用 Tab 键找出了第一硬盘第一分区的 /boot/grub/menu.lst

想找其它文件同理。
回复 支持 反对

使用道具 举报

发表于 2007-6-1 08:47:06 | 显示全部楼层
刚刚编好2.6.20.1
前面2.6.18.2失败N次
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表