In a previous thread the answer # smartctl -a /dev/sda
looks good. The problem by my side is the highly verbose output. Is possible to obtain something more human understadable, something like "hard drive good at 80%" or "grep
ping" the essentials from smarctl -a
?
1 Answer
That's what smartctl -H
does: it gives you a pass (no failure predicted) or fail (failure predicted in next 24h). SMART unfortunately doesn't give any way to ask a drive its expected remaining lifespan, other than that. Other than SSDs with their limited write durability, it probably isn't even possible to do in general.
You can get less output from smartctl with some of the other flags. For example -A
will give only the attribute table. -l selftest
will give only the selftest logs, etc.
smartctl -H
and "Your drive will either pass or fail the test (see the first section where you should see a PASSED or FAILED status)...ASAP" are greats for me.