On 2017-08-30 20:44, Wols Lists wrote:
On 28/08/17 14:36, Greg Freemyer wrote:
That you have media errors. On both disks.
You can try to recover with dd*rescue. Then run "badblocks" to try find the bad sectors, then overwrite them, or better, overwrite the entire disk (both). Finally, restore from backup.
I'd be inclined to just "dd if=/dev/zero of=/dev/sdX" over them. Provided there isn't a genuine fault in the drives, this will wipe them and fix any bad sectors.
Yes. However, I noticed more than once that using badblocks to discover where those bad sectors are make them disappear. It apparently caused the disk to remap them. I'm not sure of what happened, but I'm certain that they disappeared from the smartctl output with long test. I also have the theory of not throwing away my disks the first time they have bad sectors. Allow remapping, then keep them under observation. If there are no more bad sectors (after long test, perhaps full dd writeover), I feel safe. If bad sectors keep appearing, then replace fast. I have used disks this way several years after the first error without a new one. But then, I use Seagates. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)