Shrinking is not working

This is for discussing general topics about how to use VirtualBox.
Post Reply
cd090580
Posts: 13
Joined: 3. Sep 2007, 20:06

Shrinking is not working

Post by cd090580 »

Hello,

I have a virtualdisk of 4 GB dynamic. I installed XP on it to test some programs.

Before shrinking, my vdi file was about 1.75 GB.

I wanted to try this to reduce it's size: "VBoxManage modifyvdi <path to my vdi file> compact"

Before using it I blanked all the unused space with sdelete.

Here is what I've done:

1. sdelete -z
2. exit xp
3. run vboxmanager

When finish my vdi file is now 3,76 GB in size.
How is it possible ????
Is there a way to get it back to about 1.75 GB ?????

Thanks
markba
Posts: 99
Joined: 1. Oct 2007, 23:50
Location: The Netherlands

Post by markba »

I had the same while trying to compact a Ubuntu JeOS guest. Furthermore, there was the problem that writing zero bytes to clear the virtual disk at first increases the disk. This was especially troublesome because a had a dynamic virtual disk of 200 GB (at creation time, it does not cost anything....). I stopped the proces.
tlu
Posts: 54
Joined: 25. Jul 2007, 12:21

Re: Shrinking is not working

Post by tlu »

cd090580 wrote:
Here is what I've done:

1. sdelete -z
Try sedelete -c instead.
Post Reply