Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual PC

Vista - Hard Disk Size Discrepancy

Reply
 
Old 11-23-2008   #1 (permalink)
Crimsom


 
 

Hard Disk Size Discrepancy

Hello all, I have a VM with a C disk of a about 4Gb. but the .vhd file in the
host was about 7Gb. so I defragmented inside the VM and shuted it down to see
if it improves, now the file is 7.5Gb... what am I doing wrong?

My System SpecsSystem Spec
Old 11-23-2008   #2 (permalink)
Robert Riebisch


 
 

Re: Hard Disk Size Discrepancy

Crimsom wrote:
Quote:

> Hello all, I have a VM with a C disk of a about 4Gb. but the .vhd file in the
> host was about 7Gb. so I defragmented inside the VM and shuted it down to see
> if it improves, now the file is 7.5Gb... what am I doing wrong?
You probably forgot to compact the VHD file via the VPC console.

--
Robert Riebisch
Bitte NUR in der Newsgroup antworten!
Please reply to the Newsgroup ONLY!
My System SpecsSystem Spec
Old 11-23-2008   #3 (permalink)
Cyberiade.it Anonymous Remailer


 
 

Re: Hard Disk Size Discrepancy

In article <34B938B1-8E41-4E92-83EC-C191058ED1B5@xxxxxx>
=?Utf-8?B?Q3JpbXNvbQ==?= <Crimsom@xxxxxx> wrote:
Quote:

>
> Hello all, I have a VM with a C disk of a about 4Gb. but the .vhd file in the
> host was about 7Gb. so I defragmented inside the VM and shuted it down to see
> if it improves, now the file is 7.5Gb... what am I doing wrong?
Defraging the VM does not reduce the size of the VHD file on the host.

My System SpecsSystem Spec
Old 11-23-2008   #4 (permalink)
Crimsom


 
 

Hard Disk Size Discrepancy

Hi Robert, thank you for your answer. I've just compacted it with the Wizard
and it maintains the same size.
If I check "Compress Volume to save disk space" in the host it goes to
6.5Gb, but I am not sure if it will affect the performance and still, it is
far from the 4Gb of used space.
My System SpecsSystem Spec
Old 11-23-2008   #5 (permalink)
Bo Berglund


 
 

Re: Hard Disk Size Discrepancy

On Sun, 23 Nov 2008 10:48:10 -0800, Crimsom
<Crimsom@xxxxxx> wrote:
Quote:

>Hello all, I have a VM with a C disk of a about 4Gb. but the .vhd file in the
>host was about 7Gb. so I defragmented inside the VM and shuted it down to see
>if it improves, now the file is 7.5Gb... what am I doing wrong?
To decrease size of VHD:
1) Delete any unwanted files in the guest and empty recycler.

2) Run the Windows defragmenting tool in the guest

3) Run VPC Precompactor in guest (ISO exists in VMAdditions folder)

4) Shut down guest completely and commit any undo disk

5) Use the VPC console "Virtual disk wizard" to select and compact the
VHD disk.

Now you have shrunk the file on the host side as much as possible.
You might now want to run the Contig program on the VHD to defrag this
single file into one chunk to speed up performance.
AFAIK Contig is a tool made by one of the Microsoft developers but
distributed separately from Microsoft. Works just fine to defrag
single files.

--

Bo Berglund (Sweden)
My System SpecsSystem Spec
Old 11-23-2008   #6 (permalink)
Crimsom


 
 

Re: Hard Disk Size Discrepancy

"Cyberiade.it Anonymous Remailer" wrote:
Quote:

> Defraging the VM does not reduce the size of the VHD file on the host.
Indeed, it enlarges it.
My System SpecsSystem Spec
Old 11-23-2008   #7 (permalink)
Richard Urban


 
 

Re: Hard Disk Size Discrepancy

If you do a lot of install/uninstall of programs for testing purposes the VM
(physical size on disk) seems to grow in size. To solve for this condition
you need to empty the recycle bin (or use CCleaner to get out the crud) and
then defragment. You can then prepare the VM for compaction (use the virtual
disk precompactor from with VM Additions).

After you close down the VM you can use the Virtual Disk Wizard to compact
the VM. I have seen the physical size of the VM decrease by 2-4 gig in
physical size and the aftermath is that the VM seems a bit more responsive
when I again use that particular VM.


--

Richard Urban
Microsoft MVP
Windows Desktop Experience


"Crimsom" <Crimsom@xxxxxx> wrote in message
news:34B938B1-8E41-4E92-83EC-C191058ED1B5@xxxxxx
Quote:

> Hello all, I have a VM with a C disk of a about 4Gb. but the .vhd file in
> the
> host was about 7Gb. so I defragmented inside the VM and shuted it down to
> see
> if it improves, now the file is 7.5Gb... what am I doing wrong?
My System SpecsSystem Spec
Old 11-24-2008   #8 (permalink)
Crimsom


 
 

Hard Disk Size Discrepancy

Thank you very much you all, the Precompactor works! It is 4.6Gb now and if I
use Windows's compression it goes down to 3.5Gb. I'll try out the Contig
program too.

Greetings, Crimsom.
My System SpecsSystem Spec
Old 11-24-2008   #9 (permalink)
Bo Berglund


 
 

Re: Hard Disk Size Discrepancy

On Sun, 23 Nov 2008 21:22:01 -0800, Crimsom
<Crimsom@xxxxxx> wrote:
Quote:

>Thank you very much you all, the Precompactor works! It is 4.6Gb now and if I
>use Windows's compression it goes down to 3.5Gb. I'll try out the Contig
>program too.
>
Note that Contig will not make your VHD any smaller, it just will make
it contiguous on the host drive (fully defragged).
This will sometimes make the guest a bit snappier (depending on how
severly fragmented the VHD file on the host was before).

--

Bo Berglund (Sweden)
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Windows - No Disk error after installing an external hard disk Vista hardware & devices
RE: increase hard disk size Virtual PC
Changing size of Virtual PC 2007 hard disk Virtual PC
Getting the 'cluster size' of your hard disk? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46