How To Install diskscan on Ubuntu 18.04
Introduction
In this tutorial we learn how to install diskscan on Ubuntu 18.04.
What is diskscan
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.
There are three methods to install diskscan on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install diskscan Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install diskscan using apt-get by running the following command:
sudo apt-get -y install diskscan
Install diskscan Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install diskscan using apt by running the following command:
sudo apt -y install diskscan
Install diskscan Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install diskscan using aptitude by running the following command:
sudo aptitude -y install diskscan
How To Uninstall diskscan on Ubuntu 18.04
To uninstall only the diskscan package we can use the following command:
sudo apt-get remove diskscan
Uninstall diskscan And Its Dependencies
To uninstall diskscan and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove diskscan
Remove diskscan Configurations and Data
To remove diskscan configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge diskscan
Remove diskscan configuration, data, and all of its dependencies
We can use the following command to remove diskscan configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge diskscan
References
Summary
In this tutorial we learn how to install diskscan package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.