dmsetup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dmsetup: command not found
or when using sudo you get the following error message
sudo: dmsetup: command not found
Solutions to dmsetup: command not found
How To Fix dmsetup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dmsetup is provided by dmsetup package.
dmsetup is:
The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management) Team’s implementation of a minimalistic kernel-space driver that handles volume management, while keeping knowledge of the underlying device layout in user-space. This makes it useful for not only LVM, but software raid, and other drivers that create “virtual” block devices.
This package contains a utility for modifying device mappings.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dmsetup
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dmsetup.
sudo apt -y install dmsetup
Or if you have aptitude installed you can use the following command.
sudo aptitude install dmsetup
Summary
In this tutorial we learn how to fix dmsetup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.