• 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

dracut: command not found

by admin

Occasionally, the initramfs image may get damaged as well. If this happens, you cannot boot your server into normal operational mode. To repair the initramfs image after booting into the rescue environment, you can use the dracut command. If used with no arguments, this command creates a new initramfs for the kernel currently loaded.

Alternatively, you can use the dracut command with several options to make an initramfs for specific kernel environments. There is also a configuration file with the name /etc/dracut.conf that you can use to include specific options while re-creating the initramfs.

An example of using the dracut command to create an initramfs image is as follows:

# dracut /boot/initramfs-$(uname -r).img $(uname -r)

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

dracut: 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

Conclusion

The dracut command is used to generate an initramfs image, similar to how mkinitrd is used to generate an initrd image. In fact, on some distributions, mkinitrd is a compatibility wrapper that calls the dracut command.

Filed Under: Linux

Some more articles you might also be interested in …

  1. apt: command not found
  2. How to blacklist a local disk using the “find_multipaths” directive in CentOS/RHEL 6
  3. bpftrace: command not found
  4. certbot: command not found
  5. “sudo: /etc/sudoers is world writable” – How to correct the permissions of sudoers file
  6. Linux OS Service ‘ntpd’
  7. ncat: command not found
  8. mate-search-tool Command Examples in Linux
  9. “WARNING: Duplicate VG name [vgname]” – error while running LVM commands
  10. macchanger: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright