Hardware Theory: Read only Scrub of HDD/SSD drive using dd
0
votes
2
answers
73
views
Claim
-----
If drives are capable of hardware controller correction of data upon read, then it is possible to routinely catch and repair silent data corruption by simply reading it.
Premises
--------
* Normally, when a drive (HDD or SSD) writes a sector, it also writes a ECC (checksum) for that sector.
* If later, a bit or two bits are flipped or misread, then the hardware controller can still retrieve the correct data by comparing and correcting it with the ECC.
* If the hardware controller reads a sector with bits that do not match the ECC, and the data is able to be returned read corrected, then the hardware controller may (should?) rewrite that sector data to the drive so that the bits will again match the ECC.
Do these premises appear flawed in any major way? Is there any information out there to help prove or disprove the premises in this claim?
If all of the premises here are correct, then it should be possible to help prevent silent data corruption with a simple cronjob that reads entire drives occasionally (perhaps every couple months).
dd /dev/sda > /dev/null
Asked by Sepero
(1619 rep)
Jun 29, 2024, 07:03 AM
Last activity: Jun 30, 2024, 06:47 PM
Last activity: Jun 30, 2024, 06:47 PM