[EdLUG] 4TB HDD showing bad blocks

Roy roy at crossford.net
Wed Feb 15 18:04:51 UTC 2023


Andrew,

To add to the good stuff said by Stephen, you may coax one more read 
from hard to read sectors with ddrescue.
You need to make an image and save the log file, That requires another 
4Tb of space for the image and some space somewhere else for the log.

Run   smartctl -x   and save the result. Post it if you like.

Look at the duration for the long test in the output.

Use smartctl to run the long test. Everything happens inside the drive, 
so if you have cable or motherboard problems, they will be ignored.  
Wait as least as long as the long test completion takes.

Run  smartctl -x  again.

The key things to look at are how much of the test completed, The 
Pending Sectors and the Reallocated Sector count.

The Pending Sector count is the number of sectors that the drive would 
like to remap if only it could read them.

Running ddrescue in place, or throwing away recovered data is a really 
bad idea. If your drive is on the verge of failing, the time to run 
ddrescue may tip it over the edge.

Regards,

Roy Bamford.




On 15/02/2023 03:31, Andrew Smith wrote:
> Guys
> My 4TB WD SATA HDD has started showing bad blocks.
> It has SMART.
> How do I configure it, probably with /smartctl,/ to automatically map 
> the bad blocks when they arise to good ones elsewhere  on the drive?
> In addition, if I get a list of bad blocks using /badblocks/, how can 
> I find the names of the files using these ad blocks ?
> Andrew
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.edlug.org.uk/pipermail/edlug/attachments/20230215/96f64e35/attachment.htm>


More information about the EdLUG mailing list