It's more likely to be a hardware issue than a software issue. Things to try:
1. An external drive
2. Replace the drive.