Problem Statement
How can you check the health and SMART status of a disk?
Explanation
Use the smartctl command from the smartmontools package to view detailed disk health information.
It reports temperature, bad sectors, and performance warnings, helping detect failing drives early.
Code Solution
SolutionRead Only
sudo smartctl -a /dev/sda
Practice Sets
This question appears in the following practice sets: