hdparm command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hdparm: command not found
or when using sudo you get the following error message
sudo: hdparm: command not found
Solutions to hdparm: command not found
How To Fix hdparm: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hdparm is provided by hdparm package.
hdparm is:
Get/set device parameters for Linux SATA/IDE drives. Provides a command line interface to various kernel interfaces supported by the Linux SATA/PATA/SAS “libata” subsystem and the older IDE driver subsystem. Many newer (2008 and later) USB drive enclosures now also support “SAT” (SCSI-ATA Command Translation) and therefore may also work with hdparm.
To fix this problem, we can install more using the command below.
sudo apt-get -y install hdparm
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install hdparm.
sudo apt -y install hdparm
Or if you have aptitude installed you can use the following command.
sudo aptitude install hdparm
Summary
In this tutorial we learn how to fix hdparm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.