I am dual booting Ubuntu 12.04 and Windows 8. Earlier today, after restarting due to some input issues, I started getting the message upon selecting Ubuntu from GRUB, "errors were found while checking the disk drive for /". I opted to ignore it, and Ubuntu loaded as normal. Upon checking the Disk Utility tool, I see the SMART status "Disk has a few bad sectors". When checking the specific information, I am given a warning for "Current Pending Sector Count". What does this mean? Should I allow an automated attempt to fix the issue? I've had further trouble caused by allowing automated fixes to run before because of conflicts with Windows 8 and UEFI, but I have no idea if there is any association between that and this issue. I can't imagine this is due to physical hard drive damage, as it is very new hardware. Thanks to anyone who can explain it.
Sometimes sudden power failure can result in one sector being reported as bad because it didn't get completely written. You can run
That should report an IO error, if not then something is wrong and you should not proceed.
This will try to re-write that sector full of zeros. This should succeed and the SMART pending_sector count should drop by one. If the sector was physically damaged, then the reallocated_count will go up by one. Repeat the process until you have no more pending sectors and if you have no reallocated sectors either, then it was just sudden power loss, and the drive is fine. If you do have reallocated sectors, then then drive may be on its way out and you should replace it.
There are several duplicates of this question, such as:
Unfortunately, the answers vary. My own opinion is that, once bad sectors start showing up in a SMART test, the disk has become unreliable. I therefore recommend replacing it ASAP.