Date: Sat, 20 Nov 2010 13:19:11 +0200 From: Peter Pentchev <roam@ringlet.net> To: Matthias Apitz <guru@unixarea.de> Cc: freebsd-usb@freebsd.org Subject: Re: copying /dev/da0 with dd(1) to file: output differs Message-ID: <20101120111911.GA4309@straylight.ringlet.net> In-Reply-To: <20101119232157.GB4198@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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101120111911.GA4309>