Steve Jain [MVP] wrote:
> On Wed, 06 Jan 2010 16:42:44 +0100, d d <go_on_try_and_sp@m_me.com>
> wrote:
>
>> d d wrote:
>>> Robert Comer wrote:
>>>> You need to compact the disk.
>>>>
>>>> Here's a pretty good step by step:
>>>>
>>>> http://technolochief.wordpress.com/2...rtual-pc-2007/
>>>>
>>>>
>>> Thanks, I'll report back on the results of that 
>> First attempt wasn't so successful. It reduced from 29GB to 26GB. Being
>> slightly confused as to why this was, I had the idea of going into the
>> VM and using partition magic to create a logical drive in the 8GB of
>> unallocated space I had (from when I reduced the disk size internally
>>from 28GB to 20GB). I formatted it, and then tried compacting again.
>> This time the vhd size reduced from 26GB down to 17GB :-)
>>
>> The benefit I'm getting is that my backups of the VHD file take half as
>> long, and as they take up nearly half as much, I can keep more of them.
>>
>> :-D
>
> it depends on your defragging, if you've got one file stuck out at the
> 26GB mark, the disk won't be compacted below that.
>
> What I've done in the past is use Norton Ghost and do a disk to disk
> image of the VHD. This does the defrag and compact in one step.
> Not sure of other if other imaging tools have the same results...I
> should give CloneZilla a try and see if that works.
>
I did have some files stuck out near the end of the drive (while it was
still 28GB). I tried defragging but it wouldn't move them, because they
weren't fragmented. I defragged about 7 times in a row. It all ended up
blue, just scattered about the drive. That's why I decided to reduce the
size from 28GB to 20GB (as I was only using 17GB of it anyway). I knew
this would bring all the data down together. This meant I had 8GB of
unallocated space on my 28GB drive. When I compacted using the virtual
drive tool, it was still not bringing the VHD size down. It remained at
a high 26GB. Using up that unallocated space (temporarily) to create an
8GB drive (which I formatted) did the trick. The next compact attempt
brought the VHD down to 17GB :-)
I'll now only increase the 20GB drive by a Gig at a time as I need it.
It's made a nice difference to my end-of-day backup (of the VHD files)
times, and I can now keep 4-5 days worth of backups instead of 3.