Date: Fri, 19 Nov 2010 19:16:53 +0100 From: Hans Petter Selasky <hselasky@c2i.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: <201011191916.53655.hselasky@c2i.net> In-Reply-To: <20101119173519.GA3933@current.Sisis.de> References: <20101119143337.GA3023@current.Sisis.de> <201011191821.09308.hselasky@c2i.net> <20101119173519.GA3933@current.Sisis.de>
index | next in thread | previous in thread | raw e-mail
On Friday 19 November 2010 18:35:19 Matthias Apitz wrote: > 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 Maybe you need to write a small C-program to do that. You can use bcmp() to compare two buffers. --HPShelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011191916.53655.hselasky>
