Linux Kernel Modules: Loading, Configuring, and Troubleshooting
The kernel is modular. Drivers and optional features load on demand. Here is how I load, configure, blacklist, and troubleshoot kernel modules. The Linux kernel is modular: core functionality is built in, while drivers and optional features are loaded as modules on demand. This keeps the kernel image small and lets hardware support load only when needed. After years of managing servers with varied hardware, I have learned to load, configure, and troubleshoot kernel modules confidently. Here is what I use. Listing Loaded and Available Modules The lsmod command lists currently loaded modules. The module files under /lib/modules show what is available. I start any module investigation with lsmod to see what is already running. lsmod # list loaded modules lsmod | grep -i ext # filter by name modinfo ext4 # show info about a module find /lib/modules/$(uname -r) -name '*.ko*' | head The modinfo command shows the description, version, dependencies, and parameters a module accepts. I run it before loading an unfamiliar module to understand its options and what else it depends on. Loading and Removing Modules The modprobe command loads a module and its dependencies. The older insmod loads…