> >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 -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
