Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Sep 2022 02:25:23 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        questions@freebsd.org
Subject:   Re: disk non-destructive bad-block write/fix?
Message-ID:  <bad0f5a3-fe1f-e9df-19b0-baeb1e0717f8@holgerdanske.com>
In-Reply-To: <50ee834e-60ef-badb-68ce-f9aa589cd3cc@dreamchaser.org>
References:  <d687eb29-a3fb-7d91-a2c6-c1e4e1dc7e31@dreamchaser.org> <1f639118-4bb2-acfd-ab8e-e3aab9a79c9e@holgerdanske.com> <4e864eaefcb7dbed7bdf59d40920a0ab9b964bf5.camel@riseup.net> <50ee834e-60ef-badb-68ce-f9aa589cd3cc@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/25/22 19:09, Gary Aitken wrote:

> On 9/19/22 11:45 PM, grarpamp wrote:
>> Store a sha256 of all the files, read them back to verify and compare
>> to that.
> 
> Can you post a script that does this?  (Save me (and others?) some effort).


The power tool is mtree(8):

https://www.unix.com/man-page/freebsd/8/mtree/


See this thread for more information:

https://lists.freebsd.org/archives/freebsd-questions/2022-September/001867.html


David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bad0f5a3-fe1f-e9df-19b0-baeb1e0717f8>