I've been scouring the internet looking for a source on this, but have been unable to find any official documentation about Badblocks - the program that's a part of the standard e2fsprogs.
I'm using Badblocks to validate new drives that I buy, and the output always comes in:
- Read errors
- Write errors
- Compare errors
Badblocks writes data to sectors, and then goes back and checks it to make sure that it was written properly, a test of everything involved. Compare errors pop up when the data written does not match the data read back.
My question is - what exactly is a "read error", and what exactly is a "write error"? How does Badblocks determine these failures? What thresholds are acceptable for a new drive vs. a used drive?