makefs command not found

In this troubleshooting guide we learn how to fix makefs command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

makefs: command not found

or when using sudo you get the following error message

sudo: makefs: command not found

Solutions to makefs: command not found

How To Fix makefs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu makefs is provided by makefs package.

makefs is:

NetBSD® makefs(8) creates a filesystem image from a directory tree without the need for superuser privileges. The MirBSD version fixes ECMA 119, SUSP and RRIP (Rock Ridge) compliance and adds features.

Supported target filesystem types are:

cd9660   ISO 9660 (ECMA 119) compatible filesystem images, with
         Rock Ridge, El Torito, and other features
ffs      4.2FFS, the BSD Fast Filesystem, also known as UFS1;
         UFS2 (with "-o version=2")

The images created can be of a fixed (predefined) size, given on the command line, or sized automatically. Permission bits are taken from the source directory tree but may be overridden using an mtree file.

This utility does not currently support Large Files (2 GiB or more).

To fix this problem, we can install more using the command below.

sudo apt-get -y install makefs

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install makefs.

sudo apt -y install makefs

Or if you have aptitude installed you can use the following command.

sudo aptitude install makefs

Summary

In this tutorial we learn how to fix makefs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.