El día Friday, November 19, 2010 a las 07:16:53PM +0100, Hans Petter Selasky 
escribió:

> > 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.

Will do that tomorrow.

Just an idea: The USB key in question was new and I only created the
file system on it the usual way (fdisk, bsdlabel, newfs). Then I
restored the dump on it (which took 26 hours for 3.1 GByte dump file).
The USB key boots fine, btw. 

Could it be that unwritten/unformatted blocks are read as random data
from that USB key? Should I overwrite the full USB key from /dev/zero?

        matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <g...@unixarea.de> - w http://www.unixarea.de/
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to