0

After extending the hard disk sizes on a Windows 2008 server I am trying to revert the compressing of a lot of files on the hard drives. I use the command compact /u /s /i /f /q for it. But it appears to hang on certain files (so I can skip the folder with the files it appears to hang on), so I have to do folder by folder instead of the whole drive in one go. How to find out why it hangs on certain files?

0
0

Due to NTFS Compression limitations I'd suggested to remove compression attribute from the folders first, then from the enclosed files. That is why the folder-by-folder approach works for you. Unfortunately, Explorer interface can't apply that change only to folders and subfolders without files but instead allows to "Apply changes to this folder, subfolders and files". As a workaround you could create a script that searches for subdirectories and removes compression attribute from subdirectories only. Then proceed with files.

3
  • I thinks the folder by folder works for me beacuse i can scip the problem folder/files. – Patrick Aug 16 '19 at 11:50
  • Since NTFS compression can only work with the cluster size 4K or smaller, it could fail handling large files (tens of gigabytes). Are problem files on your server that large? It makes sense to check Event Log also. – mebius99 Aug 16 '19 at 13:46
  • The files are not large, certainly not gigabytes. I will check the event log. – Patrick Aug 19 '19 at 8:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.