Situatie
SMART data can warn you that a drive is failing before you lose data. The smartctl tool reads it directly from the drive.
Requirements: a Linux system and sudo privileges.
Solutie
- Open a terminal and install the tool:
sudo apt install smartmontools
(on Fedora/RHEL: sudo dnf install smartmontools)
- List your drives to find the device name:
lsblk -d -o NAME,SIZE,MODEL
- Run a quick health check (replace
sdawith your drive, or usenvme0for NVMe SSDs):
sudo smartctl -H /dev/sda
PASSED means the drive does not currently report a failure.
- View the full SMART report:
sudo smartctl -a /dev/sda
- On SATA drives, check these attributes:
Reallocated_Sector_Ct,Current_Pending_SectorandOffline_Uncorrectable. Any raw value above 0 is a warning sign. On NVMe drives, checkPercentage Used,Available SpareandMedia and Data Integrity Errors. - Start a short self-test (takes about 2 minutes):
sudo smartctl -t short /dev/sda
- After it finishes, read the result:
sudo smartctl -l selftest /dev/sda
Note: a drive can pass the -H check and still be failing. If any warning attribute is non-zero, back up your data immediately.
Leave A Comment?