Install Smartctl On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

Install Smartctl On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

smartctl

View a disk’s SMART data and other information.
See https://en.wikipedia.org/wiki/S.M.A.R.T for more information.

Maintainer: Giuseppe Iuculano



Section: utils

Install smartctl

  • Debian apt-get install smartmontools Click to copy
  • Ubuntu apt-get install smartmontools Click to copy
  • Alpine OS apk add smartmontools Click to copy
  • Arch Linux pacman -S smartmontools Click to copy
  • Kali Linux apt-get install smartmontools Click to copy
  • Fedora dnf install smartmontools-1 Click to copy
  • Raspbian apt-get install smartmontools Click to copy
  • macOS brew install smartmontools Click to copy

View a disk's SMART data and other information. See https://en.wikipedia.org/wiki/S.M.A.R.T for more information.

How to use smartctl?

Below are few example commands for smartctl that you can use in the terminal.

View SMART health summary:
sudo smartctl --health /dev/sdaClick to copy
View device information:
sudo smartctl --info /dev/sdaClick to copy
Begin a short self-test:
sudo smartctl --test short /dev/sdaClick to copy
View current/last self-test status and other SMART capabilities:
sudo smartctl --capabilities /dev/sdaClick to copy
View SMART self-test log (if supported):
sudo smartctl --log selftest /dev/sdaClick to copy
Installing smartctl command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of smartctl 2026 package in your OS.