From owner-freebsd-usb@FreeBSD.ORG Fri Nov 19 18:16:03 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 823201065672 for ; Fri, 19 Nov 2010 18:16:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 12F628FC12 for ; Fri, 19 Nov 2010 18:16:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=gl0LPzB4YDQuuzpDoHYit7deEV0cOo++Sg28kyvF6vg= c=1 sm=1 a=fsDGt_0-TPkA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=ZnDvwpOZXaLstvJc0roA:9 a=NyDgTqPoXz3CD0a1ggYA:7 a=-ZDLh2HW7Rv9ZGaZ9Z5XHG6IHs8A:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 51010412; Fri, 19 Nov 2010 19:16:01 +0100 From: Hans Petter Selasky To: Matthias Apitz Date: Fri, 19 Nov 2010 19:16:53 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20101119143337.GA3023@current.Sisis.de> <201011191821.09308.hselasky@c2i.net> <20101119173519.GA3933@current.Sisis.de> In-Reply-To: <20101119173519.GA3933@current.Sisis.de> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201011191916.53655.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: copying /dev/da0 with dd(1) to file: output differs X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 18:16:03 -0000 On Friday 19 November 2010 18:35:19 Matthias Apitz wrote: > El d=EDa Friday, November 19, 2010 a las 06:21:09PM +0100, Hans Petter Se= lasky=20 escribi=F3: > > > > Can you dump the data into hex using hexdump -C and show us the > > > > difference. > > >=20 > > > Note: the output of the dd(1) is around 3.8 GByte. I compared the 1st > > > 2.000.000 lines of the hexdump: no diff; any better tool to show the > > > 1st block which differs? > > >=20 > > > > Usually you would use bs=3D65536 (Does that change anything)? > > >=20 > > > Same result: they differ :-( > > >=20 > > > matthias > >=20 > > bsdiff ? >=20 > This will not work with such big files (requires 8x memory of the file): >=20 > I was thinking in a tool just reading each file block by block, > comparing the blocks and noting the 1st diff with block offset number. > (some 10 lines of C code :-)) >=20 > matthias Maybe you need to write a small C-program to do that. You can use bcmp() to compare two buffers. =2D-HPS