Drive Imaging with dd

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri Aug 29 21:09:28 UTC 2003


On Fri, Aug 29, 2003 at 04:41:30PM -0400, Robert Brockway wrote:
> Hmm...good point.  I was trying to get the dd stream non-interrupted
> before sending it to gzip.  How about this:
> 
> gzip -1 `dd if=/dev/hda1 of=shuttlepod.hda1`

So dd send data from disk to a file, then gzip is told to use the
output of dd (number of i/o's done, etc) as command line.  That won't do
anything useful.

Perhaps dd if=/dev/hda1 bs=100k | gzip -1 > result.image.gz

Lennarh Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list