Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Don't get to bragging.


comp / comp.unix.bsd.freebsd.misc / Re: data-preserving HDD diagnostic program?

SubjectAuthor
* data-preserving HDD diagnostic program?Winston
+- Re: data-preserving HDD diagnostic program?Winston
+* Re: data-preserving HDD diagnostic program?Steven G. Kargl
|`* re: smartmontools (was Re: data-preserving HDD diagnostic program?)Winston
| `- Re: smartmontools (was Re: data-preserving HDD diagnostic program?)Winston
`* Re: data-preserving HDD diagnostic program?Marco Moock
 `* Re: data-preserving HDD diagnostic program?Winston
  `* Re: data-preserving HDD diagnostic program?Marco Moock
   `* Re: data-preserving HDD diagnostic program?Detlef Sax
    `* Re: data-preserving HDD diagnostic program?Marco Moock
     `- Re: data-preserving HDD diagnostic program?Detlef Sax

1
Subject: data-preserving HDD diagnostic program?
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Thu, 15 Aug 2024 15:29 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: data-preserving HDD diagnostic program?
Date: Thu, 15 Aug 2024 11:29:45 -0400
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <ydzfpdst1y.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Thu, 15 Aug 2024 17:29:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7322ed3cc4f4bb9ea035a2ffb541d2f9";
logging-data="1057735"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+EPsvwlRyy3aJYqk9NQ5W"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:JKaaRfz5Ua/ijjApKAuKgawzk00=
sha1:ETxnim/9l4DYy4lQruV/iNkVC1A=
Mail-Copies-To: never
View all headers

Is there a good FreeBSD HDD diagnostic program?

The SATA III disk drive I'd like to test is either partially failing or
has corrupted data. MS Win10's "repair" of the drive isn't fixing it.
For that and other reasons, I suspect the drive has partially died
(such as maybe 1 head died or something).

In any case, I'd like to test it while preserving the data on it.
E.g., read a block and save its content, write 0101s, verify 0101s,
write 1010s, verify 1010s, write back original content, verify, print
map of what failed.

It's maybe not all that hard to write such a program, but there are
probably things like disabling low-level retries and any FreeBSD
caching I know less about.

In any case, is there such a diagnostic?

TIA,
-WBE

Subject: Re: data-preserving HDD diagnostic program?
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Thu, 15 Aug 2024 15:34 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data-preserving HDD diagnostic program?
Date: Thu, 15 Aug 2024 11:34:35 -0400
Organization: A noiseless patient Spider
Lines: 3
Message-ID: <ydv801sstw.fsf@UBEblock.psr.com>
References: <ydzfpdst1y.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Thu, 15 Aug 2024 17:34:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7322ed3cc4f4bb9ea035a2ffb541d2f9";
logging-data="1069380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XBRnY+yaqwzySIE71HDMA"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:I9WoBG5X/qTkfuTNa5aqnzMVDjA=
sha1:jz6tqyTye38DRC2yEJ9f8GZ8mGw=
Mail-Copies-To: never
View all headers

I should add: yes, I discovered recoverdisk(1) which looks like a good
way to copy the disk if I've bought a replacement.
-WBE

Subject: Re: data-preserving HDD diagnostic program?
From: Steven G. Kargl
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 05:51 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: sgk@REMOVEtroutmask.apl.washington.edu (Steven G. Kargl)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data-preserving HDD diagnostic program?
Date: Fri, 16 Aug 2024 05:51:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <v9mpcq$1b2p4$1@dont-email.me>
References: <ydzfpdst1y.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Aug 2024 07:51:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a89175c2eb0a428418cd15ac33bb13c6";
logging-data="1411876"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kQGX1uwOldzCaWYCItpGY"
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
Cancel-Lock: sha1:lK6CmMVptXBC9uvVka7AIFHPj1s=
View all headers

On Thu, 15 Aug 2024 11:29:45 -0400, Winston wrote:

