MCPcopy Index your code
hub / github.com/alttch/shd

github.com/alttch/shd @v0.1.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.6 ↗ · + Follow
16 symbols 23 edges 1 files 0 documented · 0%

Browse by type

Functions 6 Types & classes 10
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Show pretty HDD/SSD list

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.

Installation

Install smartmontools (>=7.0), then download the appropriate binary from the releases page, chmod +x and enjoy.

Usage

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

Exit codes

  • 1 critical temperature
  • 2 errors detected
  • 3 smartctl error

The tool considers a drive has errors if its smart status is either not reported or reported as passed=false.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Class 9
Function 5
Interface 1
Method 1

Languages

Rust100%

Modules by API surface

src/main.rs16 symbols

For agents

$ claude mcp add shd \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page