Microsoft KB Archive/171892

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 16:36, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


Article ID: 171892

Article Last Modified on 11/1/2006



APPLIES TO

  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition



This article was previously published under Q171892

SYMPTOMS

When you try to compress an NTFS partition using Windows NT Explorer, the option is unavailable while looking at properties or, while using the Command Line utility Compact.exe, you receive the error message:

The file system does not support compression

For example:

H:\compact /c *.* /s


Compressing files in H:\

Apps [ERR]
Apps: The file system does not support compression.

0 files within 1 directories were compressed.
0 total bytes of data are stored in 0 bytes.
The compression ratio is 1.0 to 1.

CAUSE

The partition is a very large partition, and when the partition was formatted, it was formatted with a cluster size greater than the default size of 4,096 bytes. NTFS compression is not supported for allocation unit sizes above 4k bytes

You can verify what the allocation unit size is by doing a CHKDSK at the command prompt and look at the bytes in each allocation unit.

RESOLUTION

To resolve this problem, you must backup your data, then reformat the NTFS partition using a cluster size of 4,096 bytes or less.

You can use one of three methods to reformat:

  • Start Windows NT Explorer, right-click on the drive icon, select format, and then set the allocation unit size to 4,096 or less.

  • Start Disk Administrator, right-click on the partition, select format, and then set the allocation unit size to 4,096 or less.

  • Use the FORMAT command with the /A:size option and format it for an allocation unit size 4,096.

    For example,

    format c: /A:4096


MORE INFORMATION

NTFS needs to process an entire compression unit at a time when writing compressed files, where a compression unit consists of 16 clusters.

Windows NT memory management's largest paging write size is 64 KB and Windows NT limits operations to the maximum memory management transfer size.

This results in a maximum cluster size that can be manipulated within the compression code to 4 KB. [64 KB/16 clusters = 4 KB per cluster]

Some defrag software also uses the same compression code and may have the same limitation of 4 KB clusters.


Additional query words: compress ntfs

Keywords: kbprb kbsetup KB171892