LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]如何让开机不自动加载某些模块?

[复制链接]
发表于 2006-3-19 12:25:58 | 显示全部楼层 |阅读模式
我把所需要的绝大部分模块编入内核了
但系统启动时还试图加载这个模块
请问在哪取消插入操作

OS:sarge/testing
Ker: 2.6.15.6
发表于 2006-3-19 14:46:37 | 显示全部楼层
modconf吧
回复 支持 反对

使用道具 举报

发表于 2006-3-19 21:35:13 | 显示全部楼层
Post by pointer
modconf吧



我觉得这个不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-19 22:13:54 | 显示全部楼层
  1. [0 No.525 work $ ] cat /etc/modules
  2. # /etc/modules: kernel modules to load at boot time.
  3. #
  4. # This file should contain the names of kernel modules that are
  5. # to be loaded at boot time, one per line.  Comments begin with
  6. # a "#", and everything on the line after them are ignored.
  7. #ide-cd
  8. #ide-disk
  9. #ide-generic
  10. #psmouse
  11. #sd_mod
  12. [0 No.526 work $ ]
复制代码
取消了几个
不过还有一些。。。。。

2楼的方式行不能啊
回复 支持 反对

使用道具 举报

发表于 2006-3-19 22:53:12 | 显示全部楼层
Post by huan

  1. [0 No.525 work $ ] cat /etc/modules
  2. # /etc/modules: kernel modules to load at boot time.
  3. #
  4. # This file should contain the names of kernel modules that are
  5. # to be loaded at boot time, one per line.  Comments begin with
  6. # a "#", and everything on the line after them are ignored.

  7. #ide-cd
  8. #ide-disk
  9. #ide-generic
  10. #psmouse
  11. #sd_mod
  12. [0 No.526 work $ ]
复制代码

取消了几个
不过还有一些。。。。。

2楼的方式行不能啊



这里去掉的好象是你手动安装的模块
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-20 08:58:04 | 显示全部楼层
我也不清楚这个文件是怎么写进去的
里面的模块应该是系统自己添进去的
回复 支持 反对

使用道具 举报

发表于 2006-3-20 09:22:20 | 显示全部楼层

[求助]如何让开机不自动加载某些模块?

dabian的系统,不想让每次开机都加载floppy和cdrom模块,怎么取消?

在/etc/discover.conf里加了skip ide-cd cdrom floppy,没有用
回复 支持 反对

使用道具 举报

发表于 2006-3-20 09:38:50 | 显示全部楼层
既然你都编译进内核了,怎么还会生成模块呢?
回复 支持 反对

使用道具 举报

发表于 2006-3-20 09:41:16 | 显示全部楼层
加入到 /etc/modprobe.d/blacklist
回复 支持 反对

使用道具 举报

发表于 2006-3-20 10:00:27 | 显示全部楼层
要不直接去系统的/lib/mod的文件夹里对应的mod改名
如, foo.ko 改为 foo.ko.noused
回复 支持 反对

使用道具 举报

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

本版积分规则

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