On Feb 27, 2012, at 4:08 PM, Chris Murphy wrote:

> dd if=/dev/sda3 of=abnew.img
> dd if=/dev/zero of=abnew.img seek=30 \
>   count=1269503 conv=notrunc
> cp --sparse=always abnew.img abnew-sparse.img
> tar jcvSf - abnew-sparse.img > abnew.img abnew-sparse.img.tar.bz2

650002432       abnew.img
634768K

dd if=/dev/zero of=abnew.img bs=1K seek=15 count=634752 conv=notrunc

cp --sparse=always abnew.img abnew-sparse.img

tar jcvSf - abnew-sparse.img > abnew.img abnew-sparse.img.tar.bz2

Resulting file 394 bytes. Posted to
http://bugzilla.redhat.com/797979



Reply via email to