LinuxSir.cn,穿越时空的Linuxsir!

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

请教:什么情况下不需要 initrd 文件?

[复制链接]
发表于 2005-5-19 23:36:30 | 显示全部楼层 |阅读模式
我知道 initrd 文件包含模块和驱动,但是我以前装 LFS 的时候,编译的单独的核心,在 menuconfig 的时候,有很多选项也是选的 M,请问这两者有什么区别吗?

谢谢。
发表于 2005-5-20 08:44:52 | 显示全部楼层
只要内核能在启动后找到其他模块就可以了,也就是说,需要包含硬盘控制器和文件系统的驱动
回复 支持 反对

使用道具 举报

发表于 2005-5-20 12:50:30 | 显示全部楼层
I think initrd is very necessary if you want to boot Linux from mobile devices such as USB pen drive or mobile hard disk.  In other cases, it is optional.

Correct me if I am wrong.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-22 17:16:32 | 显示全部楼层
我明白了,因为有些模块和驱动必须在根分区挂载之前加载,如果这些模块没有直接编译到内核,则必须使用  initrd。
回复 支持 反对

使用道具 举报

发表于 2005-5-22 21:50:16 | 显示全部楼层
Post by Chowroc
我明白了,因为有些模块和驱动必须在根分区挂载之前加载,如果这些模块没有直接编译到内核,则必须使用  initrd。


對, 若果你的系統是用ext3, 但在kernel內是以模組型式?砑虞d到系統的情況下, 就需要initrd了,若果把ext3編譯到內核內的.那就可以不需要initrd了.
回复 支持 反对

使用道具 举报

发表于 2005-5-23 19:02:06 | 显示全部楼层
For instance

'/' must be mounted before init is invoked

So if you did not compile the '/' file system type directly into kernel but a module

Then you need initrd
回复 支持 反对

使用道具 举报

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

本版积分规则

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