I have an ISO file, which I burned to a CD. Now how can I check if the CD is correctly created? I would like a command that calculate the hash sum that I can use to check with the hash sum I calculate on the ISO file. Ideally the command should:
- Work regardless of the ISO file: that is, I don't want to keep a list of hash sum for each file in the disc, or remember the number of blocks whatever
- Be relatively short: a one-line command is great, a chain of commands which is two line long is OK, a script that span one page is not
- Be fairly efficient: for example,
ddthe disc back to a file then run
md5sumon the file is unacceptable
If there is no answer that cannot satisfy all I will appreciate the nearest match too. Even better if you can tell me why it is not so straight-forward.