Re: Can i shrink the image file size?

Ross McKay
2009-03-23T08:05:09Z

Alberto Treviño wrote:

>I wrote a simple utility in .Net 2.0 that creates a file in Windows with all
>0's until the drive is full, then deletes it.

Like this?

SDelete:
http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx

>This allows qemu-img to recreate the image and reclaim any sectors that are
>all 0's. [...]
>
> qemu-img convert -O qcow2 win_xp.img win_xp.img.new

Thanks, and to Matthew Palmer; this is a big help in reclaiming qcow2
file size.
--
Ross McKay, Toronto, NSW Australia
"Nobody ever rioted for austerity" - George Monbiot