Drive Imaging with dd

Robert Brockway robert-5LEc/6Zm6xCUd8a0hrldnti2O/JbrIOy at public.gmane.org
Fri Aug 29 13:08:41 UTC 2003


On Thu, 28 Aug 2003, Kareem Shehata wrote:

> When just dump the files directly from one drive to another, the
> performance is spot on:
> root at ttyp0[test]# dd if=/dev/hda1 of=shuttlepod.hda1
> 2260624+0 records in
> 2260624+0 records out
> 1157439488 bytes transferred in 64.225880 seconds (18021388 bytes/sec)
>
> But the moment I stick gzip in the middle, is slows down by at least half:
>
> root at ttyp0[test]# dd if=/dev/hda1 | gzip -1 > shuttlepod.hda1.gz

Have you considered:

dd if=/dev/hda1 of=shuttlepod.hda1 | gzip -1

I believe you may see different performance with this.

Also, any particular reason you're using dd rather than tar?

I'm currently developing a CD which will (as one of its functions) backup
Win* boxes (and allow easy recovery).  When I'm finished this will be
freely redistributable.  I'll mention it on list when I'm done if anyone
wants to download it.

Rob

-- 
Robert Brockway B.Sc. email: robert-5LEc/6Zm6xCUd8a0hrldnti2O/JbrIOy at public.gmane.org, zzbrock at uqconnect.net
Linux counter project ID #16440 (http://counter.li.org)
"The earth is but one country and mankind its citizens" -Baha'u'llah
--
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