Re: Can i shrink the image file size?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux