Use DD to write specific file recursively

Viewed 4161

I have a hard drive that I want to overwrite, not with null bytes, but with a message.

48 69 64 64 65 6e 20 = "Hidden "

Here's my command thus far:

echo "Hidden " > /myfile
dd if=/myfile of=/dev/sdb bs=1M

Note: I have also tried an assorment of parameters such as count and conv to no avail

Now, this is fine. When I run:

dd if=/dev/sdb | hexdump -C | less

I can see the first few bytes written over, however, the rest is unchanged. I'd like to recursively write "Hidden " to the drive.

3 Answers
Related