From nobody Tue Apr 18 14:52:13 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q16Mf19wTz45Cjy for ; Tue, 18 Apr 2023 14:52:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q16Md2c1Tz4J6p for ; Tue, 18 Apr 2023 14:52:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681829533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f5Qq01yvbqtrLfjCdi/rTX8ODGiBuomyPDVXzIIoc0k=; b=jEsRrtLGFZqT8i6aom0+cd6mFPPkswQsKaYO/CJBdsoYf+Mmy1aL8saxFchaHDKkmb5lOr uG+eM5pSA/GnE/QrUsZWsK3AOrqsTilQEB0IZt0p1eoIMnTie5mwF20D4Tuua29lDpl7NJ mFqb5dazefPJZa0AtrpCt+jftWW5W8WcZVzQatK965D91MD3s2OLNk8A6QbgqEOPx3p07W 6VCritjWm1aeRtGE8tSdoUzVq/iHax+l9TrOkRiheFzEvIPrW6kDcqBATV54LgQBtG15QX GyjzJgCh3yPQw1f6BcTF1bYQeXOHlX/ESZsgau+gxEOUlJvfnTZUZIX1FBQ2CQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681829533; a=rsa-sha256; cv=none; b=HxvPmrG36KvEtij5TDSsE/IrY4s8Smf0Gp11hFYsTfPoj7Kk0Pn0qKa/GNKMjJSMQOk6s8 sdL6yUz16SSxKqJKSXQblHPCxa56cuGIAdU4PJYd4POKIGNwr8OUxsmPBsdtTJ3YDcqsAe Wfetgau7yqhctbMSQoWQtQ2UcXYf8aP7YWuF+6CE5Plb09F4t5tmSFLa66QXVdtHSu7B4n Rw3ht2qFfAwg9p1lQGqhch/ZKCWEBncK6B90jRzwkzEBBPxytLh5Jm7aeeyEKE/66UgkQ0 f28Hsq1OY9ey+sc4cf8oFgeiyf/YcAxQ1lRhzO5qtnmDqus7+S43S6uSmOcgGg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q16Md1QG9zGgn for ; Tue, 18 Apr 2023 14:52:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33IEqDFR046596 for ; Tue, 18 Apr 2023 14:52:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33IEqDMp046595 for bugs@FreeBSD.org; Tue, 18 Apr 2023 14:52:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268005] rsync to FAT32 flash drive gets "Freeing unused sector" errors Date: Tue, 18 Apr 2023 14:52:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: wbe@psr.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268005 --- Comment #3 from wbe@psr.com --- OK, reporting a problem is certainly better than ignoring it, and that expl= ains why it appeared in 13.1, but that leaves the question of why it's happening= at all and fixing that. As a user, what I see is that rsync to an msdosfs flash drive has appeared = to work for years (FreeBSD 9 - 13.0), even repeatedly to the same drive, mixed with mounting it on a Windows machine and adding and deleting files there w= ith no problems evident, so if there was corruption, it didn't cause any appare= nt problem. Yes, that's not proof. :) Now that the issue has been turned in= to an error, I get "remounting read-only due to corruption" when the error occ= urs and the rsync fails rather dramatically. If corruption really has been happening for years, maybe I've just been luc= ky. When this problem arose, I wrote a script that does "find -newer" and "cp -= p" to the flash drive: that doesn't trigger this problem, even now. rsync to a freshly formatted drive (almost all writes) generally works, too. It's rsy= nc when only some files out of many have changed that pretty consistently dies. I've only seen this with MSDOSFS flash drives. The same size and type of f= lash drive with UFS works fine. I have no data regarding non-flash MSDOSFS driv= es. While I've been using Win10 for repairs, I could try fsck(_msdosfs) if that would be more informative and helpful. -WBE --=20 You are receiving this mail because: You are the assignee for the bug.=