Data Loss with samba shared USB drive
Oliver Fromme
olli at lurza.secnetix.de
Tue Dec 13 08:10:23 PST 2005
David Taylor <davidt at yadt.co.uk> wrote:
> I have a USB drive (SanDisk 1GB flash drive), which I have mounted
> on a windows PC using samba 3.0.
>
> I recently discovered the copy of my files on my USB device were
> corrupted (thankfully I had a backup), being filled entirely with
> 0's (that's ASCII '0', not NUL).
>
> I should probably mention that this is with the drive formatted with
> a FAT filesystem.
That seems to be the problem documented in PR kern/39043:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/39043
It's a long-standing bug that still exists. It affects
FAT32 filesystems exported via Samba. The workaround is
to re-format the drive with UFS instead of FAT. I don't
think anyone is actively working on fixing the bug. :-(
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"To this day, many C programmers believe that 'strong typing'
just means pounding extra hard on the keyboard."
-- Peter van der Linden
More information about the freebsd-stable
mailing list