Date: Thu, 12 Jan 2006 14:01:38 +0100 From: Ivan Voras <ivoras@fer.hr> To: Christoph Kukulies <kuku@www.kukulies.org> Cc: hackers@freebsd.org Subject: Re: increasing dd disk to disk transfer rate Message-ID: <43C65332.906@fer.hr> In-Reply-To: <200601120948.k0C9mcqR092895@www.kukulies.org> References: <200601120948.k0C9mcqR092895@www.kukulies.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Christoph Kukulies wrote: > Anyway, I decided to buy a second identical hard disk and tried to > block by block copy the old disk to the new one using > > dd if=/dev/ad2 of=/dev/ad3 conv=noerror > > The process is running now since yesterday evening and it is at 53 MB > at a transfer rate of about 1.1 MB/s. The default block size for dd is 512 bytes, meaning dd will read 512 bytes from one disk and write them to the other before reading again. This is SLOW. You need to specify a larger block size to use it effectively, like adding "bs=1m" argument to dd (which will make it use 1 MB blocks). Also, you should probably add "sync" to your "conv" argument, see the manual page of dd. I don't know if using "sync" will produce a full 1 MB of zeros when a bad sector is encountered - I hope someone else will clarify this :) Btw. I don't think this is the right group for your question - in the future use questions@freebsd.org or stable@freebsd.org...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C65332.906>