🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.current
Article #101

Re: Filesystem errors on armv7 -current

#101
From: Paul Mather
Date: Mon, 26 Oct 2026 18:03
67 lines
6283 bytes
On Oct 25, 2026, at 9:50 pm, bob prohaska <fbsd@www.zefox.net> wrote:

> On Fri, Oct 23, 2026 at 06:27:43PM -0700, bob prohaska wrote:
>> 
>> The least-intrusive change I can make at this point is replace the
>> wallwart on the powered hub running the hard disk. That will change
>> only one connection, the barrel jack on the hub. Wiggling it once
>> raised the measured voltage on the hub by about 100 mV, so that
>> disturbance is already taken into account.
> 
> Turns out the hub barrel jack is ever-so-slightly smaller than that 
> on the  spare wallwart.... Meanwhile, no hint of faults emerged
> while watching the original power supply in action with a 'scope.
> 
>> The machine is still running buildworld at the building libraries
>> stage. I'll wait for it to finish or crash before changing things.
> 
> Buildworld stopped again, same sort of filesystem errors. It looks
> like time to test the disk, but it isn't smartmontools compatible.
> 
> Can anybody suggest a disk testing utility that's non-destructive
> and usable on either FreeBSD or RasPiOS? I've already compiled
> disroaster, but it's obligately destructive, so not ideal.


Just seeing whether the drive generates errors when reading can be instructive because it suggests the health of the drive is not good.  You can try to read the whole drive just using the builtin FreeBSD "dd" command.  Alternatively, you can use some of the versions in FreeBSD Ports that are slanted towards digital forensics acquisition, like sysutils/dc3dd, sysutils/dcfldd, sysutils/dd_rescue, and sysutils/ddrescue.  (These focus more on skipping past errors, or trying especially hard to read blocks with errors.)

If you can attach the drive to a controller that lets you read the S.M.A.R.T. data, that could be instructive.  Values of Reallocated_Sector_Ct, Current_Pending_Sector, and Offline_Uncorrectable attributes can be illuminating in giving an idea of the overall health of the drive.  A non-zero value for Reallocated_Sector_Ct would indicate bad sectors on the drive that have been successfully reallocated.  IIRC, a non-zero value for Current_Pending_Sector would indicate an ongoing attempt to reallocate a bad sector that could point towards the drive being out of spare sectors with which to reallocate.


> I'm trying a linux program called diskscan, but it just passively
> reads the disk. A read/write/read/restore strategy would be more
> informative, even if more risky.


A read/write/restore strategy is very risky.  If the drive is failing, this could lead to more corruption if the "restore" segment of the triad of operations fails.  IMHO, the only way to test the write health of a suspect drive that is in service is to copy it to a replacement drive and then remove the source drive from service and test it separately.  Even read-testing a drive can impose a load on it that could provoke it to fail.

Cheers,

Paul.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <10CE42D2-3A5A-4320-999A-ED197CC41028@gromit.dlib.vt.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <at6x2CZDnUGArq4O@www.zefox.net> <>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Paul Mather <paul@gromit.dlib.vt.edu>
Newsgroups: muc.lists.freebsd.current
Subject: Re: Filesystem errors on armv7 -current
Date: Mon, 26 Oct 2026 14:03:12 -0400
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-current@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <10CE42D2-3A5A-4320-999A-ED197CC41028@gromit.dlib.vt.edu>
References: <at6x2CZDnUGArq4O@www.zefox.net> <>
MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="25322"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1793037832; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-owner:list-unsubscribe:list-subscribe:list-post;
	bh=16VRRsY4akiKAUkozQrHydarGRHEeHrDdyO6gI2V7uE=;
	b=DmB0r1gq6FmvOyj3ExrKGzf044weSgPdrMYdUSOxkwNP/15Vd/frefUKxoks7gtgA2JDt8
	18SF70COyGB8U+usMPnlrTVEd2Qp7a9Aph1jPlryp2VTtHb05NddHXpohFdYcRrB0yqmmm
	YP/kV8qUEPpE0juShdx+HGxi1oGwzCNCPQec3Q3Ln20dWehz2aSEKHUJN05X2bUVDDO7b2
	G9ahUgmbCOtQgNdBY7RjvmAyCYYIHHIgaxsxlXAfrVqrzOqX+phRGW+sbAWoS3hOto+H6l
	niRuKbT56tr9qRI+uxPXepSPuMSugHrRRHKdRSRUlTin3/nvtAL04Gm22e6MQg==
X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=none;
	spf=none (mx1.freebsd.org: domain of paul@gromit.dlib.vt.edu has no SPF policy when checking 2607:b400:a:8a80:2:5000:5555:5555) smtp.mailfrom=paul@gromit.dlib.vt.edu;
	dmarc=fail reason="No valid SPF, No valid DKIM" header.from=vt.edu (policy=none)
Precedence: list
In-Reply-To: <at6x2CZDnUGArq4O@www.zefox.net>
X-Spamd-Bar: /
X-Spamd-Result: default: False [0.70 / 15.00];
	MV_CASE(0.50)[];
	ONCE_RECEIVED(0.20)[];
	MIME_GOOD(-0.10)[text/plain];
	DMARC_POLICY_SOFTFAIL(0.10)[vt.edu : No valid SPF, No valid DKIM,none];
	R_SPF_NA(0.00)[no SPF record];
	MID_RHS_MATCH_FROM(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	ASN(0.00)[asn:1312, ipnet:2607:b400::/40, country:US];
	ARC_NA(0.00)[];
	MIME_TRACE(0.00)[0:+];
	FREEFALL_USER(0.00)[paul];
	R_DKIM_NA(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-current@freebsd.org];
	TO_DN_ALL(0.00)[];
	FROM_HAS_DN(0.00)[];
	FREEMAIL_CC(0.00)[yahoo.com,freebsd.org];
	RCVD_COUNT_ONE(0.00)[1];
	FROM_EQ_ENVFROM(0.00)[];
	RCVD_TLS_ALL(0.00)[];
	TO_MATCH_ENVRCPT_SOME(0.00)[];
	RCPT_COUNT_THREE(0.00)[3]
X-Rspamd-Queue-Id: 4jD1hM16Kjz4PfV
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes