From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078708811483.tru64-unix-managers.marc@archive.invalid> From: "Warren, John H." Date: Fri, 08 May 1998 21:06:37 +0000 To: tru64-unix-managers Subject: Summary: dd command to copy disk to disk X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078708811483 Question: How long does dd take to copy a 9.1GB disk to another? Answer: I received about 30 replies - thanks to all for hints/suggestions/warnings! General response was that you should never take the default block size. It is too small and takes forever to do anything. (5 hours on the 9GB drive before I killed it, at the default). Responses said to use anything from 64K to 1MB for the block size. Times ranged from 1 1/2 hours to all night. Below is a response that may help others...(Thanks Paul) >From Paul Henderson: Ah yes, I've dd'd more disks than I care to count, and the key is to set the blocksize large. dd(1)'s default blocksize is very small... I don't know the exact number but it is something like 4K. You can speed things up by specifying a larger block size. I use 399K. For a 4GB disk, this is done is about 15 minutes on a PW433. Here's the script I use: #!/bin/csh #--- clonedisk args: # of disk 1, # of disk 2 echo "copy rz$1 to rz$2? to proceed" echo " " <&1 date echo "copying rz$1 to rz$2..." disklabel -z /dev/rz$2c dd -if /dev/rz$1c -of=/dev/rz$2c -bs 399k echo "done!" date