Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I am switching an old Gentoo machine over to Kubuntu for my father to use, and since I had a 500Gb external drive available to me at the time, I decided to use dd to make a complete copy of his harddisk first. I used the following command:
dd if=/dev/hda of=dbackup.img bs=1M
The copy went just fine, with dd reporting no errors.
I then checksummed both the harddisk I had just imaged and the backup image. The checksums were different!
I did md5sum /dev/hda > disk.txt for the harddisk, and md5sum dbackup.img > backup.txt for the image.
Thinking it to be a fluke, I ran md5sum again with ">>" in place of ">" to append to the checksum files I already had.
Lo and behold, the harddisk returned a DIFFERENT CHECKSUM! But the backup image reported the same checksum as before.
I tried this twice more, and each time the backup image came out with the same checksum, and the HDD came out with a different one!
What on earth could this be? I ran badblocks on the harddisk, and it reported no problems in non-destructive read-only mode, and I know it can't be a memory problem or the checksum of the image wouldn't come out the same each time.
The behavior is the same in binary mode, in case you are wondering.
Hmmm...well knoppix isn't indicating that it is mounted. No partitions on /dev/hda show up when I type "mount." So I *think* I'm all right.
Any other ideas?
[edit]
I feel I should also mention that Knoppix does not show any of my harddisk partitions on the desktop, which is unusual behavior for knoppix, yet it lets me do "cat /dev/hda" successfully.
doing the same thing with cksum instead of md5sum gives me cksum checksums which differ only in the first half of the checksum. The second half is the same.
Now I'm really confused.
I'm burning a brand new knoppix CD, rebooting the machine to ensure it has no errors (memory/hdd), and starting this process over once I can "see" my HDD partitions on the desktop in knoppix. If none of this helps, I'm going to make a dd image and hope its good, then install Kubuntu anyway. There isn't much in the way of critical data on this machine anyhow.
Still, any hypotheses as to why I'm seeing this strange behavior are appreciated.
Okay, using a newer copy of Knoppix (version 5.1.1) with a newer copy of md5sum and some kind of drive mapping (part of Knoppix now), I got the same damn problem!
Hopefully someone will stumble upon this post at some point and tell me what's up. I have never had an issue like this before, and hopefully I never will again.
In the meantime, I am going to make a "hopefully" functional image of the harddisk, completely wipe the disk clean with derik's boot and nuke, and install Kubuntu. Wish me luck.
I have the same weird md5sum behavior, it gives different results for same files either on single file testing or in batch mode.
sha1sum seem to have same ailment.
I first noticed that in numerous occasions after downloading a distro through jigdo, it says that file seems to be corrupt but after I checked with md5sum it gave the right result.
After downloading the whole set (28 Cds), I performed a 'batch' md5sum check using MD5SUMS. To my horror it gave 4 mismatches ...
Running md5sum on each of the 4 mismatched files individually several times gave paradoxical results..
Unmounting and re-mounting of the volume and even rebooting did nothing.
I thought this was a bug in the md5sum program itself, but trying sh1sum gave same inconsistencies.
To be frank, I never experienced that before while burning my iso images using k3b.
I never did figure out what it was...I notice the same problems when imaging the same CD on different computer systems. Perhaps it is a file system/architecture dependent thing? One machine is x86_64 and the other is x86. Both have ext3 root partitions though... Strange indeed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.