Changes between Version 30 and Version 31 of BadBlockHowto


Ignore:
Timestamp:
Jun 1, 2023, 10:37:04 PM (12 months ago)
Author:
Artoria2e5
Comment:

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

Legend:

Unmodified
Added
Removed
Modified
  • BadBlockHowto

    v30 v31  
    634634
    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).
     636
     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.
     639
     640* Seagate's Seachest and openSeaChest provide a [https://github.com/Seagate/openSeaChest/blob/3fc1fb6154f079e6db4cec35bb8971205a68fc10/docs/openSeaChest_GenericTests.191.txt `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.
     643
     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.
    636645
    637646== Case Studies ==
     
    10681077
    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||