LinuxSir.cn,穿越时空的Linuxsir!

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

请问为什么,内核编译完以后不能启动。

[复制链接]
发表于 2005-5-9 21:37:42 | 显示全部楼层 |阅读模式
电脑启动到GRUB选,新编译的内核,启动到
“Uncompressing Linux ..... OK!booting the kernel.”
电脑就死机了,请问是哪里出了问题?

grub.conf里添加了:
title linux-test
root (hd0,0)
kernel /vmlinuz-test ro root=LABEL /
发表于 2005-5-9 22:44:57 | 显示全部楼层
grub.conf 写错了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-10 09:13:52 | 显示全部楼层
这是我grub.conf的内容,请问哪里错了?应该怎样改?望不吝指教,谢谢.
default=1
timeout=15
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-27.EL)
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.21-27.EL ro root=LABEL=/
        initrd /boot/initrd-2.4.21-27.EL.img
title Windows XP Professional
        rootnoverify (hd0,1)
        chainloader +1
title linux-test
        root (hd0,0)
        kernel /boot/vmlinuz-test ro root=LABEL=/

这是我的分区列表:

  Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1      1411  11333826   83  Linux
/dev/hda2   *      1412      2235   6618780    7  HPFS/NTFS
/dev/hda3          2236      4870  21165637+   f  Win95 Ext'd (LBA)
/dev/hda5          2236      2301    530113+  82  Linux swap
/dev/hda6          2302      2943   5156833+   7  HPFS/NTFS
/dev/hda7          2944      4870  15478596    b  Win95 FAT32
回复 支持 反对

使用道具 举报

发表于 2005-5-10 10:01:45 | 显示全部楼层
grub启动项目是手动改的,还是自动生成的?
编译是否正常执行?

title Red Hat Enterprise Linux AS (2.4.21-27.EL)
root (hd0,0)
kernel /boot/vmlinuz-2.4.21-27.EL ro root=LABEL=/
initrd /boot/initrd-2.4.21-27.EL.img

对照一下,看看在你的/boot目录下安装了什么内核;
vmlinuz-2.4.21-27.EL、initrd-2.4.21-27.EL后面的版本号不是随意改的,
除非你在生成内核文件时指定了是生成vmlinuz-test、initrd-test,
一定要按照实际来写。
比如,/boot下有新内核vmlinuz-2.6.11.8y initrd-2.6.11.8y.img,
那么就要使用实际的名称。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-10 17:00:01 | 显示全部楼层
没有生img文件吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-10 17:02:29 | 显示全部楼层
编译完后,好像没有生img文件。
回复 支持 反对

使用道具 举报

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

本版积分规则

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