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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

mkinitrd: command not found

by admin

The mkinitrd command is used to create the initrd image for preloading the kernel modules. Various options of the mkinitrd command are given in the following table.

Option Description
—preload={module name} Load a module in the initrd image before the loading of other modules.
–with={module name} Load a module in the initrd image after the loading of other modules.
-f Overwrite an existing initrd image file.
—nocompress Disable the compression of the initrd image.

Syntax

The syntax of the mkinitrd command is:

# mkinitrd [options] {initrd image name} {kernel version}

The following example creates an initrd image from the current kernel version and names the image initrd-[kernel version].img:

# mkinitrd /boot/initrd-$(uname -r).img $(uname -r)

If you encounter the below error while running the mkinitrd command:

mkinitrd: command not found

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

OS Distribution Command
Debian apt-get install dracut
Ubuntu apt-get install dracut
Kali Linux apt-get install dracut
CentOS yum install dracut
Fedora dnf install dracut
Raspbian apt-get install dracut

Filed Under: Linux

Some more articles you might also be interested in …

  1. guake: command not found
  2. cloc: Count, and compute differences of, lines of source code and comments
  3. net-snmp-create-v3-user: command not found
  4. eject Command Examples in Linux
  5. bvnc: A GUI tool for browsing for SSH/VNC servers on the local network
  6. checkinstall Command Examples in Linux
  7. Adding Static Routes On Various *NIX (Linux,AIX,HP-UX)
  8. How to Install golang-github-tendermint-go-lo software package in Ubuntu
  9. ebook-convert: Can be used to convert e-books between common formats, e.g. PDF, EPUB and MOBI
  10. lrztar Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright