john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Linux kernel module loading and how to blacklist a module

To check whether or not a module is running, use the lsmod command. lsmod

In most modern Linux distributions (I think from kernel 2.2 onwards) the module settings are controlled by /etc/modprobe.conf and the files in

/etc/modprobe.d

one of the things that udev does is check all of these files and load modules based on their contents

/etc/modprobe.d/blacklist-custom

Custom blacklist file so I don't mess with any of the files that come with

the module-init-tools package.

blacklist pcspkr

update-initramfs -u

The changes will take place next time you reboot (technically the next time you reload udev)


Manually loading/unloading and listing modules

sudo modprobe -r modname sudo modprobe -r pcspkr sudo modprobe pcspkr modprobe ieee80211_crypt_tkip

or insmod wl.ko

depmod -a

Alternatively to manually remove modules

rmmod bcm43xx; rmmod b43; rmmod b43legacy rmmod ssb rmmod b43 rmmod b43legacy rmmod ndiswrapper //necessary?


to add a module to the kernel at boot?

echo wl >> /etc/modules

user@ubuntu$


  • « Linux kernel rebuilding optimizing
  • Linux install virtualbox on ubuntu server 8 04 »

Published

Feb 6, 2010

Category

linux

~153 words

Tags

  • a 23
  • and 29
  • blacklist 2
  • how 18
  • kernel 4
  • linux 249
  • loading 2
  • module 9
  • to 63