Tuesday 22 November 2016

Linux: Verify a burned CD/DVD with the image file used for burning

So I just burned a CD sometime ago and I am not sure if it still works. A quick and easy way to test it's against the original ISO would be to something like this:

thanassis:Downloads/ $ dd if=/dev/sr1 | md5sum                                                                                                                                     [20:46:28]
1366016+0 records in
1366016+0 records out
699400192 bytes (699 MB, 667 MiB) copied, 265,145 s, 2,6 MB/s
d2d939ca0e65816790375f6826e4032f  -
thanassis:Downloads/ $ md5sum ubuntu-16.04.1-server-amd64.iso                                                                                                                     [20:57:07]
d2d939ca0e65816790375f6826e4032f  ubuntu-16.04.1-server-amd64.iso

... and I 'm good to go.

Note: All credit for this solution goes to theSuperusr Community.