Supported formats and file systems
Image formats
Every format listed below can be read and written, and its dynamic disks can be trimmed in place. A trimmed image keeps its format unless its copy is converted: in the window with Format in the Trim dialog, in the command line tool with --format.
| Format | Used by | Notes |
|---|---|---|
| VHDX | Hyper-V | Dynamic and fixed disks. The trimmed image is always dynamic. |
| VHD | Hyper-V, Virtual PC, Azure | Dynamic and fixed disks. |
| VMDK | VMware, VirtualBox | Sparse disks in one file, and disks split into pieces with a descriptor file. A split disk stays split. Disks with a separate flat data file, such as ESXi and preallocated VMware disks, and stream-optimised disks are not supported yet. |
| VDI | VirtualBox | Differencing and undo disks are not supported. |
| qcow2 | QEMU, KVM, Proxmox | Versions 2 and 3. Compressed images, as cloud images are usually distributed, must be converted with qemu-img convert first. |
| Raw | Any | Files with the .img, .raw, .dd or .bin extension. A trimmed raw image is a sparse file of the same length that takes less room on the disk, so it requires a host file system that supports sparse files. |
Snapshot and differencing disks and encrypted images are not trimmed. A base disk that snapshots or linked clones still depend on looks like any other disk and is not detected, so it should be left alone.
Guest file systems
Disks partitioned with MBR or GPT, and disks holding a single file system with no partition table, are supported.
| File system | Free space reclaimed | Page, swap and hibernation files |
|---|---|---|
| NTFS | Yes | Yes |
| ReFS 3.1 to 3.14 | Yes | No |
| FAT12, FAT16, FAT32, exFAT | Yes | Yes |
| ext2, ext3, ext4 | Yes | Swap files |
| XFS | Yes | No |
| btrfs (single device) | Yes | No |
| APFS | Yes | No |
| HFS+ | Yes | Sleep image and swap files |
| Linux swap partition | Kept as it is | Yes |
| LVM, linear and thin volumes | The file systems inside the logical volumes are handled as above. | |
A volume with an unsupported file system, such as ZFS or ReFS before version 3, is copied to the trimmed image exactly as it is and shown as File system not recognised. An encrypted volume is shown as Encrypted and also copied without change because its inner free space cannot be seen from outside. A BitLocker volume can be unlocked and trimmed. The rest of the disk is trimmed normally.