> Is there a good FreeBSD HDD diagnostic program?
>
> The SATA III disk drive I'd like to test is either partially failing or
> has corrupted data. MS Win10's "repair" of the drive isn't fixing it.
> For that and other reasons, I suspect the drive has partially died
> (such as maybe 1 head died or something).
>
> In any case, I'd like to test it while preserving the data on it.
> E.g., read a block and save its content, write 0101s, verify 0101s,
> write 1010s, verify 1010s, write back original content, verify, print
> map of what failed.
>
> It's maybe not all that hard to write such a program, but there are
> probably things like disabling low-level retries and any FreeBSD
> caching I know less about.
>
> In any case, is there such a diagnostic?
>

Look in /usr/ports/sysutils. There are several tools such as
smartmontools, hdrecover, recoverdm, etc.

--
steve

Subject: Re: data-preserving HDD diagnostic program?
From: Marco Moock
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 13:25 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data-preserving HDD diagnostic program?
Date: Fri, 16 Aug 2024 15:25:42 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <v9nk0m$1eo2c$1@dont-email.me>
References: <ydzfpdst1y.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Aug 2024 15:25:46 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5c3f4fa4ba7a3c78d04e83115955cab6";
logging-data="1531980"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cQPrZ6cWwmjJ1g+qc5TFc"
Cancel-Lock: sha1:ZTWKic1V7ImQkW3OFbp0FwviMYc=
View all headers

On 15.08.2024 um 11:29 Uhr Winston wrote:

> Is there a good FreeBSD HDD diagnostic program?
>
> The SATA III disk drive I'd like to test is either partially failing
> or has corrupted data. MS Win10's "repair" of the drive isn't fixing
> it. For that and other reasons, I suspect the drive has partially died
> (such as maybe 1 head died or something).

First, create an image of your disk NOW if you need anything that is
still on your disk. Next time create an automatic backup, so you don't
depend on such tools.

badblocks can use a read-only mode and also a non-destructive write
mode. Be aware: Your disk can fail at any time, don't do more
experiments without a backup than needed.

--
kind regards
Marco

Send spam to 1723714185muell@cartoonies.org

Subject: Re: data-preserving HDD diagnostic program?
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 14:10 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data-preserving HDD diagnostic program?
Date: Fri, 16 Aug 2024 10:10:13 -0400
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <ydo75ssgmy.fsf@UBEblock.psr.com>
References: <ydzfpdst1y.fsf@UBEblock.psr.com> <v9nk0m$1eo2c$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 16 Aug 2024 16:10:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4711d6dbd9eceb94be566658f1c389c4";
logging-data="1531527"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1843KbSuKqALk1GS0b+XQ2Z"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:rMsM4dWD2//IMTi6nP/8A8sQGIQ=
sha1:k/umEUd8yKKZZbrQPmpjc3EAZfo=
Mail-Copies-To: never
View all headers

I originally asked:
>> Is there a good FreeBSD HDD diagnostic program?

>> The SATA III disk drive I'd like to test is either partially failing
>> or has corrupted data. MS Win10's "repair" of the drive isn't fixing
>> it. For that and other reasons, I suspect the drive has partially died
>> (such as maybe 1 head died or something).

to which Marco Moock <mm+usenet-es@dorfdsl.de> kindly replied:
> badblocks can use a read-only mode and also a non-destructive write mode.

"badblocks"? 'pkg rquery %n badblocks' finds no such program.
-WBE

Subject: Re: data-preserving HDD diagnostic program?
From: Marco Moock
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 14:20 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data-preserving HDD diagnostic program?
Date: Fri, 16 Aug 2024 16:20:07 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <v9nn6o$1eo2c$4@dont-email.me>
References: <ydzfpdst1y.fsf@UBEblock.psr.com>
<v9nk0m$1eo2c$1@dont-email.me>
<ydo75ssgmy.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Aug 2024 16:20:18 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5c3f4fa4ba7a3c78d04e83115955cab6";
logging-data="1531980"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KHHR39Ze2stD7+t+IzH28"
Cancel-Lock: sha1:F+hCa4orpNDEMY1Ki3mmyf3fN5U=
View all headers

