C
C
cibkol2019-09-04 14:49:07
vhd
cibkol, 2019-09-04 14:49:07

How to compress VHDX?

VHDX after compression takes place 14.1 GB, not 10 as the partition itself.
Why does VHDX compress the disk size by the size of the original data, and not by the amount of disk space it takes up?
(All files on disk selected) :
5d6fa3320ac02144260729.jpeg
5d6fa53840ff7097130888.jpeg
After sdelete.exe -zc: size remained the same 14.1
5d6fa5f11a731790310986.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radjah, 2019-09-04
@Radjah

If the image is not dynamic, then nothing.
For dynamic from DISKPART you can do:

select vdisk file=disk.vhdx
compact vdisk

Before that, you can do attach vdiskand go through the partitions with the sdelete program to wipe the free space. Then do detach vdisk
Not help for an encrypted disk.

S
szelga, 2019-09-05
@szelga

https://www.altaro.com/hyper-v/shrink-hyper-v-virt...

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question