Chance of equal checksum and changing blocks

David de Lama david.delama at web.de
Tue Jan 27 10:03:30 GMT 2009


>
>Here's an example.  Suppose the block size is 900 bytes (i.e., you
>either specified --block-size=900 or saw blength=900 in the output).
>Then you could use the following command to overwrite blocks 40 through
>45 of the file (counting from 0) with zeros:
>
>dd bs=900 if=/dev/zero of=/home/test.xyz seek=40 count=6
>
>To overwrite with random data, change the if=/dev/zero to
>if=/dev/urandom .
>
>-- 
>Matt




Hi Matt and thanks for the fast answer!

I testet the command to overwrite the desired amount of blocks but it didn't work!
I created a 100MB file with:
dd if=/dev/zero of=/home/test/test.xyz bs=1M count=100

Then I wanted to overwrite 25 blocks:
dd bs=1M if=/dev/urandom of=/home/test.xyz seek=50 count=25

But when I look at the file, its size is now 76.8MB! So all the Blocks after block 75 are deleted! :(
Need help, please!

Thanks,
David




__________________________________________________________________
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
http://entertainment.web.de/de/entertainment/maxdome/index.html



More information about the rsync mailing list