On 16.08.2024 um 10:10 Uhr Winston wrote:

> "badblocks"? 'pkg rquery %n badblocks' finds no such program.

I haven't checked, but here it is listed:
https://man.freebsd.org/cgi/man.cgi?query=badblocks&apropos=0&sektion=&manpath=freebsd-ports&format=html#end

--
kind regards
Marco

Send spam to 1723795813muell@cartoonies.org

Subject: Re: data-preserving HDD diagnostic program?
From: Detlef Sax
Newsgroups: comp.unix.bsd.freebsd.misc
Date: Fri, 16 Aug 2024 16:38 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: sax@noart.de (Detlef Sax)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data-preserving HDD diagnostic program?
Date: 16 Aug 2024 16:38:57 GMT
Lines: 21
Message-ID: <li9dl1F8sl0U1@mid.individual.net>
References: <ydzfpdst1y.fsf@UBEblock.psr.com> <v9nk0m$1eo2c$1@dont-email.me>
<ydo75ssgmy.fsf@UBEblock.psr.com> <v9nn6o$1eo2c$4@dont-email.me>
X-Trace: individual.net HfosoMIv1Ori9fjo5tAPyA3HcUqiAZYxObHNyqMVx3lZ1XNbAZ
Cancel-Lock: sha1:kFrWuDn+9EqTu8ZxNrT0Lk7vt3E= sha256:fwFlc7tLrwphA90w2DWZ7a0yeZUJ62TRSEMc3j4oTNo=
User-Agent: slrn/1.0.3 (FreeBSD)
View all headers

On Fri, 16 Aug 2024 16:20:07 +0200, Marco Moock wrote:
> On 16.08.2024 um 10:10 Uhr Winston wrote:
>
>> "badblocks"? 'pkg rquery %n badblocks' finds no such program.
>
> I haven't checked, but here it is listed:
> https://man.freebsd.org/cgi/man.cgi?query=badblocks&apropos=0&sektion=&manpath=freebsd-ports&format=html#end

pkg which /usr/local/sbin/badblocks
/usr/local/sbin/badblocks was installed by package e2fsprogs-core-1.47.1

Sorry but I assume it's only for Linux-filesystems.

sysutils/smartmontools seem to me the right tool to examine a disk on
hardware issues.

Detlef
--
https://www.12schrittefrei.de/
https://www.noart.de/

Subject: Re: data-preserving HDD diagnostic program?
From: Marco Moock
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 19:26 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data-preserving HDD diagnostic program?
Date: Fri, 16 Aug 2024 21:26:08 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <v9o94h$1go6r$2@dont-email.me>
References: <ydzfpdst1y.fsf@UBEblock.psr.com>
<v9nk0m$1eo2c$1@dont-email.me>
<ydo75ssgmy.fsf@UBEblock.psr.com>
<v9nn6o$1eo2c$4@dont-email.me>
<li9dl1F8sl0U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Aug 2024 21:26:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5c3f4fa4ba7a3c78d04e83115955cab6";
logging-data="1597659"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/FBq4ljc4T/Ix+NI8xYqx"
Cancel-Lock: sha1:UKehhRFZ3DduRw3TMgyHOw4Nu9k=
View all headers

On 16.08.2024 um 16:38 Uhr Detlef Sax wrote:

> /usr/local/sbin/badblocks was installed by package
> e2fsprogs-core-1.47.1
>
> Sorry but I assume it's only for Linux-filesystems.

IIRC it simply reads (and optionally) writes to the disk - regardless
of the content.
In the manpage are some options for parsing the read stuff to
filesystem programs, but this seems optional to me.

--
kind regards
Marco

Send spam to 1723819137muell@cartoonies.org

