The 1) dd command (see below) or
http://www.linuxquestions.org/questions/linux-newbie-8/learn-the-dd-command-362
2) clonezilla, would be two things to look at for your answer.
http://www.linuxquestions.org/questions/linux-newbie-8/learn-the-dd-command-362
2) clonezilla, would be two things to look at for your answer.