From owner-freebsd-questions@FreeBSD.ORG Fri Oct 31 15:02:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 799891065695 for ; Fri, 31 Oct 2008 15:02:02 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 305378FC12 for ; Fri, 31 Oct 2008 15:02:02 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:59612 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KvvVh-0000Qb-44 for freebsd-questions@freebsd.org; Fri, 31 Oct 2008 16:02:01 +0100 Received: (qmail 61859 invoked from network); 31 Oct 2008 16:01:59 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 31 Oct 2008 16:01:59 +0100 Received: (qmail 31182 invoked by uid 1001); 31 Oct 2008 16:01:59 +0100 Date: Fri, 31 Oct 2008 16:01:58 +0100 From: Erik Trulsson To: Christoph Kukulies Message-ID: <20081031150158.GA31106@owl.midgard.homeip.net> References: <490AC650.3000904@kukulies.org> <20081031110159.GA30244@icarus.home.lan> <490B17D2.6010000@kukulies.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <490B17D2.6010000@kukulies.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1KvvVh-0000Qb-44. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KvvVh-0000Qb-44 5c4ee0385143ec3067f3d8f929b0d6da Cc: Ivan Voras , freebsd-questions@freebsd.org Subject: Re: fastest raw device copy? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 15:02:02 -0000 On Fri, Oct 31, 2008 at 03:36:02PM +0100, Christoph Kukulies wrote: > Ivan Voras schrieb: > > Jeremy Chadwick wrote: > > > >> On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote: > >> > > > > > >>> What would be the fastest way to do that sector by sector copy? I'm > >>> using dd right now, > >>> > >>> dd if=/dev/ad0 of=/dev/da0 bs=10000000 > >>> > > > > > >> On the flip side, your blocksize (bs) there is quite high for no good > >> reason. I'd pick something more like bs=64k or bs=128k. The default > >> (512) is too small for what you want, but 10MBytes is silly. > >> > > > > Not only that, but "10000000" isn't even correct - it needs to be a > > multiple of sector size. Generally, using suffixes will do the right thing: > > > > dd if=/dev/ad0 of=/dev/da0 bs=1m > > > > > OK, I understand that 10000000 isn't good, I just thought it wouldn't > harm. But if it is a transfer rate killer then I'd better think of > typing ^C now. The command is running for 6 hours now. > > An idea how I can check the current amount of transfered byed alongside > the running dd command? Or watch the current i/o rate? Just type a ^T on the terminal dd is running on. This will send a SIGINFO to dd which will cause it to print out that information to the terminal. -- Erik Trulsson ertr1013@student.uu.se