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?
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).
badblocks can use a read-only mode and also a non-destructive write mode.
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).
"badblocks"? 'pkg rquery %n badblocks' finds no such program.
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
/usr/local/sbin/badblocks was installed by package
e2fsprogs-core-1.47.1
Sorry but I assume it's only for Linux-filesystems.
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.
There are several tools such as smartmontools, ...
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 43:46:02 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,952 |