-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux insmod Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to insmod on Linux, covering Arch Linux, CachyOS, and other distributions including loading kernel modules, manual module loading, and low-level module management.
insmod (insert module) loads kernel modules.
Uses:
- Load modules: Insert kernel modules
- Manual loading: Load modules manually
- Low-level: Direct module loading
- Module management: Manage modules
Note: Prefer modprobe for automatic dependency handling.
Basic usage:
# Load module
sudo insmod /path/to/module.ko
# Loads module directlyFull path:
# Full path to module
sudo insmod /lib/modules/$(uname -r)/kernel/drivers/module.ko
# Requires full pathModule options:
# Load with options
sudo insmod module.ko option1=value1 option2=value2
# Passes options to moduleShow details:
# Verbose mode
sudo insmod -v module.ko
# -v = verbose (shows details)View options:
# Check module options
modinfo module-name
# Shows available optionsPass options:
# Set module options
sudo insmod module.ko param=value
# Sets parameter valueCheck path:
# Verify module exists
find /lib/modules -name "module.ko"
# Check full path
ls -la /lib/modules/$(uname -r)/kernel/This guide covered insmod usage, module loading, and low-level module management for Arch Linux, CachyOS, and other distributions.
- modprobe Guide - Recommended method
- rmmod Guide - Remove modules
- Kernel Management - Kernel management
-
insmod Documentation:
man insmod
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.