![]() |
MD5 of thumb drive is different than MD5 of image dd'ed onto it
I have tried both these commands. (The file is intended for this purpose.)
Code:
dd if=file.img of=/dev/sdb bs=1M Code:
md5sum /dev/sdb Shouldn't they match? |
No. For example if the size of the image file is smaller then the flash drive you would expect the sum to be different because the dd command will not overwrite the entire drive.
The typical use for md5sum is to verify the integrity of the downloaded file. If the calculated sum matches the posted value then the file has not been changed due to the transfer process. |
Ah! Good point.
This works. The count is the size of the file divided by 512. The result is the same as for the original file. Code:
sudo dd if=/dev/sdb count=990915 | md5sum |
All times are GMT -5. The time now is 12:40 PM. |