On Mon, Nov 3, 2008 at 10:40 AM, Marc G. Fournier <[EMAIL PROTECTED]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > I have a disk img for qemu that is 4G, but disk usage is only 650M ... due to > how the image is created, it will grow to 4G, but only uses as much as it > needs > ... but, if I run a simple 'cp' on the file, it goes from: > > image: debian.img > file format: raw > virtual size: 4.0G (4294967296 bytes) > disk size: 652M > > to: > > image: dtc.img > file format: raw > virtual size: 4.0G (4294967296 bytes) > disk size: 4.0G > > Is there a way of moving things around such that it *maintains* the holes, > instead of fills them in? > The "qemu-img" program using the "convert" command should do what you want it to. I've used it to make copies of qcow-format disks without having them grow to their max-size.
Matt _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"