md5sum: strange "FAILED open or read"
Posted: Thu Feb 20, 2014 6:34 pm
[PROBLEM]
I wanted to use "mdsum -c" to verify the MD5 checksum, using a previously generated .md5 textfile.
The contents were one line, formatted as expected:
The .wav file existed, filename was correct, but md5sums threw the following error:
[SOLUTION]
The .md5 file was created by a program running on Windows, and the checksum verification ran on GNU/Linux.
Therefore, the linebreak encoding was different and had to be corrected:
Now, running "md5sum -c" on the "audiofile.wav.md5" worked as expected.
I wanted to use "mdsum -c" to verify the MD5 checksum, using a previously generated .md5 textfile.
The contents were one line, formatted as expected:
Code: Select all
39f539c54480480a23d758595847ce9a *audiofile.wav
Strange...: No such file or directory
: FAILED open or read
md5sum: WARNING: 1 of 1 listed file could not be read
[SOLUTION]
The .md5 file was created by a program running on Windows, and the checksum verification ran on GNU/Linux.
Therefore, the linebreak encoding was different and had to be corrected:
Code: Select all
$ dos2unix audiofile.wav