# rmmode removes a module permanently ?

**URL:** <https://forums.suse.com/t/rmmode-removes-a-module-permanently/28744>\
**Category:** SLES Configure-Administer\
**Created:** [October 6, 2016, 4:55pm UTC](https://forums.suse.com/t/rmmode-removes-a-module-permanently/28744 "2016-10-06T16:55:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [October 6, 2016, 4:55pm UTC](https://forums.suse.com/t/rmmode-removes-a-module-permanently/28744/1 "2016-10-06T16:55:56Z")

</div>

Hello,  
via “rmmod module\_name” I unload a kernel module. that kernel module is still available on its location (/lib/…). Do i need to remove(delete) that module from file system if I don’t want to load that module permanently ? or “rmmod -r module\_name” or “modprobe -r module\_name” removes the module permanently ? By permanently I meant to say persistent across reboot.

---

<div class="post-metadata">

**Author:** ![thsundel](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@thsundel](https://forums.suse.com/u/thsundel)\
**Post date:** [October 6, 2016, 5:12pm UTC](https://forums.suse.com/t/rmmode-removes-a-module-permanently/28744/2 "2016-10-06T17:12:32Z")

</div>

[QUOTE=sharfuddin;34644]Hello,  
via “rmmod module\_name” I unload a kernel module. that kernel module is still available on its location (/lib/…). Do i need to remove(delete) that module from file system if I don’t want to load that module permanently ? or “rmmod -r module\_name” or “modprobe -r module\_name” removes the module permanently ? By permanently I meant to say persistent across reboot.[/QUOTE]

Have you tried brokenmodules=yourmodule to your Kernel Command Line Parameter?

[https://www.suse.com/documentation/sles-12/book\_sle\_admin/data/sec\_grub2\_yast2\_config.html](https://www.suse.com/documentation/sles-12/book_sle_admin/data/sec_grub2_yast2_config.html)

Thomas

---

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [October 6, 2016, 5:20pm UTC](https://forums.suse.com/t/rmmode-removes-a-module-permanently/28744/3 "2016-10-06T17:20:11Z")

</div>

[QUOTE=thsundel;34645]Have you tried brokenmodules=yourmodule to your Kernel Command Line Parameter?

[https://www.suse.com/documentation/sles-12/book\_sle\_admin/data/sec\_grub2\_yast2\_config.html](https://www.suse.com/documentation/sles-12/book_sle_admin/data/sec_grub2_yast2_config.html)

Thomas[/QUOTE]

No, I’ll check it out, thanks.  
So running “modprobe -r module\_name” **only** unloads the module ? and upon reboot that module would be re-loaded if available on the file system(/lib/…) ?

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 6, 2016, 6:52pm UTC](https://forums.suse.com/t/rmmode-removes-a-module-permanently/28744/4 "2016-10-06T18:52:35Z")

</div>

Hi sharfuddin,

[QUOTE=sharfuddin;34646]No, I’ll check it out, thanks.  
So running “modprobe -r module\_name” **only** unloads the module ? and upon reboot that module would be re-loaded if available on the file system(/lib/…) ?[/QUOTE]

yes, “rmmod” and “insmod” (and “modprobe”) are run-time only. Most modules are loaded dynamically when needed to operate some detected device. Of course, there’s the chance automatisms fail, so you could create an entry in i.e. /etc/modules.d/99-local.conf

`blacklist mudule_name` to “disable” loading a module - see “man modprobe.conf”.  
Removing a module, unless you installed it manually, is not the proper option as a system verification (i.e. a “rpm -V” on the package that provides that module) will fail, which typically leads to someone a) re-installing the RPM and hence providing the module file again, and b) scratching the head why that file went missing.

Regards,  
J
