NTFS compression in WinPE 10 uses all available disk space

The NTFS file system used by Windows has a built-in compression feature known as NTFS compression. With a few clicks, you can compress files, making them take up less space on your hard drive. Best of all, you can still access the files normally. Windows PE  or WinPE is a small operating system used to install, deploy, and repair Windows 10 for desktop editions (Home, Pro, Enterprise, and Education), Windows Server, and other Windows operating systems.

DISM fails with error 112

You may face this issue if you try to create a partition on a system and then try to format the partition by using the /C switch to enable NTFS compression. Now when you create a bootable USB key in WinPE 10 x64 and copy the “test” WIM files to the USB key, boot into WinPE on the test system and try to run the following command: The DISM command is likely to fail with error 112. Here, he partition on the test system is drive C, and the USB key is drive D. Even if you use WinPE 5 x64 in this scenario, you may experience the same issue. The WIM file is split to fit on a FAT32 system. The log files are in the wpe5 and wpe10 subfolders. To work around this issue, Microsoft recommends that you do not format the volume by using NTFS compression and instead use WOF compression by specifying /compact to dism when you apply these images. WOF stands for Windows Overlay Filter. Unlike native NTFS file compression, the Windows Overlay Filter supports only read operations. This means that it doesn’t need to sector-align each compressed chunk, so the compressed data can be packed more tightly together. If you open the file for writing, the Windows Overlay Filter just decompresses the entire file, turning it back into a plain file. The Windows Overlay Filter can take advantage of newer compression algorithms developed over the past 20 years, algorithms that produce better compression ratios can be run in parallel on multiple cores, and which require less CPU and memory for decompression. This mitigates the issue and also makes the system runs faster by using a more efficient compression algorithm.

DISM fails with error 112 when NTFS compression is enabled in WinPE 10 - 34