diskscan command not found

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

Introduction

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

diskscan: command not found

or when using sudo you get the following error message

sudo: diskscan: command not found

Solutions to diskscan: command not found

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

In Ubuntu diskscan is provided by diskscan package.

diskscan is:

diskscan is intended to find sectors of a storage medium (hard disk, flash drive or pendrive, etc.) which are bad or in the process of going bad.

The operation is entirely read-only and does not cause damage to the data on filesystems. As the program reads block device sectors, it will work whether there is a filesystem or not.

diskscan reads the entire block device and notes the time it took to read a block. When there is an error it is immediately noted and also when there is a higher latency to read a block. A histogram of the block latency times is also given to assess the health of the medium.

diskscan can also be used to test the speed and quality of the medium. All sectors of a perfect medium could be read at the same speed.

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

sudo apt-get -y install diskscan

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

You can also use apt command to install diskscan.

sudo apt -y install diskscan

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

sudo aptitude install diskscan

Summary

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