[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#474118: Doesn't update vfat free cluster count correctly?



On Thu, Apr 03, 2008 at 06:36:30AM -0700, Daniel Burrows wrote:
> Package: linux-image-2.6.24-1-686
> Version: 2.6.24-4
> Severity: normal
> 
>   For about a year, I've been using a small portable MP3 player which
> I synchronize using a mountable VFAT filesystem over USB.  During that
> time, I've had problems with the free cluster count never being
> decreased properly when I delete files (which has the effect of making
> the available free space appear to shrink as I add and remove podcasts).
> I assumed it was due to buggy firmware, since surely someone would have
> noticed this if it was a Linux thing....but I just tested this theory
> and in fact it looks like it's Linux that's corrupting the file-system.
> 
>   Essentially, if I do the sequence of
> 
>     (1) fsck the device
>     (2) mount it
>     (3) transfer files
>     (4) unmount it
>     (5) fsck it again
> 
>   the second fsck will detect a free cluster summary mismatch fairly
> reliably:
> 
> daniel@jeeves:~$ sudo fsck -r /dev/sdd
> fsck 1.40.8 (13-Mar-2008)
> dosfsck 2.11, 12 Mar 2005, FAT32, LFN
> Free cluster summary wrong (51586 vs. really 49855)
> 1) Correct
> 2) Don't correct
> ? 1
> Perform changes ? (y/n) y
> /dev/sdd: 1139 files, 197825/247680 clusters
> 
>   At this point the device has been continuously connected to the
> computer via a USB cable -- I haven't even unplugged it, so that's not a
> factor.
> 
> 
>   I also wonder whether this is related to something else I've noticed:
> sometimes podcasts will get corrupted, for instance by bits of other
> podcasts being mixed with them.  It's as if part of one MP3 file has
> been overwritten with another.
> 
>   JFTR, the device is a Cowon iAUDIO U3.

Does this still occur with more recent kernels?

Cheers,
        Moritz



Reply to: