From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 00:22:45 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 C4B83106564A; Mon, 3 Nov 2008 00:22:45 +0000 (UTC) (envelope-from nikola.lecic@anthesphoria.net) Received: from anthesphoria.net (anthesphoria.net [200.46.204.219]) by mx1.freebsd.org (Postfix) with ESMTP id 4C4998FC1C; Mon, 3 Nov 2008 00:22:45 +0000 (UTC) (envelope-from nikola.lecic@anthesphoria.net) X-Bogosity: No, tests=bogofilter X-DKIM: Sendmail DKIM Filter v2.4.1 anthesphoria.net mA3083iv023345 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anthesphoria.net; s=phero; t=1225670888; bh=mCoWPO3xsOqYce8RpLUcH1zODywKfbHeYfZe631UF /s=; l=1465; h=X-Bogosity:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:X-Face:X-Operating-System: X-OpenPGP-Fingerprint:X-OpenPGP-Preferred-Keyserver:Mime-Version: Content-Type:Content-Transfer-Encoding; b=nM+1x36U3ikhPr5dMFWknZZx JuW5r8OsW6BeCDuG18JZUE7gZ5T4P/JV32kV2u1kxFOM5ho2ZA2sk8WqPMMI/V2QrL1 pO/CwRsKqAzfZPremVw13qi883Xn4Z3X2beh1MYazHy2uiEYJQkY5AkCjWA9Svc/H6I 0u5fL93il3k6Y= Received: from anthesphoria.net (adsl-200-199.eunet.yu [213.198.200.199]) (authenticated bits=0) by anthesphoria.net (8.14.2/8.14.2) with ESMTP id mA3083iv023345 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Nov 2008 01:08:06 +0100 (CET) (envelope-from nikola.lecic@anthesphoria.net) Date: Mon, 3 Nov 2008 01:04:52 +0100 From: Nikola =?UTF-8?B?TGXEjWnEhw==?= To: Ivan Voras , Jeremy Chadwick , Christoph Kukulies Message-ID: <20081103010452.6a1f0521@anthesphoria.net> In-Reply-To: References: <490AC650.3000904@kukulies.org> <20081031110159.GA30244@icarus.home.lan> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) X-Face: pbl6-.[$G'Fi(Ogs2xlXP-V6{3||$Y[LOYs&~GJoikj'cVjcFC[V7du;;0~6nO= [Vi2?uU1Pq~,=Adj@,T:|"`$AF~il]J.Nz#2pU',Y7.{B;m/?{#sO^Dvo$rnmY6] X-Operating-System: FreeBSD 7.0-RELEASE/i386 X-OpenPGP-Fingerprint: FEF3 66AF C90E EDC3 D878 7CDC 956D F4AB A377 1C9B X-OpenPGP-Preferred-Keyserver: x-hkp://pgpkeys.pca.dfn.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: 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: Mon, 03 Nov 2008 00:22:45 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 On Fri, 31 Oct 2008 14:16:38 +0100 Ivan Voras wrote: =20 > Jeremy Chadwick wrote: > > On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote: >=20 > >> What would be the fastest way to do that sector by sector copy? > >> I'm using dd right now, > >> > >> dd if=3D/dev/ad0 of=3D/dev/da0 bs=3D10000000 >=20 > > On the flip side, your blocksize (bs) there is quite high for no > > good reason. I'd pick something more like bs=3D64k or bs=3D128k. The > > default (512) is too small for what you want, but 10MBytes is silly. >=20 > 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: >=20 > dd if=3D/dev/ad0 of=3D/dev/da0 bs=3D1m Would there be anything wrong in cat /dev/ad0 > /dev/da0 ? - --=20 Nikola Le=C4=8Di=C4=87 =3D =D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0 =D0=9B=D0= =B5=D1=87=D0=B8=D1=9B fingerprint : FEF3 66AF C90E EDC3 D878 7CDC 956D F4AB A377 1C9B ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iJwEAQEDAAYFAkkOQCsACgkQ/MM/0rYIoZjjHQQAhXi6gu5JhJjzZmE97buiZ15u Q6AT+qvAja6cALfGAGVrzJEzljfcbe3PnBdOnn1CTYbS62EHaVWLnvOKRGrpvzFE q/WxQ9qCRfcsSx3o6eKxfTM6d4b92ZP+d1iPotmzutQl8TbxlJxNTP9i2b6cDw6a au6zdoApH5A6UxyaJA8=3D =3DoFoQ -----END PGP SIGNATURE-----