badblocks

How to test hard drive for errors in Linux

I recently re-built an older PC from a laundry list of Frankenstein parts. However before installing anything to the hard drive I found I wanted to check it for physical errors and problems as I couldn’t remember why I wasn’t using this particular drive in any of my other systems. From an Ubuntu 12.04 live CD I used GParted to to delete the old partition on the drive. This let me start from a clean slate.