LinuxSir.cn,穿越时空的Linuxsir!

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

系统启动时要load的modules在什么conf文件中设定

[复制链接]
发表于 2005-12-3 21:49:39 | 显示全部楼层 |阅读模式
lsmod看到了很多模块,有些甚至都不清楚用途。现想要在启动时去掉一些不用的模块,同时加入一些别的模块,应该怎么作?

知道系统启动时是根据什么去load模块的?
cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a "#", and everything on the line after them are ignored.

ide-cd
ide-disk
ide-generic
psmouse
看意思是这个文件包含启动时要load的模块。但是lsmod却发现当前并没有加载这些模块,奇怪...

/etc/modules.conf是作什么用的?

thx!
 楼主| 发表于 2005-12-3 22:09:57 | 显示全部楼层
发现/etc/modules里的ide-cd在lsmod时变成了ide_cd.其他两个"-"也变成了“_”,在/lib/module/`uname -r`下查抄到ide-cd.ko,看来lsmod时把“-"变成“_”了
回复 支持 反对

使用道具 举报

发表于 2005-12-4 09:46:34 | 显示全部楼层
/etc/modules or /etc/modules.conf
回复 支持 反对

使用道具 举报

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

本版积分规则

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