dd is a Linux program used to copy a specified number of bytes or blocks:
http://wiki.linuxquestions.org/wiki/Dd
See also ddrescue