MD5Sum - How do I compute the MD5Sum of a downloaded iso?
Was running Windows 8.1 Pro till it got sick and died. I managed to install Ubuntu 14.04 on my sick computer over Windows wiping it out.
I first installed Linux Mint and downloaded Ubuntu. Somehow I was able to verify checksums or MD5Sums. I think my age is catching up with me and my mind doesn't work like it used to. How do I find the MD5sum of a downloaded iso file. I've downloaded debian-7.8.0-amd64-DVD-1-3.iso's and both update DVD's as well. I've located the MD5Sum files on the Mirror. Now, how do I compare those numbers/letters with the iso's I've downloaded. I know I need to run a program to compute the MD5 but can't find it in the menu. I see I need to read man pages and info pages, but can't find them either. A brain is a terrible thing to waste, but mine needs help. Thanks, Stephen |
The program is called md5sum. Open a terminal and run:
Code:
md5sum file.iso Code:
md5sum -c file.iso.md5 |
Also, if I run MD5Sum in a Terminal Window, do I need to be in the same directory where the files are located?
How do I compare the new created MD5Sum with the one posted on the Mirror? Do I just have to read it letter by letter, or is that an input for the MD5Sum program? I know enough about Linux to be dangereous. I appreciate any guidance you may provide. Thanks, |
Yes you should be in the same directory as the files.
See my edit on the -c flag. |
Here is the command I entered at the terminal and the result.
stephen@stephen:~/Downloads$ md5sum debian-update-7.8.0-amd64-DVD-1.iso.MD5SUMS md5sum: debian-update-7.8.0-amd64-DVD-1.iso.MD5SUMS: No such file or directory Here is the other info in this Directory; stephen@stephen:~/Downloads$ ls Audio Disc.toc debian-7.8.0-amd64-DVD-3.iso Audio Disc.toc.bin debian-update-7.8.0-amd64-DVD-1.iso debian-7.8.0-amd64-DVD-1.iso debian-update-7.8.0-amd64-DVD-2.iso debian-7.8.0-amd64-DVD-2.iso MD5SUMS |
stephen@stephen:~/Downloads$ md5sum -c debian-update-7.8.0-amd64-DVD-1.iso.MD5SUMS
md5sum: debian-update-7.8.0-amd64-DVD-1.iso.MD5SUMS: No such file or directory stephen@stephen:~/Downloads$ |
As you can see from the output of ls, there is no file called "debian-update-7.8.0-amd64-DVD-1.iso.MD5SUMS". The file is just called "MD5SUMS".
|
stephen@stephen:~/Downloads$ md5sum -c file.iso.md5
md5sum: file.iso.md5: No such file or directory stephen@stephen:~/Downloads$ |
stephen@stephen:~/Downloads$ md5sum -c file.iso.MD5SUMS
md5sum: file.iso.MD5SUMS: No such file or directory stephen@stephen:~/Downloads$ I'm not trying to be difficult. I know Linux is short on explaining errors. I know the file I want checked is in this directory as is the mdd5sums file. I'm just having difficulty with it. Thank you for trying to assist me. |
It's not short on explaining errors, it's telling you exactly what the error is. You keep typing in random names that don't exist. You might as well be running "md5sum -c thisisnotafile.andisgoingtofail".
Typing random non-existent file names into the terminal will accomplish nothing. As I said before, and as you can see from the output of the "ls" you ran earlier, the file is called "MD5SUMS". Code:
md5sum -c MD5SUMS Code:
$ man md5sum Code:
info coreutils 'md5sum invocation' Code:
'-c' |
Here is the output of the last attempt. It looks like we are making headway. I use copy and paste as much as possible to eliminate typos.
stephen@stephen:~/Downloads$ md5sum -c MD5SUMS debian-7.8.0-amd64-DVD-1.iso: OK md5sum: debian-7.8.0-amd64-DVD-10.iso: No such file or directory debian-7.8.0-amd64-DVD-10.iso: FAILED open or read debian-7.8.0-amd64-DVD-2.iso: OK debian-7.8.0-amd64-DVD-3.iso: OK md5sum: debian-7.8.0-amd64-DVD-4.iso: No such file or directory debian-7.8.0-amd64-DVD-4.iso: FAILED open or read md5sum: debian-7.8.0-amd64-DVD-5.iso: No such file or directory debian-7.8.0-amd64-DVD-5.iso: FAILED open or read md5sum: debian-7.8.0-amd64-DVD-6.iso: No such file or directory debian-7.8.0-amd64-DVD-6.iso: FAILED open or read md5sum: debian-7.8.0-amd64-DVD-7.iso: No such file or directory debian-7.8.0-amd64-DVD-7.iso: FAILED open or read md5sum: debian-7.8.0-amd64-DVD-8.iso: No such file or directory debian-7.8.0-amd64-DVD-8.iso: FAILED open or read md5sum: debian-7.8.0-amd64-DVD-9.iso: No such file or directory debian-7.8.0-amd64-DVD-9.iso: FAILED open or read md5sum: WARNING: 7 listed files could not be read stephen@stephen:~/Downloads$ ls Audio Disc.toc debian-7.8.0-amd64-DVD-3.iso Audio Disc.toc.bin debian-update-7.8.0-amd64-DVD-1.iso debian-7.8.0-amd64-DVD-1.iso debian-update-7.8.0-amd64-DVD-2.iso debian-7.8.0-amd64-DVD-2.iso MD5SUMS stephen@stephen:~/Downloads$ Also included ls of directory. |
So debian-7.8.0-amd64-DVD-1.iso, debian-7.8.0-amd64-DVD-2.iso, and debian-7.8.0-amd64-DVD-3.iso all checked out ok. You didn't download any of the others, so it just printed an error saying it couldn't find them. For some reason the update ISOs you downloaded weren't in the MD5SUMS file.
|
I used gedit to open the MD5SUMS file and learned that I only have iso's for 1,2 and 3. The md5's for the update iso's are not included. Looks like 1,2 and 3 are all OK.
Thank you for your help. It is much appreciated. Stephen |
Here is how to do it without the MD5SUMS file:
1) Copy the correct md5sum number from the website into a new text file in your text editor - EXAMPLE: 0307ffcd5046c176599904193899426e 2) In your File Manager, right-click on the folder containing the .iso file you downloaded, then chose Open In Terminal 3) In the terminal, enter the command: md5sum debian-update-7.8.0-amd64-DVD-1.iso 4) After a few seconds, it will give you the number. Copy the number to your text file, placing it under the original number, so that you can compare them at a glance. EXAMPLE: 0307ffcd5046c176599904193899426e 0307ffcd5046c176599904193899426e |
All times are GMT -5. The time now is 05:43 AM. |