From owner-freebsd-usb@FreeBSD.ORG Sat Nov 20 11:19:15 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 853991065672 for ; Sat, 20 Nov 2010 11:19:15 +0000 (UTC) (envelope-from roam@ringlet.net) Received: from erengrad.hoster.bg (erengrad.hoster.bg [77.77.142.9]) by mx1.freebsd.org (Postfix) with ESMTP id 047008FC19 for ; Sat, 20 Nov 2010 11:19:14 +0000 (UTC) Received: from middenheim.hoster.bg (middenheim.hoster.bg [77.77.142.11]) by erengrad.hoster.bg (Postfix) with ESMTP id CD716DC200 for ; Sat, 20 Nov 2010 13:19:13 +0200 (EET) Received: from straylight.ringlet.net (host37.office-vpn.int.hoster.bg [10.100.10.37]) (Authenticated sender: roam@hoster.bg) by mail.hoster.bg (Postfix) with ESMTP id B12D25C2FE for ; Sat, 20 Nov 2010 13:19:10 +0200 (EET) Received: from roam (uid 1000) (envelope-from roam@ringlet.net) id 416009 by straylight.ringlet.net (DragonFly Mail Agent) Sat, 20 Nov 2010 13:19:11 +0200 Date: Sat, 20 Nov 2010 13:19:11 +0200 From: Peter Pentchev To: Matthias Apitz Message-ID: <20101120111911.GA4309@straylight.ringlet.net> References: <20101119143337.GA3023@current.Sisis.de> <201011191537.25867.hselasky@c2i.net> <20101119170259.GA3741@current.Sisis.de> <201011191821.09308.hselasky@c2i.net> <20101119173519.GA3933@current.Sisis.de> <20101119232157.GB4198@straylight.ringlet.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <20101119232157.GB4198@straylight.ringlet.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-MailScanner-ID: B12D25C2FE.50408 X-hoster-MailScanner: Found to be clean X-hoster-MailScanner-SpamCheck: not spam, SpamAssassin (cached, score=0.001, required 10, autolearn=disabled, UNPARSEABLE_RELAY 0.00) X-hoster-MailScanner-From: roam@ringlet.net X-hoster-MailScanner-To: freebsd-usb@freebsd.org X-Spam-Status: No 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: Sat, 20 Nov 2010 11:19:15 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 20, 2010 at 01:21:57AM +0200, Peter Pentchev wrote: > On Fri, Nov 19, 2010 at 06:35:19PM +0100, Matthias Apitz wrote: > > El d=C3=ADa Friday, November 19, 2010 a las 06:21:09PM +0100, Hans Pett= er Selasky escribi=C3=B3: > >=20 > > > > > 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 1= st > > > > 2.000.000 lines of the hexdump: no diff; any better tool to show th= e 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 > Errrr... are you thinking of cmp(1), maybe with the -l option? :) And just for the record, at http://devel.ringlet.net/textproc/block-summari= ze/ or git://gitorious.org/block-summarize/block-summarize.git you may find a simple utility that summarizes cmp(1)'s output per block. (oof, I just found out that I've still left the default blocksize at 32; will change that for version 0.02, for now there's the -b option :) G'luck, Peter --=20 Peter Pentchev roam@space.bg roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Nostalgia ain't what it used to be. --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJM566vAAoJEGUe77AlJ98TnbwP/2lySoP4Qm3gf5Z0LfjMhNae IC1qTiQnIHFNNiSLmtQ+wV4rv/H2xbA23FebreMyC/492IUp+5Vi42wgBlXNctV8 +/04uIYG3oL7snulzqDgYuGidSkfxpNqmUwHdsthYIl6wuH2ErB2wlX1X8e/X7TZ T3iFBt/SWzF9t6Z9z8aceVfUYUzBO5nAQ7VYWH5bOiSPZ6Aa1H8f5S0vJvS683oN a8MbNewoL498+7WEv31pFzS9tLQokwNRGX12ETW7E+0SSyad3HLUwiA+0Vshlcg6 /cH0epzCSQoqhCOK4Rw+i/Xnf7mTnDMcbA78smwUfqqu5Itib6iJ0RtdaWhNEdKw XYc2sFozE5usTJzaVmfaxF1WmGmcjTd9yG9/lDMNeTO9l0OGHFdE/5SnXyZIvLrh 01fZvogVcBMdhQdqLSxbEO0jfE5AgEPwUj85tlvbNe6lYa3JmgNdrxaxo8qrkisJ 7wYuGDwaGZxBXLQZocc5afx8RfzU0h0XUxMl8J67g8JoYDbtcGI9klZUU93mhs5M YkqkPaM7yPSd/DS0QWI+9aebOGck4uumoVzvI84a4BPpXBo7oHQStVT+NMi61NoJ mKGDSJniQ/cM7FTwxn7w+sZBb/wGEC9sOKn6gUB2tAKTl55TJDdixjgTbBE2W5U2 E0kQZaY9TD7z5Hl0st+/ =PMIy -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--