Creating a disk image

With dd

dd if=/dev/sdc of=output.img bs=512 conv=sync,noerror