LinuxSir.cn,穿越时空的Linuxsir!

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

请教:rmmod网卡模块后模块又自动加载

[复制链接]
发表于 2007-3-2 17:47:20 | 显示全部楼层 |阅读模式
请教大家:
我用的是fedora6
网卡e1000

我想换个驱动模块 于是 rmmod e1000(没报错)
但马上 执行 lsmod 一看 e1000的模块还在(又自动加载了???)
而且之前down掉的网卡还根据/etc/sysconfig/network-scripts/下的配置up起来了

请问下这是怎么回事啊?如何rmmod掉e1000的模块?

另外:我把/etc/modprobe.conf 中关于网卡的行 注释掉了 如下
#alias eth0 e1000
这样rmmod e1000“成功”,lsmod已经没有 e1000
但我仍不清楚,这是怎么回事?

麻烦大家赐教!!!谢谢
发表于 2007-3-3 01:06:35 | 显示全部楼层
-f --force
                 This  option  can  be  extremely  dangerous: it has no effect
                 unless CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was
                 compiled.  With this option, you can remove modules which are
                 being used, or which are not designed to be removed, or  have
                 been marked as unsafe (see lsmod(8)).

会不会是网络设置不能被移除?
或许尝试下先加个参数 -f
回复 支持 反对

使用道具 举报

发表于 2007-3-3 12:27:42 | 显示全部楼层
Post by kingkongmok
-f --force
                 This  option  can  be  extremely  dangerous: it has no effect
                 unless CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was
                 compiled.  With this option, you can remove modules which are
                 being used, or which are not designed to be removed, or  have
                 been marked as unsafe (see lsmod(8)).

会不会是网络设置不能被移除?
或许尝试下先加个参数 -f


这样不行,或许-f可以移除使用计数不为0的模块?显然需要内核支持。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-4 14:03:47 | 显示全部楼层
加了 -f 后 系统又自动把e1000的模块加载了。。。
这是系统什么功能啊  如何禁掉啊 ???
回复 支持 反对

使用道具 举报

发表于 2007-3-4 14:54:51 | 显示全部楼层
可以加入udev的blacklist中。
回复 支持 反对

使用道具 举报

发表于 2008-7-31 11:22:31 | 显示全部楼层
我也遇到了楼主的问题,我是在FC6下,请问楼主有解决方法了吗
回复 支持 反对

使用道具 举报

发表于 2008-8-4 09:49:00 | 显示全部楼层
自己顶,高人指点啊
回复 支持 反对

使用道具 举报

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

本版积分规则

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