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 rewrote it in Python, added options and pretty colors, and releasing it to public.

Installation

Install smartmontools, then:

python3 -m pip install shd

Usage

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, default: 40 C
  --temp-crit TEMP  Critical temperature, default: 45 C
  --fh, --fahrenheit  Temperature in Fahrenheit
  -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.12.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file shd-0.0.12.tar.gz.

File metadata

  • Download URL: shd-0.0.12.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for shd-0.0.12.tar.gz
Algorithm Hash digest
SHA256 7bdc28739f4de1297e4a37fbd1237973d0f4da3b1dc26867e6bc8b4ec02d6fd2
MD5 d10dafb9bfffcf45605727b96800d0ad
BLAKE2b-256 099877eb684493b9b3dca3ba6797c5a2f72792beb29782ce47298583886819a4

See more details on using hashes here.

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