QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 893|回复: 8

编译2.6后 说没init 我想不出哪错了

[复制链接]
发表于 2004-2-3 13:57:03 | 显示全部楼层 |阅读模式
用redhat 90
自己编译的2.6
起动后没找到init
我的grub.conf:
[code:1]
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.6.0)
        root (hd0,0)
        kernel /vmlinuz-2.6.0 ro root=LABEL=/ hdd=ide-scsi
        initrd /initrd-2.6.0.img
title Red Hat Linux (2.4.20-8)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
        initrd /initrd-2.4.20-8.img
[/code:1]
我觉得奇怪的是
为啥 2.6没找到init 但2.4却可以起动?
发表于 2004-2-3 15:04:49 | 显示全部楼层
可能是根文件系统没有正确加载导致的找不着/sbin/init的缘故吧。
比如在启动的时候,内核没有加载ext3的模块(没有内建在内核中)于是不能支持ext3格式的/ 文件系统(通常这种情况下系统会将/ 加载为ext2格式,我的就是,我用的是2.6.1的),确定/ 正确加载
回复

使用道具 举报

发表于 2004-2-3 20:40:24 | 显示全部楼层
最好把ext3编译进内核,而不是模块
回复

使用道具 举报

发表于 2004-2-4 13:20:06 | 显示全部楼层
几乎可以肯定是:
你要把root=LABEL=/ hdd=ide-scsi改成 root=/dev/hda5之类的.
其中/dev/hda5是我的/位置,你要换成你自己的/.
回复

使用道具 举报

发表于 2004-2-7 00:38:26 | 显示全部楼层
请注意:你把对Ext2,Ext3直接编译进内核,否则,启动的时候系统当掉。
回复

使用道具 举报

发表于 2004-2-7 23:57:54 | 显示全部楼层
是   root=LABEL=/   的问题

如四楼
回复

使用道具 举报

发表于 2004-2-8 16:43:38 | 显示全部楼层
谁可以解释为什么可以这样改????
回复

使用道具 举报

发表于 2004-2-8 17:40:59 | 显示全部楼层
grub.conf文件没有问题,hdd=ide-scsi应该是个刻录机,root=LABEL=/也没有问题。
------------------------------------
你把对Ext2,Ext3直接编译进内核
------------------------------------
回复

使用道具 举报

发表于 2004-2-8 18:21:50 | 显示全部楼层
你用的不是SCSI硬盘吧?-_-b
否则连SCSI驱动最好也放进kernel里。ext3是肯定要的。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-18 15:38 , Processed in 0.051981 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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