I have tried both these commands. (The file is intended for this purpose.)
Code:
dd if=file.img of=/dev/sdb bs=1M
dd if=file.img of=/dev/sdb
Then I check the md5sum:
Code:
md5sum /dev/sdb
dd if=/dev/sdb bs=1M | md5sum
dd if=/dev/sdb | md5sum
In all cases the md5sum of the device is the same, but it's different from that of the file.
Shouldn't they match?