# Do Md5 check on CD/DVD/HDD

Perform an md5sum on a device, like a CD


dd if=/dev/hdc | md5sum

Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

## 2 thoughts on “Do Md5 check on CD/DVD/HDD”

1. Its always better to use the named devices than absolute devices

md5sum /dev/cdrom
or
md5sum /dev/dvd

Don’t ask me why. Something to do with device access and permissions.

2. And note that it’s usually a good idea to supply a blocksize with something like bs=1M (or even 10M); if you let dd use its default blocksize, you’ll be waiting around forever.