Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBEMv-0002Rz-6X for qemu-devel@nongnu.org; Sat, 25 Sep 2004 11:21:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBEMt-0002RE-Cq for qemu-devel@nongnu.org; Sat, 25 Sep 2004 11:21:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBEMt-0002R4-7n for qemu-devel@nongnu.org; Sat, 25 Sep 2004 11:21:47 -0400 Received: from [131.111.8.138] (helo=ppsw-8.csi.cam.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CBEGV-00013H-4H for qemu-devel@nongnu.org; Sat, 25 Sep 2004 11:15:11 -0400 From: "Mark A. Williamson" Subject: Re: [Qemu-devel] qemu dd sizes Date: Sat, 25 Sep 2004 16:17:22 +0100 References: <20040925021551.1B4643DDA@xprdmailfe12.nwk.excite.com> In-Reply-To: <20040925021551.1B4643DDA@xprdmailfe12.nwk.excite.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409251617.22565.mark.williamson@cl.cam.ac.uk> Sender: maw48@hermes.cam.ac.uk Reply-To: mark.williamson@cl.cam.ac.uk, 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, jmfguy@excite.com > If the size of the > original disk is 20 gb but there is only 2 gb of data on the disk, how can > I make the image size smaller? If you're trying to save space, I'd advise you to check the output of ls -ls. The -s flag also prints out the actual space taken on disk, as well as the nominal length of the file usually output by -l. Most filesystems will represent zero-filled areas of a file with a small constant amount of on-disk space. If you're only using 2GB then the actual on disk size might only be just over 2GB. As you add more data, the on disk size will grow to fit. It's worth checking this before you bother resizing! Cheers, Mark > > > > > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel