Linux.com

Re:PartImage

Posted by: Anonymous Coward on November 18, 2005 02:45 AM
I came up with a good solution for not having nc+dd copy empty disk space. Use DD on the live machine to fill up unallocated space with zeros, and then pipe the copy through gzip with --fast. So

live machine$ dd if=/dev/zero of=/DELETEME
live machine$ rm<nobr> <wbr></nobr>/DELETEME
[repeat per partition]

then,

knoppix# dd if=/dev/hda | gzip --fast | nc<nobr> <wbr></nobr>...

It takes a while, but it's good for making compressed disk images.

#

Return to CLI Magic: netcat