Skip to content

Install

Install one of the following. SmartDisk for Mac brings its own smartdisk command, so you do not need the command line tool next to it.

Terminal window
curl -fsSL https://releases.smartdisk.io/install.sh | sh

The installer downloads the binary for your Mac (Apple Silicon or Intel) or Linux machine (x86-64 or ARM64) from releases.smartdisk.io and checks it before installing:

  • the Ed25519 signature of checksums.txt (the same key smartdisk update uses),
  • the binary’s SHA-256 against checksums.txt.

It installs to /usr/local/bin, with sudo if needed, so that sudo smartdisk … finds it.

The signature check needs OpenSSL 3. Current Linux distributions have it; on macOS run brew install openssl. The LibreSSL that comes with macOS cannot check Ed25519, so without OpenSSL 3 the installer warns and checks only the SHA-256.

Variable Effect
SMARTDISK_VERSION=v0.6.2 Install a specific version
SMARTDISK_INSTALL_DIR=… Install to another directory
SMARTDISK_REQUIRE_SIGNATURE=1 Refuse to install without the signature check

list, info, test and pdf need nothing else. Two packages add to it on the Mac:

Package Used for
libusb Required for smartdisk usb (SMART over USB); loaded at runtime
smartmontools Model-specific attribute names from its drivedb.h; smartctl also serves as a fallback if the native query fails

Install both with Homebrew in one step:

Terminal window
smartdisk install

On Linux, smartdisk install names the distribution packages instead. SmartDisk for Mac already bundles libusb.

On Linux, reading SMART needs root: sudo smartdisk. Without root the disk list still works. See Linux for what else differs.