Thanks for the tar notes.

I had a look at a few of the compression tools, including tar, and I
couldn't find any options to limit the input to the first X bytes, in
the way that dd allows.

But I did find that I could pipe the output of dd through gzip and then
pipe that back to dd, so the result is a compressed image:

Code:
--------------------
    dd if=/dev/mmcblk0 bs=512 count=2170880 | gzip -c | dd 
of=/mnt/Music/DiskImages/pCPLounge.img.gz
--------------------


I haven't yet tried writing the compressed image file to a fresh SD
card, but I did unzip it and it came back up to same size as an image
created without compression.  Writing the compressed image takes 6 times
longer than writing the uncompressed image (5:30 instead of 0:55), but
the resulting file is half the size, so takes up less disk space and
will rsync over the network more quickly.  Swings and roundabouts.


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110496

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping

Reply via email to