md5sum: strange "FAILED open or read"

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

md5sum: strange "FAILED open or read"

Post by peter_b »

[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:

Code: Select all

39f539c54480480a23d758595847ce9a *audiofile.wav
The .wav file existed, filename was correct, but md5sums threw the following error:
: No such file or directory
: FAILED open or read
md5sum: WARNING: 1 of 1 listed file could not be read
Strange... :shock:

[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
Now, running "md5sum -c" on the "audiofile.wav.md5" worked as expected.
Post Reply