From owner-freebsd-usb@FreeBSD.ORG Fri Nov 19 17:35:25 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 683D61065672 for ; Fri, 19 Nov 2010 17:35:25 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 232F28FC1E for ; Fri, 19 Nov 2010 17:35:24 +0000 (UTC) Received: from [88.217.17.230] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PJUrq-0003UJ-GP; Fri, 19 Nov 2010 18:35:22 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id oAJHZKjR003970; Fri, 19 Nov 2010 18:35:20 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id oAJHZJxb003969; Fri, 19 Nov 2010 18:35:19 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 19 Nov 2010 18:35:19 +0100 From: Matthias Apitz To: Hans Petter Selasky Message-ID: <20101119173519.GA3933@current.Sisis.de> References: <20101119143337.GA3023@current.Sisis.de> <201011191537.25867.hselasky@c2i.net> <20101119170259.GA3741@current.Sisis.de> <201011191821.09308.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201011191821.09308.hselasky@c2i.net> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.19 (2009-01-05) X-Con-Id: 51246 X-Originating-IP: 88.217.17.230 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 Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 17:35:25 -0000 El día Friday, November 19, 2010 a las 06:21:09PM +0100, Hans Petter Selasky escribió: > > > Can you dump the data into hex using hexdump -C and show us the > > > difference. > > > > 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? > > > > > Usually you would use bs=65536 (Does that change anything)? > > > > Same result: they differ :-( > > > > matthias > > bsdiff ? This will not work with such big files (requires 8x memory of the file): 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 :-)) matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/