qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org, Joe Bogner <joebogner@gmail.com>
Subject: Re: [Qemu-devel] image size - OS reports 720mb, but image file is 2.3 gig
Date: Fri, 11 Feb 2005 15:03:04 +0000	[thread overview]
Message-ID: <200502111503.05111.paul@codesourcery.com> (raw)
In-Reply-To: <f3798e1205021106184d141d93@mail.gmail.com>

On Friday 11 February 2005 14:18, Joe Bogner wrote:
> Hello,
>
> I'm trying to create an win2k image that is as small as possible. I'd
> like to be able to copy the image back and forth between machines so
> that I have a complete win2k development image.
>
> According to win2k, the size is about 720mb. Originally win2k was
> reporting the size to be about 1.2gig, but I was able to reduce it
> through NTFS compression.
>
> Here's the dilemna. The physical image file is 2.3gig. I've run a
> qemu-img convert -f qcow <input> -O qcow <output>, which took the
> original 4.5 gig image down to 2.3 gig. With qemu-img compression, I
> was able to get it down to 1.7gig.
>
> Why is there such a large discrepency between what win2k reports and
> the physical image file on disk? Is there anything else I can do to
> reduce it, aside from compressing the physical image file?
>
> 1.7 gig is still quite a bit to be shuffling around between machines.

Even if files have been deleted/compressed the data will still be there on the 
disk. qemu can't tell the difference between "useful" data, and unused data 
that can be discarded. You need to make sure all the unused space on the 
image is actually zeroed.

One way to achieve this would be to shrink the guest partition to its minimum 
size, then create a second partition on the unused space and explicitly zero 
that out (using dd from knoppix if necessary).

Paul

  parent reply	other threads:[~2005-02-11 15:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-11 14:18 [Qemu-devel] image size - OS reports 720mb, but image file is 2.3 gig Joe Bogner
2005-02-11 14:27 ` Mike Kronenberg
2005-02-11 14:56   ` Joe Bogner
2005-02-11 15:03 ` Paul Brook [this message]
2005-02-11 15:59   ` Joe Bogner
2005-02-12 13:04   ` Charles Longeau
2005-02-12 11:20 ` Elefterios Stamatogiannakis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200502111503.05111.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=joebogner@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).