From: Charles Longeau <clongeau@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] image size - OS reports 720mb, but image file is 2.3 gig
Date: Sat, 12 Feb 2005 14:04:52 +0100 [thread overview]
Message-ID: <2094af0b05021205046ee92589@mail.gmail.com> (raw)
In-Reply-To: <200502111503.05111.paul@codesourcery.com>
Hello,
> 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).
I think there is a easier way to zero unused space on an image or partition.
Mount the image/partition
cd into it
cat /dev/zero > dummy_file
(Wait until error : No space left on device)
rm dummy_file
Hope it helps,
Best regards,
Charles Longeau
next prev parent reply other threads:[~2005-02-12 13:23 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
2005-02-11 15:59 ` Joe Bogner
2005-02-12 13:04 ` Charles Longeau [this message]
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=2094af0b05021205046ee92589@mail.gmail.com \
--to=clongeau@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.