Highly mystifying and extremely frustrating experience: MD5SUM changes all the time
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Highly mystifying and extremely frustrating experience: MD5SUM changes all the time
Can anyone explain this to me and give me some suggestions how to go about preventing this from happening?
Here are a few examples.
I download an ISO image, I check the md5sum, everything is fine. I reboot the computer, I check the md5sum of the iso it changed. I have to start the downloading the ISO all over again.
Another example: I download the ISO image. I use dd method to copy it into usb stick. The copy fails. I check the md5sum again, the dd copy function changed the MD5SUM code. I have to start downloading the ISO again.
I sometimes use the unebootin to write image to usb. The copy fails, the md5sum changes once again.
These are not occasional occurrences but happening regularly.
The other day I had to download the ISO image five times to be able to make a bootable usb file. Tremendous waste of resources and of course, tremendous source of frustration.
How come a copy function can changes the ISO image files? What can be done to prevent this from happening.
Well, I dunno. dd or even cp should not be changing the md5sum (that implies changing the contents of the iso). Rebooting certainly shouldn't change it. Something else must be at work there...
As for making a bootable USB stick, there are a few things you can try.
Some BIOSs will balk if the stick isn't formatted FAT32:
Well, I dunno. dd or even cp should not be changing the md5sum (that implies changing the contents of the iso). Rebooting certainly shouldn't change it. Something else must be at work there...
As for making a bootable USB stick, there are a few things you can try.
Some BIOSs will balk if the stick isn't formatted FAT32:
Any file should not change for no reason. Virus or malware may cause this. Data problem like bad drive or cpu or memory might be an issue.
I'd download it and change permissions to only root. Hopefully you are not running under root ever. If so then you need to consider malware.
It could be possible that by some oddity you are testing the download in once case as a single file and in the next a mounted fileystem of an iso. Kind of doubt that.
The only other idea I'd have would be some cache issue.
Forget about bios issues. The only thing here is a file seeming to change. There is no other concern at this point.
Any file should not change for no reason. Virus or malware may cause this. Data problem like bad drive or cpu or memory might be an issue.
I'd download it and change permissions to only root. Hopefully you are not running under root ever. If so then you need to consider malware.
It could be possible that by some oddity you are testing the download in once case as a single file and in the next a mounted fileystem of an iso. Kind of doubt that.
The only other idea I'd have would be some cache issue.
Forget about bios issues. The only thing here is a file seeming to change. There is no other concern at this point.
Thanks jefro,
No, I never ever use it as root.
What can I do now? How to go about troubleshooting it?
Could it be the harddrive. I downloaded on a regular harddrive.
Sadly, I have to say that the same problem exists with the SSD drive as well. It seems that the problem is not the drive because it is unlikely the both mulfunctioning at the same time.
Otherwise, my computer is in perfect shape I've never experienced anything suspicious other then this.
On the regular harddrive I have 8 gpt partitions with 8 different distros installed and all work fine.
I believe that jefro was on the right thank when he mentioned memory as a possible cause. From what I understand, when you do a checksum, the original file is copied into memory for the hash to be created. So, if your memory is bad, you can get a different result every time you do it.
Basically, if a small portion of you ram is bad, you probably won't have problems with most tasks, but if you're working with larger files, you're more likely to hit that bad spot, and if the file is the same size as your RAM, you'd be guaranteed to hit it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.