Changes between Version 30 and Version 31 of BadBlockHowto

Jun 1, 2023, 10:37:04 PM (12 months ago)

Add note about seaChest: you don't need to wait for the error log.


  • BadBlockHowto

    v30 v31  
    635635Even if a full backup of the disk is available, or the disk has been ''ejected'' from a RAID, it may still be worthwhile to reassign the bad block(s) that caused the problem (or simply format the disk (see `sg_format`)) and re-use the disk later (not unlike the way a replacement disk from a manufacturer might be used).
     637=== Automated test and reassign ===
     638There are tools that check the entire hard drive and performs reassignment (by SCSI command or by ordinary write) on bad LBAs.
     640* Seagate's Seachest and openSeaChest provide a [ `openSeaChest_GenericTests`] utility that performs non-smart testing by ordinary read and write (as a result, it can do a "selective" test on SCSI). It can be configured to reassign any bad sectors fount. It understands SCSI error-recovery flags and acts accordingly.
     641* Also in (open)!SeaChest is the `openSeaChest_SMART` utility. It performs SMART self-tests instead of a generic test, but has the same ability to reassign (getting locations from on SMART error log).
     642* There are scripts on the internet that parses `smartctl` output and runs `hdparm`, but with seaChest they should be considered obsolete.
     644Seagate's tools print out a bad LBA list at the end. Since data on a bad sector is probably already lost, it may be a good idea to fix first and then go back to figuring out what was affected. Doing the fix first avoids futile read-retries by the disk, which can take a long time on disks without Error Recovery Control.
    637646== Case Studies ==
    10691078|| Date || Author || Description ||
     1079||2023-05-21||Artoria2e5||Add note about seaChest||
    10701080||2023-05-21||Artoria2e5||Formatting: make the steps bold so they are easier to find & 1 comment||
    10711081||2021-06-12||ttsiodras||Added a note about LUKS-encrypted partitions hosting ext filesystems||