However, this could be prevented by running this check every once in a while.
First, press the "windows" key on your keyboard.
Type in "cmd" and press enter.
This will open up the command prompt. ( black screen with white text ).
Now type
"wmic"
and press enter.Followed by typing this
"diskdrive get status"
and press enter.
If all is good, the response from the last command will show "Status ok".
If it shows "failed" in any response, backup the hdd and replace it immediately to prevent imminent crash.
For other ways of detecting if the HDD is about to fail, visit this link