Minimize VirtualBox Hard Drive disk
- by Aviv
I have Ubuntu Server 10.04 TLS installed on a Virtual Machine in a VirtualBox.
The size of the Hard Drive is dynamic growing hard drive and the maximum is 32GB.
At the beginning i had 4GB on the Hard Drive and the size of the .vdi was 4GB.
Lately the size of data on the disk is 15GB but the size of the .vdi is almost 32GB.
Why is that?
How can i pack / optimize / defrag the HD so it will be the same size of the data on the disk?
Thanks.