From mboxrd@z Thu Jan 1 00:00:00 1970 From: Piavlo Subject: Re: Can i shrink the image file size? Date: Sat, 21 Mar 2009 21:47:36 +0200 Message-ID: <49C54458.70201@cs.bgu.ac.il> References: <49C519C6.2020908@wonghome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: John Wong Return-path: Received: from smtp2.bgu.ac.il ([132.72.126.39]:44543 "EHLO smtp2.bgu.ac.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755816AbZCUTrk (ORCPT ); Sat, 21 Mar 2009 15:47:40 -0400 In-Reply-To: <49C519C6.2020908@wonghome.net> Sender: kvm-owner@vger.kernel.org List-ID: You can create another smaller disk image and with help of losetup,kpartx and ntfsclone clone the ntfs data to the new image. John Wong wrote: > I create the 30G qcow2 image file, installed winxp, winxp show me the > harddisk used 5G, but the image file size is 12G now. > can i shrink the image file size? how? > my kvm version is: "kvm-84", qemu version is: "0.9.1". > please help, thank you. > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >