Several ways.
you can use dd
dd if=/dev/sda of=/nameoffile.img <-- might need to add some other params
or using cat my favorte file system destroyer
cat /dev/sda > imagefile.img <-- I wouldent recommend this
I am sure others can be a lot more helpful then me with this one