Could be either a hardware issue or a software one. Generally you start by reloading the software to factory spec. If that works it was a software problem. Otherwise you've likely got a failing HDD.