File Compression |
Understanding the NTFS File Compression FeatureA feature available when you format a volume with the NTFS file system is file compression. NTFS compression can only be applied to a partition or volume that is formatted with the NTFS file system. Through NTFS, you can create additional storage space for files by compressing either single files, or all files in a NTFS folder. Files in a compressed folder are compressed when folder compression is enabled. Any subfolders included in the compressed folder can also be compressed. You can also compress all files on NTFS volumes. A compressed file is automatically uncompressed when it is accessed. The section of the file being read is the section of the file that is uncompressed. The remainder of the data of the file remains uncompressed in memory. When the file is saved to memory or written to disk, NTFS compresses any new data in the file. With Windows Server 2003, you can compress files that have any length. The only requirement being that the $Data attribute is non-resident. NTFS file compression is available only when your cluster size is 4KB or less on a NTFS volume. The NTFS file compression feature cannot be utilized on files that are encrypted. The NTFS compression algorithm used in NTFS 1.2, NTFS 3.0 and NTFS 3.1 are the same. You can therefore access compressed files from Windows NT 4.0, Windows 2000 and Windows Server 2003. While DoubleSpace, DriveSpace and DriveSpace 3 compression compresses the entire volume, NTFS compression can be restricted to compressing only files, or folders. You do not need to compress the entire volume. NTFS is also faster than the other just mentioned compression techniques. Because Windows Server 2003 is unable to read DriveSpace volumes, you have to decompress these volumes before attempting to upgrade a Windows 9x or Windows Me desktop. You should generally refrain from compressing database files, and from enabling compression on a server. The reason is that compressed files tend to be excessively fragmented, and the defragmenter cannot optimally defragmenter volumes that are compressed. You can use Windows Explorer or My Computer to enable compression or change the compression state of an NTFS volume, or the compression state of individual files or folders on NTFS volumes. You can also use the COMPACT command line tool to compress or decompress files. How moving or copying a file or folder affects a file's compression stateWhen you move or copy files and folders between NTFS volumes or to or from File Allocation Table (FAT) partitions, the file's compression state can change.
How to enable compression or change the compression state of an NTFS volume
How to enable compression or change the compression state of a folder on a NTFS volume
How to enable compression or change the compression state of a file on a NTFS volume
How to change the display colors of compressed files and folders
|
Discuss File Compression in the forums.
You need to login or register to post comments.


