From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CzxEy-0006od-TT for qemu-devel@nongnu.org; Sat, 12 Feb 2005 08:23:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CzxEt-0006m7-NW for qemu-devel@nongnu.org; Sat, 12 Feb 2005 08:23:13 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzxEt-0006jn-FU for qemu-devel@nongnu.org; Sat, 12 Feb 2005 08:23:11 -0500 Received: from [64.233.184.193] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CzwxO-00032P-Kh for qemu-devel@nongnu.org; Sat, 12 Feb 2005 08:05:06 -0500 Received: by wproxy.gmail.com with SMTP id 71so1057027wra for ; Sat, 12 Feb 2005 05:04:52 -0800 (PST) Message-ID: <2094af0b05021205046ee92589@mail.gmail.com> Date: Sat, 12 Feb 2005 14:04:52 +0100 From: Charles Longeau Subject: Re: [Qemu-devel] image size - OS reports 720mb, but image file is 2.3 gig In-Reply-To: <200502111503.05111.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200502111503.05111.paul@codesourcery.com> Reply-To: Charles Longeau , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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