Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 14:52:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 268005] rsync to FAT32 flash drive gets "Freeing unused sector" errors
Message-ID:  <bug-268005-227-DVsK5Wi7z1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268005-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268005-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268005-227-DVsK5Wi7z1>