scsi-spin command not found

In this troubleshooting guide we learn how to fix scsi-spin command not found error message

Introduction

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

scsi-spin: command not found

or when using sudo you get the following error message

sudo: scsi-spin: command not found

Solutions to scsi-spin: command not found

How To Fix scsi-spin: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu scsi-spin is provided by scsitools package.

scsitools is:

This package is a collection of tools for manipulating SCSI hardware:

scsiinfo: displays SCSI drive low-level information and modifies SCSI drive settings, scsidev: makes permanent SCSI LUN -> devicename connections, scsifmt: low-level SCSI formatter, sraw: benchmarks raw SCSI I/O rates bypassing the buffer cache, scsi-spin: program to manually spin up and down a SCSI device.

Beware that, to be used properly, these tools require some knowledge of what they’re doing as they can cause damage to your system.

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

sudo apt-get -y install scsitools

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

You can also use apt command to install scsitools.

sudo apt -y install scsitools

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

sudo aptitude install scsitools

Summary

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