Date: Mon, 03 Nov 2008 13:12:30 -0400 From: "Marc G. Fournier" <scrappy@hub.org> To: Matt <datahead4@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: copying 'holey' files ... Message-ID: <A91B4FEF7650D28DDD907DC8@ganymede.hub.org> In-Reply-To: <cd6b4a5b0811030904r77f1e664jd89bdb1b7400c4c9@mail.gmail.com> References: <F051A44CEADE0E79AEA7654E@ganymede.hub.org> <cd6b4a5b0811030904r77f1e664jd89bdb1b7400c4c9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sweet, never even thought about doing that ... thank you ... - --On Monday, November 03, 2008 11:04:22 -0600 Matt <datahead4@gmail.com> wrote: > On Mon, Nov 3, 2008 at 10:40 AM, Marc G. Fournier <scrappy@hub.org> 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 - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkPMP4ACgkQ4QvfyHIvDvOvRACgyVOSp3nqJgqFQE7Ilm4IXbUZ d+YAnj2lddYnGcLMBzSkXjbk0onRfnZY =+Ft+ -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A91B4FEF7650D28DDD907DC8>