Shrinking VDI file
Posted: 26. Apr 2009, 15:32
I am using VirtualBox 2.2.0 running on a Windows XP Pro - SP3.
I've installed Windows 2003 - SP2 on a VDI and all works fine. However due to the all the software I've installed and all the MS updates I've got a big VDI file - 15 GB. I am certainly sure the files in the VDI are not using those 15 GB, I can actually see a lot of empty space when I run JKDegrag.
I've been searching around the documentation, forums and Google for a solution to eliminate the non used space of the VDI file and saw ways how to do it... but some of them are outdated (VDItools, VBoxManage with the compact command... or was compress? ...) finally found that the trick could be done with VBoxManage clonehd... after defragmenting with JKDefrag and sdelete -c C:... but after doing that process my new VDI file is almost the same size as the old one...
Does anybody how to do this?
Thanks in advance for your answers.
Angel
I've installed Windows 2003 - SP2 on a VDI and all works fine. However due to the all the software I've installed and all the MS updates I've got a big VDI file - 15 GB. I am certainly sure the files in the VDI are not using those 15 GB, I can actually see a lot of empty space when I run JKDegrag.
I've been searching around the documentation, forums and Google for a solution to eliminate the non used space of the VDI file and saw ways how to do it... but some of them are outdated (VDItools, VBoxManage with the compact command... or was compress? ...) finally found that the trick could be done with VBoxManage clonehd... after defragmenting with JKDefrag and sdelete -c C:... but after doing that process my new VDI file is almost the same size as the old one...
Does anybody how to do this?
Thanks in advance for your answers.
Angel