Skip to main content

Show HDD/SSD list

Project description

Show pretty HDD/SSD list

Long time ago when I've switched from Solaris to Linux, I missed "hd" utility. In Linux "hd" command is used for a hex dump, in Solaris it displayed a pretty table with HDD info.

I wrote "shd" shell script with a similar functionality. Now I've rewrote it in Python, added options and pretty colors, and releasing it to public.


Install smartmontools, then:

python3 -m pip install shd


Tool should be started under root, to obtain S.M.A.R.T. info

shd [-h] [--temp-warn TEMP] [--temp-crit TEMP] [-R] [-y] [-e] [-s] [-J]

  --temp-warn TEMP  Warning temperature (C), default: 40
  --temp-crit TEMP  Critical temperature (C), default: 45
  -R, --raw         Suppress colors
  -y, --full        Display full disk info
  -e, --errors      Display only disks with errors / critical temperature
  -s, --no-header   Suppress header
  -J, --json        Output as JSON

Exit codes

  • 1 critical temperature
  • 2 errors detected

The tool considers drive has an errors, if the following S.M.A.R.T. fields are greater than zero:

  • End-to-End_Error
  • Seek_Error_Rate
  • Raw_Read_Error_Rate
  • UDMA_CRC_Error_Count

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shd-0.0.11.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page