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

From: Christoph Brinkhaus <c.brinkhaus_at_t-online.de>
Date: Tue, 20 Sep 2022 13:33:31 UTC
Am Mon, Sep 19, 2022 at 09:40:42PM -0600 schrieb Gary Aitken:

Hi Gary,

> I have a system I need to back up and my only available backup disk is
> throwing a lot of errors like:
> 
>    (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 3c fd e5 68 00 00 40 00
>    (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
>    (da0:umass-sim0:0:0:0): Retrying command
>    (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 3c fd e6 68 00 00 20 00
>    (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

A different countermeasure could be to use an external power supply if
possible. I have a USB disk with does not work with the USB +5V supply
but performs well with an external +5V wall type supply.

> 
> Is there a way to exercise the free blocks on a ufs disk and move all
> defective ones to the bad-block list?
> 
> Or is that already happening in the above scenario?
> 
> The command was
>    find . | grep -iv -f ./backup_ignores.txt | cpio -pmd /mnt/backup_20220919/
> 
> The disk is about 40% full but I'm wondering if the whole rest of it is
> trashed.
> 
I wish you good luck,
Christoph