Crates.io | shd |
lib.rs | shd |
version | 0.1.5 |
source | src |
created_at | 2023-01-16 23:45:58.562959 |
updated_at | 2023-05-20 12:56:03.495291 |
description | Shows pretty HDD/SSD list |
homepage | |
repository | https://github.com/alttch/shd |
max_upload_size | |
id | 760677 |
size | 90,863 |
Long time ago when I've switched from Solaris to Linux, I missed the "hd" utility. In Linux "hd" command is used for hex dump, in Solaris it displayed a pretty table with HDD info.
I had written "shd" shell script with a similar functionality. After I rewrote it in Python, added options and pretty colors. The current version 0.1 comes in Rust, as statically built binaries for x86_64 Linux, i686, ARM and AARCH64.
Install smartmontools (>=7.0), then download the appropriate binary from the releases page, chmod +x and enjoy.
shd [-h] [--temp-warn TEMP] [--temp-crit TEMP] [-R] [-y] [-e] [-s] [-f]
--temp-warn TEMP Warning temperature, default: 40 C
--temp-crit TEMP Critical temperature, default: 45 C
-f, --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
The tool considers a drive has errors if its smart status is either not reported or reported as passed=false.