reopen 417673
found 417673 2.11-2
thanks

Hi

Firstly apologies for incorrectly stating that sarge isn't affected 
in my initial report.  I realise that this has caused people to 
waste time focusing on the differences between the sarge and etch 
versions.

On Thursday 05 April 2007 19:32, Florian Weimer wrote:
> I tend to assume that the bug is not exposed on sarge because sarge
> doesn't fsck vfat file systems, right?

Actually sarge will fsck vfat partitions.  But my initial quick reboot
and ls -l test was flawed.  dosfstools wasn't actually installed in my
sarge partition.  

iff dosfstools is installed, fsck.vfat automatically truncates the test 
file.  I have also reproduced this manually (see bottom listing).

I have also tested dosfstools 2.11-2.1+b1.  The binNMU does not fix the
problem.

HTH, and sorry for the incorrect sarge info.

Andrew V.

=======================================================================
[etch]

$ dpkg -l dosfstools |grep ii
ii  dosfstools     2.11-2.1+b1    Utilities to create and check MS-DOS FAT 
filesystems
$ cat /var/log/fsck/checkfs
Log of fsck -C -V -R -A -a
Fri Apr  6 07:23:03 2007

fsck 1.40-WIP (14-Nov-2006)
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /mnt/p4-backup-root] fsck.ext3 -a -C0 /dev/hda6
/dev/hda6: clean, 23207/128520 files, 400468/514048 blocks
[/sbin/fsck.vfat (1) -- /mnt/p4-shared] fsck.vfat -a /dev/hda8
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/sarge_test
  File size is 4294966784 bytes, cluster chain length is 0 bytes.
  Truncating file to 0 bytes.
Performing changes.
/dev/hda8: 61 files, 950193/2076388 clusters
fsck died with exit status 1

Fri Apr  6 07:23:04 2007
----------------
$ sudo umount /dev/hda8
$ sudo fsck.vfat -av /dev/hda8
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     16384 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   8305664 bytes per FAT (= 16222 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 16627712 (sector 32476)
   2076388 data clusters (34019540992 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
  66476907 sectors total
/sarge_test
  File size is 0 bytes, cluster chain length is > 0 bytes.
  Truncating file to 0 bytes.
Reclaiming unconnected clusters.
Checking free cluster summary.
Free cluster summary wrong (1126195 vs. really 1388339)
  Auto-correcting.
Performing changes.
/dev/hda8: 61 files, 688049/2076388 clusters
$ sudo mount /dev/hda8
$ cp /mnt/p4-games/tmp/MS-Virtual-PC/sarge1/Sarge\ Hard\ Disk.vhd 
/mnt/p4-shared/sarge_test
$ ls -l /mnt/p4-shared/sarge_test
-rwxr-xr-x 1 andrew andrew 4294966784 2007-04-06 07:45 /mnt/p4-shared/sarge_test
$ sudo umount /dev/hda8
$ sudo fsck.vfat -av /dev/hda8
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     16384 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   8305664 bytes per FAT (= 16222 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 16627712 (sector 32476)
   2076388 data clusters (34019540992 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
  66476907 sectors total
/sarge_test
  File size is 4294966784 bytes, cluster chain length is 0 bytes.
  Truncating file to 0 bytes.
Reclaiming unconnected clusters.
Checking free cluster summary.
Performing changes.
/dev/hda8: 61 files, 950193/2076388 clusters
$ sudo fsck.vfat -av /dev/hda8
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     16384 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   8305664 bytes per FAT (= 16222 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 16627712 (sector 32476)
   2076388 data clusters (34019540992 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
  66476907 sectors total
/sarge_test
  File size is 0 bytes, cluster chain length is > 0 bytes.
  Truncating file to 0 bytes.
Reclaiming unconnected clusters.
Checking free cluster summary.
Free cluster summary wrong (1126195 vs. really 1388339)
  Auto-correcting.
Performing changes.
/dev/hda8: 61 files, 688049/2076388 clusters
$ sudo mount /dev/hda8
$ ls -l /mnt/p4-shared/sarge_test
-rwxr-xr-x 1 andrew andrew 0 2007-04-06 07:45 /mnt/p4-shared/sarge_test


========================================================
[sarge]

$ cp p4-games/tmp/MS-Virtual-PC/sarge1/Sarge\ Hard\ Disk.vhd 
p4-shared/sarge_test
$ sudo umount /dev/hda8
$ sudo fsck.vfat -av /dev/hda8
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     16384 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   8305664 bytes per FAT (= 16222 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 16627712 (sector 32476)
   2076388 data clusters (34019540992 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
  66476907 sectors total
/sarge_test
  File size is 4294966784 bytes, cluster chain length is 0 bytes.
  Truncating file to 0 bytes.
Reclaiming unconnected clusters.
Checking free cluster summary.
Performing changes.
/dev/hda8: 61 files, 950193/2076388 clusters
$ sudo fsck.vfat -av /dev/hda8
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     16384 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   8305664 bytes per FAT (= 16222 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 16627712 (sector 32476)
   2076388 data clusters (34019540992 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
  66476907 sectors total
/sarge_test
  File size is 0 bytes, cluster chain length is > 0 bytes.
  Truncating file to 0 bytes.
Reclaiming unconnected clusters.
Checking free cluster summary.
Free cluster summary wrong (1126195 vs. really 1388339)
  Auto-correcting.
Performing changes.
/dev/hda8: 61 files, 688049/2076388 clusters



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to