5
I'm testing Windows 10 and one very interesting thing I found is new switches for compact:
Displays or alters the compression of files on NTFS partitions.
COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [/EXE[:algorithm]]
[filename [...]]
…<cut>
/EXE Use compression optimized for executable files which are read
frequently and not modified. Supported algorithms are:
XPRESS4K (fastest) (default)
XPRESS8K
XPRESS16K
LZX (most compact)
I've conducted an experiment:
compression type | size (bytes)
––––––––––––––––––––––––+–––––––––––––
pre-win10:
no compression | 46 652 204
LZNT1 (NTFS default) | 26 230 789
new ones:
LZX | 15 749 125
XPRESS16K | 20 094 981
XPRESS8K | 21 131 269
XPRESS4K (/EXE default) | 23 011 333
non-transparent archivers:
7z 9.38 -tzip -mx=9 | 15 254 240
7z 9.38 -t7z -mx=9 | 7 522 003
as you can see, /EXE:LZX does really good, and, comparing to zip, there's no real tradeoff anymore by compression ration, but NTFS compression has much better availability (it's on-line).
Unfortunately (but unsurprisingly), these files cannot be opened on Windows 8.1 or any previous ones (checked it).
So, my question is, how to decompress files compressed with these "new methods" on previous Windowses? Just copying compact.exe from latest Windows 10 build does not work, unfortunately (but, again, unsurprisingly).
If there's none, then these new methods are basically limited to internal disk, and I'll need bootable Windows 10 media for files salvaging (in emergency).
you can't. Use a Windows 10 ISO to boot into the recovery tools/cmd.exe and run the compact command. – magicandre1981 – 2015-04-29T17:41:22.533
I can even write win10 to-go bootable flash with Rufus. Still requirement to boot something to decompress a file feels somewhat unnatural. – LogicDaemon – 2015-04-29T21:14:41.970
2it's a new feature of Win10, so it requires Win10 to use it. – magicandre1981 – 2015-05-01T08:36:06.697
well, I'm not about fully using this "feature", I'm about data preservation. With no way to decompress data outside of windows 10, I'll rather not use this feature in windows 10 altogether except for the fixed system disk! Because in case I will have no Windows 10 at hand, I won't be able to access my data. @magicandre1981 – LogicDaemon – 2015-05-01T09:31:01.490
1More information here – Moab – 2015-07-06T17:20:52.933
I am sure 7-zip or other 3rd party tool will add support for them. – Moab – 2015-07-06T17:27:41.773