mktirfs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mktirfs: command not found
or when using sudo you get the following error message
sudo: mktirfs: command not found
Solutions to mktirfs: command not found
How To Fix mktirfs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mktirfs is provided by tiny-initramfs-core package.
tiny-initramfs-core is:
A very minimalistic initramfs implementation for booting Linux systems. It is designed for systems where a full initramfs (such as dracut or initramfs-tools) is too large, but where at least some functionality of an initramfs (e.g. mounting the /usr filesystem) is required. Without kernel modules it is less than 16 kiB in size.
tiny-initramfs has less features and is less extensible than full-fledged initramfs implementations, and supports only specific use cases.
This package contains the init binary as well as the mktirfs script that may be used to create working initramfs images, while not replacing the initramfs implementation used on the current system.
To fix this problem, we can install more using the command below.
sudo apt-get -y install tiny-initramfs-core
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install tiny-initramfs-core.
sudo apt -y install tiny-initramfs-core
Or if you have aptitude installed you can use the following command.
sudo aptitude install tiny-initramfs-core
Summary
In this tutorial we learn how to fix mktirfs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.