Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Nov 2008 21:27:24 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: copying 'holey' files ...
Message-ID:  <20081103212713.M12114@wojtek.tensor.gdynia.pl>
In-Reply-To: <F051A44CEADE0E79AEA7654E@ganymede.hub.org>
References:  <F051A44CEADE0E79AEA7654E@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> 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:

tar have options for that

>
> 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?
>
> Thx
>
>
> - --
> 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)
>
> iEYEARECAAYFAkkPKWEACgkQ4QvfyHIvDvNJIwCeOTgfxMEf/g/7bnFehXlDZAva
> dCwAoJL8sNsCD+h3PnJAAzebAQFsHhfa
> =fcAm
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081103212713.M12114>