#685915 fsck: Fixed free cluster summary may not get written back

Package:
dosfstools
Source:
dosfstools
Description:
utilities for making and checking MS-DOS FAT filesystems
Submitter:
patrick295767
Date:
2015-06-04 23:27:03 UTC
Severity:
normal
#685915#5
Date:
2012-08-26 11:10:24 UTC
From:
To:
Hi,

You can find a bug here :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417673


fsck.vfat -a /dev/sdb1 will ask you to correct , and it will do nothing

File size is 23789568 bytes, cluster chain length is 0 bytes.
  Truncating file to 0 bytes.
  Reclaimed 58242 unused clusters (954236928 bytes).
  Free cluster summary wrong (91547 vs. really 215753)
  1) Correct
  2) Don't correct
  ? 1

you can try with fsck.vfat -p   or other but no way to let it fix the
files


The files are still present of the disk pen, but cannot be del or
neither read?
what to do under debian stable for such an issue.

You can repeat, and still same error msg of fsck.vfat



OK. solution?

- here it is :


/tmp/fileb.dat
  File size is 23789568 bytes, cluster chain length is 0 bytes.
    Truncating file to 0 bytes.
    Reclaimed 58242 unused clusters (954236928 bytes).
    Free cluster summary wrong (91547 vs. really 215753)
    1) Correct
    2) Don't correct
    ? 1
    Perform changes ? (y/n) y
    /dev/sdb1: 335 files, 272838/488591 clusters
    root@debian:/home/linux#
    root@debian:/home/linux# fsck.vfat -a /dev/sdb1
    dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
    /dev/sdb1: 335 files, 272838/488591 clusters
    root@debian:/home/linux# fsck.vfat -r /dev/sdb1
    dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
    /dev/sdb1: 335 files, 272838/488591 clusters


then it works with -r since it asks you to perform changes

it ought to work with -p or -a

Please a fix to allow -a to work better

thanks