LinuxSir.cn,穿越时空的Linuxsir!

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

gentoo 冗余的 modules 如何 卸载

[复制链接]
发表于 2007-10-23 21:52:26 | 显示全部楼层 |阅读模式
开机时加载的 sata_sis sata_via
这些我都 用不到
可以不要内核加载吗

虽然登入之后 可以用 modprobe 移除
发表于 2007-10-23 22:14:54 | 显示全部楼层
/etc/modprobe.d/blacklist
add to this file
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-23 23:50:35 | 显示全部楼层
Post by zhllg
/etc/modprobe.d/blacklist
add to this file


已经移除了 r8169 和烦人的pcspkr

不过sata_via sata_sis 不能移除
貌似这些不是由 udev 加载的
回复 支持 反对

使用道具 举报

发表于 2007-10-24 10:09:29 | 显示全部楼层
试试直接删除后模块及相关的依赖模块后,再

depmod -a

reboot
回复 支持 反对

使用道具 举报

发表于 2007-10-24 10:10:01 | 显示全部楼层
试试直接删除后模块及相关的依赖模块后,再

depmod -a

reboot
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-24 11:49:34 | 显示全部楼层
Post by m_sunhe
试试直接删除后模块及相关的依赖模块后,再

depmod -a

reboot


depmod 没有-a选项

算了 下次编译内核不用这个了

  1. Copying over the Installation CD kernel config

  2. # zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6
复制代码

自己config好点
多谢了
回复 支持 反对

使用道具 举报

发表于 2007-10-24 14:13:21 | 显示全部楼层
Post by 坏坏小少
depmod 没有-a选项

算了 下次编译内核不用这个了

  1. Copying over the Installation CD kernel config

  2. # zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6
复制代码

自己config好点
多谢了

Spiderman ~ # depmod  --help
depmod 3.2.2 -- part of module-init-tools
depmod -[aA] [-n -e -v -q -V -r -u]
      [-b basedirectory] [forced_version]
depmod [-n -e -v -q -r -u] [-F kernelsyms] module1.o module2.o ...
If no arguments (except options) are given, "depmod -a" is assumed

depmod will output a dependancy list suitable for the modprobe utility.


Options:
        -a, --all            Probe all modules
        -n, --show           Write the dependency file on stdout only
        -V, --version        Print the release version
        -h, --help           Print this usage message

The following options are useful for people managing distributions:
        -b basedirectory
            --basedir basedirectory    Use an image of a module tree.
        -F kernelsyms
            --filesyms kernelsyms      Use the file instead of the
                                       current kernel symbols.
Spiderman ~ #
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-24 23:16:58 | 显示全部楼层
汗一个
不过man depmod(8) 着实没有


并且 reboot后

modules依然加载
回复 支持 反对

使用道具 举报

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

本版积分规则

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