sdparm command not found

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

Introduction

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

sdparm: command not found

or when using sudo you get the following error message

sudo: sdparm: command not found

Solutions to sdparm: command not found

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

In Ubuntu sdparm is provided by sdparm package.

sdparm is:

The sdparm utility outputs and in some cases modifies SCSI device parameters. It can be used to output and modify parameters on any device that uses a SCSI command set. Apart from SCSI disks, such devices include CD/DVD drives (irrespective of transport), SCSI and ATAPI tape drives and SCSI enclosures.

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

sudo apt-get -y install sdparm

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

You can also use apt command to install sdparm.

sudo apt -y install sdparm

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

sudo aptitude install sdparm

Summary

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