• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

insmod: command not found

by admin

The insmod command is used to add modules to the currently running kernel.

Syntax

The syntax of the insmod command is as follows:

# insmod [module_name]

The exact location of the module needs to be specified. For example:

# insmod /usr/lib/modules/3.19.8-100.fc20.x86_64/kernel/fs/
  fat.ko

With insmod command you have to know the exact location of the module. If the module has any dependencies (a module that needs another module), it will fail to load. It is low-level form of module loading, that forms the base of other module loading methods, and is the one we will use in this book. On the other hand, there is modprobe, mostly used by sysadmins or in a production system. modprobe is a clever command that parses the modules.dep file in order to load dependencies first, prior to loading the given module. It automatically handles module dependencies, as a package manager does.

Syntax

The syntax of the insmod command is:

# insmod filename [module-options]

If you enciunter below error while running the insmod command:

insmod: command not found

you may try installing the below package as per yout choice of distribution:

OS Distribution Command
Debian apt-get install kmod
Ubuntu apt-get install kmod
Alpine apk add kmod
Arch Linux pacman -S kmod
Kali Linux apt-get install kmod
CentOS yum install kmod
Fedora dnf install kmod
Raspbian apt-get install kmod
Note: Error messages from insmod may be vague, because the kernel performs module operations internally and therefore sends error information to the kernel log instead of standard output; see dmesg.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How systemd-tmpfiles cleans up /tmp/ or /var/tmp (replacement of tmpwatch) in CentOS / RHEL 7
  2. CentOS / RHEL : iptables troubleshooting guide
  3. Linux OS Service ‘acpid’
  4. efibootmgr: command not found
  5. gs Command Examples in Linux
  6. lsinitramfs: Listing the contents of the initrd file system.
  7. dnsmap: command not found
  8. flock: command not found
  9. fstrim Command Examples in Linux
  10. How to Tune Btrfs Filesystem for Better Performance

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright