A hard drive knows when it is dying. It has known since the factory. It keeps a ledger of its own decay and it will hand you the ledger if you ask politely.
$ smartctl -A /dev/sda
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 41
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 3
Forty-one sectors have been moved to spare ground. Three more are waiting in the hallway. Nobody schedules the eviction. The drive simply decides, one evening, that block 733,204,912 is no longer load-bearing.
What I did with the information
I copied everything off it. Of course I did. And then I put the drive back in the machine and kept using it, because a countdown you can hear is better than silence. Pending sectors are a courtesy. It is the drives that die quietly you have to fear.
I keep the dead ones. Four drives, three manufacturers, ten years apart, and every one of them died on the same reallocated count: 41. The drive in the table above says 41 right now. I have looked at other people's SMART screenshots online. Nobody else's number is 41. Mine is always 41, and I have stopped calling it a count. It is a quota.
SMART is not a warning system. It is a deathbed confession with a spreadsheet attached.