Re: disk non-destructive bad-block write/fix?

From: Graham Perrin <grahamperrin_at_freebsd.org>
Date: Wed, 21 Sep 2022 00:33:35 UTC
On 20/09/2022 04:40, Gary Aitken wrote:

> … my only available backup disk is throwing a lot of errors like:
>
> …
>
> Is there a way to exercise the free blocks

stressdisk

<https://www.freshports.org/sysutils/stressdisk/>

Note: I should _not_ stress (exercise) a disk that is my only available 
backup, if there's the risk of worsening the situation (without 
certainty of the cause(s) of errors).

stressdisk can be very handy, in rare situations where you truly want to 
temporarily fill a file system, however it's not really a fit for "disk 
non-destructive bad-block write/fix".

There's also this feature of HDAT2 <https://www.hdat2.com/>, for an 
entire disk (not just a file system):

* Detect and fix bad sectors

Again, I should not use it if there's the risk of worsening the situation.

HTH