drivemap command not found

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

Introduction

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

drivemap: command not found

or when using sudo you get the following error message

sudo: drivemap: command not found

Solutions to drivemap: command not found

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

In Ubuntu drivemap is provided by bilibop-common package.

bilibop-common is:

Bilibop helps to maintain a Debian GNU/Linux operating system installed on an external media (USB, FireWire, Flash memory, eSATA). It hardens standard rules and policies to make the system more robust in this particular situation.

This package provides shell functions usable by other bilibop scripts on the running system or into the initramfs environment. These functions use /dev, /proc and /sys databases to output the drive name or the partition hosting the running system, and are fully usable by any unprivileged user or application. Dm-crypt, LVM, loop devices, aufs and overlay root filesystems (and almost any combination of them) are supported. A ‘drivemap’ command is also provided, to show block devices in a tree of dependencies.

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

sudo apt-get -y install bilibop-common

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

You can also use apt command to install bilibop-common.

sudo apt -y install bilibop-common

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

sudo aptitude install bilibop-common

Summary

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