Subject: re: smartmontools (was Re: data-preserving HDD diagnostic program?)
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 22:17 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: re: smartmontools (was Re: data-preserving HDD diagnostic program?)
Date: Fri, 16 Aug 2024 18:17:57 -0400
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <ydjzggru22.fsf_-_@UBEblock.psr.com>
References: <ydzfpdst1y.fsf@UBEblock.psr.com> <v9mpcq$1b2p4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 17 Aug 2024 00:17:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="73c7a7961a0e7663b04d79770afb691a";
logging-data="1677228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GI2M8YInetfK7fj3mmqIP"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:8447RvsxAo4pRcySzu8iWNm66pk=
sha1:Pvd9UA9DTBURXRbW7B6CWHpgZu8=
Mail-Copies-To: never
View all headers

I originally asked:
>> Is there a good FreeBSD HDD diagnostic program?
>>
>> The SATA III disk drive I'd like to test is either partially failing or
>> has corrupted data.

to which "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu>
kindly replied:
> There are several tools such as smartmontools, ...

Wow! I've been interested in finding something that reads and displays
the S.M.A.R.T. disk info for a while, mostly for another disk that died
last year, and I see smartctl does that! Bonus! Thanks,
-WBE

Subject: Re: data-preserving HDD diagnostic program?
From: Detlef Sax
Newsgroups: comp.unix.bsd.freebsd.misc
Date: Sat, 17 Aug 2024 08:25 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: sax@noart.de (Detlef Sax)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data-preserving HDD diagnostic program?
Date: 17 Aug 2024 08:25:44 GMT
Lines: 21
Message-ID: <lib548Fgm25U1@mid.individual.net>
References: <ydzfpdst1y.fsf@UBEblock.psr.com> <v9nk0m$1eo2c$1@dont-email.me>
<ydo75ssgmy.fsf@UBEblock.psr.com> <v9nn6o$1eo2c$4@dont-email.me>
<li9dl1F8sl0U1@mid.individual.net> <v9o94h$1go6r$2@dont-email.me>
X-Trace: individual.net vYfeSaPq7M0KqnaoGXdOmgMey01zMtYv8Gslly39mLOGWUtp8Z
Cancel-Lock: sha1:2eMSxO7JCzcmGB5Au4x9VpfeOvQ= sha256:CnacrNRpzpaMVcxl4AXlM3HdXx6vsQ5Dr5g1NdtSPR4=
User-Agent: slrn/1.0.3 (FreeBSD)
View all headers

On Fri, 16 Aug 2024 21:26:08 +0200, Marco Moock wrote:
> On 16.08.2024 um 16:38 Uhr Detlef Sax wrote:
>
>> /usr/local/sbin/badblocks was installed by package
>> e2fsprogs-core-1.47.1
>>
>> Sorry but I assume it's only for Linux-filesystems.
>
> IIRC it simply reads (and optionally) writes to the disk - regardless
> of the content.
> In the manpage are some options for parsing the read stuff to
> filesystem programs, but this seems optional to me.

Correcting troubles in ufs filesystems is usually a job for fsck (8).
It's shipped together with FreeBSD and is not a 3rd party tool in the
ports intended for linux filesystems.

Detlef
--
https://www.12schrittefrei.de/
https://www.noart.de/

Subject: Re: smartmontools (was Re: data-preserving HDD diagnostic program?)
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Sun, 18 Aug 2024 04:09 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: smartmontools (was Re: data-preserving HDD diagnostic program?)
Date: Sun, 18 Aug 2024 00:09:04 -0400
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <ydcym6sc9r.fsf@UBEblock.psr.com>
References: <ydzfpdst1y.fsf@UBEblock.psr.com> <v9mpcq$1b2p4$1@dont-email.me>
<ydjzggru22.fsf_-_@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sun, 18 Aug 2024 06:09:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c4865b31e3be1fde4216759197079bdf";
logging-data="2385842"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hyC/Ij4x0EvWVcg8RCwUp"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:ZfHLG9X9A8z1KRfdtOdzbCmO/wU=
sha1:8SDTfuvnbX92Zscftmi+WlBYXVg=
Mail-Copies-To: never
View all headers

Getting smartmontools turned out to be even more valuable:

It reports that one of my currently working disk drives expects itself
to die in the next 24 hours!

Thanks again for recommending it!
-WBE

1

rocksolid light 0.9.8
clearnet tor