Thread View: comp.sys.ibm.pc.hardware.storage
5 messages
5 total messages
Started by bp
Wed, 28 Oct 2026 15:24
Interpreting diskscan results
Author: bp
Date: Wed, 28 Oct 2026 15:24
Date: Wed, 28 Oct 2026 15:24
26 lines
2151 bytes
2151 bytes
A Raspberry Pi 2B self-hosting FreeBSD-current developed what looks like filesystem corruption. Most correspondents suggest that something's wrong with the disk. The only non-destructive test I could find was diskscan, a Linux program available on RasPiOS, which seems to plot read access time vs number of blocks having that access time. Nothing hugely amiss is apparent, but I'm no expert with diskscan. Five scans have been run, three with the disk directly connected to a Pi5 and two using a Pi2B connected via the same powered hub & supply that were used when the corruption developed under FreeBSD. The diskscan output is at http://www.zefox.net/~fbsd/rpi2/disktrouble/ If anybody can offer insights into what the scan results mean it would be much appreciated. If there is better software to use for testing, please indicate. I'm aware of diskroaster on FreeBSD, but that's obligately destructive. Thanks for reading, bob prohaska
Re: Interpreting diskscan results
Author: Jim Jackson
Date: Tue, 03 Nov 2026 20:23
Date: Tue, 03 Nov 2026 20:23
32 lines
2343 bytes
2343 bytes
On 2026-10-28, bp@www.zefox.net <bp@www.zefox.net> wrote: > A Raspberry Pi 2B self-hosting FreeBSD-current developed what > looks like filesystem corruption. Most correspondents suggest > that something's wrong with the disk. The only non-destructive > test I could find was diskscan, a Linux program available on > RasPiOS, which seems to plot read access time vs number of > blocks having that access time. Nothing hugely amiss is apparent, > but I'm no expert with diskscan. is smartctl or equiv. available on FreeBSD? You need to try and check the S.M.A.R.T. stats that disks keep nowadays. You may need to do a web search. > > Five scans have been run, three with the disk directly connected > to a Pi5 and two using a Pi2B connected via the same powered hub > & supply that were used when the corruption developed under FreeBSD. > > The diskscan output is at > http://www.zefox.net/~fbsd/rpi2/disktrouble/ > If anybody can offer insights into what the scan results mean > it would be much appreciated. > > If there is better software to use for testing, please indicate. > I'm aware of diskroaster on FreeBSD, but that's obligately destructive. > > Thanks for reading, > > bob prohaska > > >
Re: Interpreting diskscan results
Author: bp
Date: Wed, 04 Nov 2026 14:57
Date: Wed, 04 Nov 2026 14:57
49 lines
3003 bytes
3003 bytes
Jim Jackson <jj@franjam.org.uk> wrote: > On 2026-10-28, bp@www.zefox.net <bp@www.zefox.net> wrote: >> A Raspberry Pi 2B self-hosting FreeBSD-current developed what >> looks like filesystem corruption. Most correspondents suggest >> that something's wrong with the disk. The only non-destructive >> test I could find was diskscan, a Linux program available on >> RasPiOS, which seems to plot read access time vs number of >> blocks having that access time. Nothing hugely amiss is apparent, >> but I'm no expert with diskscan. > > is smartctl or equiv. available on FreeBSD? You need to try and check > the S.M.A.R.T. stats that disks keep nowadays. You may need to > do a web search. > Yes, smartmontools are available on FreeBSD. The first few attempts reported SMART wasn't supported, but eventually a response came back. It's at http://www.zefox.net/~fbsd/rpi2/disktrouble/smartctl.log A correspondent on the FreeBSD mailing lists pointed out a few bad omens: 1 Raw_Read_Error_Rate 0x000f 083 056 006 Pre-fail Always - 196488790 5 Reallocated_Sector_Ct 0x0033 099 099 036 Pre-fail Always - 386 9 Power_On_Hours 0x0032 069 069 000 Old_age Always - 27847 (91 61 0) I instead paid attention to 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 and didn't consider three years runtime excessively long. Evidently, I was mistaken 8-) , thinking there'd be something like "spare sectors exhausted" or some other explicit message that the disk was EOL. Somewhat curiously, both diskscan and dd if=/dev/da1 of=/dev/null seemed to indicate no explicit errors. Diskroaster, a FreeBSD port, reported five errors. Thanks for writing, bob prohaska
Re: Interpreting diskscan results
Author: Computer Nerd Kev
Date: Thu, 12 Nov 2026 20:49
Date: Thu, 12 Nov 2026 20:49
29 lines
1749 bytes
1749 bytes
bp@www.zefox.net wrote: > Evidently, I was mistaken 8-) , thinking there'd be something > like "spare sectors exhausted" or some other explicit message > that the disk was EOL. > > Somewhat curiously, both diskscan and dd if=/dev/da1 of=/dev/null > seemed to indicate no explicit errors. Diskroaster, a FreeBSD port, > reported five errors. A bit late, but for a more conclusive go/no-go answer from SMART I'd run a self-test and check whether it fails: smartctl -t long /dev/da It'll say when it expects to finish, after which time you can check the result with (ignoring the old self-test logs with earlier lifetime hours): smartctl -l selftest /dev/da Or I suggest running that every so often before the extimated completion time to check if it's failed early with errors (note that it might not show the new test in the log until it's completed/failed). From the looks of things, I'd expect that drive to fail with an error fairly quickly. -- __ __ #_ < |\| |< _#
Re: Interpreting diskscan results
Author: bp
Date: Sat, 14 Nov 2026 01:54
Date: Sat, 14 Nov 2026 01:54
49 lines
3133 bytes
3133 bytes
Computer Nerd Kev <not@telling.you.invalid> wrote: > bp@www.zefox.net wrote: >> Evidently, I was mistaken 8-) , thinking there'd be something >> like "spare sectors exhausted" or some other explicit message >> that the disk was EOL. >> >> Somewhat curiously, both diskscan and dd if=/dev/da1 of=/dev/null >> seemed to indicate no explicit errors. Diskroaster, a FreeBSD port, >> reported five errors. > > A bit late, but for a more conclusive go/no-go answer from SMART > I'd run a self-test and check whether it fails: > > smartctl -t long /dev/da > > It'll say when it expects to finish, after which time you can check > the result with (ignoring the old self-test logs with earlier > lifetime hours): > > smartctl -l selftest /dev/da > > Or I suggest running that every so often before the extimated > completion time to check if it's failed early with errors (note > that it might not show the new test in the log until it's > completed/failed). From the looks of things, I'd expect that > drive to fail with an error fairly quickly. > In the end I could not get a clear failure indication from either diskscan or SMART self-testing. Eventually it developed that the filesystem wouldn't stay clean, even after running fsck -fy. I tried diskroaster, a destructive test in the FreeBSD ports collection. It clearly reported four bad sectors. I imagine that suggests the problem is with writing the disk, not reading it. Is there a way to get the disk to do a destructive self-test that reassigns the unwritable blocks, analgous to an old-fashioned low-level format? I'd not want to use the disk for anything important but it would be an interesting experiment if it can be done. I vaguely recall that low-level formatting can't, or at least shouldn't, be done outside the factory on an LBA device, but there's nothing much to lose at this point. Thanks for writing! bob prohaska
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads