Account Links: Cart | Register | Log In

Skip to content

Red Hat Knowledgebase
Red Hat Knowledgebase Search
Article translations:
Currently Being Moderated

怎样在系统引导时阻止某些模块的加载?

Article ID: 11748 - Created on: Jul 22, 2008 6:00 PM - Last Modified:  Oct 10, 2008 12:21 PM

有些时候需要在系统引导时阻止加载一些模块。

 

红帽Linux有 一个文件用于存放需要加载的软件模 块和硬件驱动的列表,在红帽企业Linux4.0中这个文件是/etc/modprobe.conf,在红帽企业3.0中是/etc/modules.conf文件。系统引导时会查询该文件并且引导列表中的模块。

 

如果需要在下次启动时不加载某个模块。在/etc/modprobe.conf 或 /etc/modules.conf 中,加入一行(需要用模块名字代替下行的"modulename”)

 



 alias modulename off

 

Feedback from users like yourself is a critical factor in helping us make the Red Hat Knowledgebase as useful as possible.

More Like This

  • Retrieving data ...