While it may help to know make and model of everything, there is a high chance it's the early warning system called SMART. For that you replace the drive.
Running the diagnostics does NOT fix SMART errors. It only confirms the failure and even then some diagnostics report in a way that is not plain English.
How about a web Speccy as it includes the SMART report?
Anytime I turn on my computer, I have this massage on a blue screen that says "hard disk error, please run the hard disk test in the system diagnostics."
I've taken all tests and my computer passed them all. And yet, any time I turn it on, I have to go through that process.
What should I do?