Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am using dcfldd to wipe a drive and lear forensics. I don't really want to have to deal with the math of the blocks and sectors, and just want dd or dcfldd to write over every possible bit on the drive or device.

As an example I saw this example on a site, too write ones to a drive

dcfldd pattern="11111111" of=/dev/hda bs=4096 conv=sync,notrunc

Why do you need 8 one's(I assume to make a byte) and what does notrunc mean, as well as the sync option. Also with the bs= option, is bigger always better and faster?

I have read the man page but don't understand the keywords.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

According to the dcfldd man page:

sync: pad every input block with NULs to ibs-size; when used with block or unblock, pad with spaces rather than NULs

notrunc: do not truncate the output file

Basically, the man page should be able to answer all your questions.

share|improve this answer
    
Yeah I read the manpage, but have no idea what it means. That's why I was asking. –  Recursion Dec 8 '09 at 22:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.