FL1GHT5 Lab • Linux & Servers

How to Monitor Disk Health with SMART

Who This Is For

Beginner.

Think of it like your car's check-engine light. A small warning today beats a breakdown on the highway next month.

What You'll Build

SMART scheduled checks with alerting, or at minimum a documented manual review process.

Prerequisites

Install smartmontools

$sudo apt install smartmontools

Basic Commands

$sudo smartctl -i /dev/sda # device info
$sudo smartctl -H /dev/sda # health status
$sudo smartctl -a /dev/sda # full attribute report
$sudo smartctl -t short /dev/sda
$sudo smartctl -t long /dev/sda

Key Warning Indicators

A "Passed" Status Is Not a Guarantee

SMART self-tests can pass while individual attributes show a worrying trend. Read the full attribute report, not just the pass/fail summary.

Schedule Tests with smartd

smartd (installed alongside smartmontools) runs scheduled tests and can email or webhook on warnings, configure it in /etc/smartd.conf.

When a Disk Shows Warning Signs

  1. Confirm backups are current
  2. Copy off any critical data immediately
  3. Avoid running further stress tests if failure looks imminent
  4. Replace the drive

Security & Backup Notes

Troubleshooting

Lab Finish Line

SMART scheduled checks with alerting or a documented review process.

What to Build Next

Planning a business implementation?

Explore our infrastructure and systems services.

View services