Re: Can i shrink the image file size?

Piavlo
2009-03-21T19:47:40Z

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
>