What does this hard disk error message mean: “Current Pending Sector Count …”

error handlinghard-disk

I grabbed this information from Disk Utillity on Linux Mint:

Current Pending Sector Count:

Normalized: 200
Worst:      200
Threshold:  0
Value:      22 sectors

What does it mean? Is it possible to fix that error?

Best Answer

It means that there are 22 sectors that could not be read. The next time you write to those sectors, if they can not be correctly written to, they will be remapped to a spare sector. You can use the badblocks utility to locate the bad sectors, and dd to write to them:

sudo badblocks -b 512 /dev/sda

For each sector listed, first verify that it can not be read:

sudo dd if=/dev/sda of=/dev/null bs=512 count=1 iflag=direct skip=[sector]

This should fail with an IO error. If it does, proceed with writing:

sudo dd if=/dev/zero of=/dev/sda bs=512 count=1 oflag=direct seek=[sector]

Use the sector number given by badblocks for [sector]. After doing this, check the SMART stats again and the pending count should be zero. The reallocated count might rise in the event that the writing failed and the sectors were reallocated from the spare pool. If this happens, you may want to replace the disk. If it does not, then all has been repaired.

Related Question