genfstab command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
genfstab: command not found
or when using sudo you get the following error message
sudo: genfstab: command not found
Solutions to genfstab: command not found
How To Fix genfstab: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu genfstab is provided by arch-install-scripts package.
arch-install-scripts is:
arch-install-scripts provides a small suite of scripts originally meant to automate some menial tasks during the installation of an Arch system. This package provides the scripts that can be useful for debootstrapping a Debian-based system.
This package contains:
- genfstab: Automatically generate an fstab file
- arch-chroot: Set up bind mounts and chroot into the target system.
To fix this problem, we can install more using the command below.
sudo apt-get -y install arch-install-scripts
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install arch-install-scripts.
sudo apt -y install arch-install-scripts
Or if you have aptitude installed you can use the following command.
sudo aptitude install arch-install-scripts
Summary
In this tutorial we learn how to fix genfstab command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.