[CentOS] HDD badblocks

Tue Jan 19 22:48:39 UTC 2016
John R Pierce <pierce at hogranch.com>

On 1/19/2016 2:24 PM, Warren Young wrote:
> It’s dying.  Replace it now.

agreed

> On a modern hard disk, you should*never*  see bad sectors, because the drive is busy hiding all the bad sectors it does find, then telling you everything is fine.

thats not actually true.    the drive will report 'bad sector' if you 
try and read data that the drive simply can't read.   you wouldn't want 
it to return bad data and say its OK.     many(most?) drives won't 
actually remap to a bad sector until you write new data over that block 
number, since they don't want to copy bad data without any way of 
telling the OS the data is invalid.     these pending remaps are listed 
under smart parameter 197 Current_Pending_Sector



-- 
john r pierce, recycling bits in santa cruz