setup-storage command not found

In this troubleshooting guide we learn how to fix setup-storage command not found error message

Introduction

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

setup-storage: command not found

or when using sudo you get the following error message

sudo: setup-storage: command not found

Solutions to setup-storage: command not found

How To Fix setup-storage: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu setup-storage is provided by fai-setup-storage package.

fai-setup-storage is:

Using FAI disk_config files, setup-storage computes effective partition and volume sizes and executes the necessary commands to configure storage devices. It manages disk drives as well as RAID and LVM volumes. It handles all file systems supported by parted(8) as well as ntfs but is flexible enough to be extended to further types as well. Once the storage devices are prepared, an appropriate fstab(5) file is generated.

This package provides the setup-storage utility as separate package so it can be used independent from FAI as well.

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

sudo apt-get -y install fai-setup-storage

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

You can also use apt command to install fai-setup-storage.

sudo apt -y install fai-setup-storage

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

sudo aptitude install fai-setup-storage

Summary

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