LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-09-2009, 11:57 AM   #1
rajesh.bahl
Member
 
Registered: Jan 2007
Posts: 101

Rep: Reputation: 15
Changed md5sum


Hi!

I recently downloaded iso file of CentOS 5.4. I matched the md5sum of the downloaded file with the value given at site. Both matched exactly - means there was no problem during download.

When I burnt the same iso image on DVD( checked md5sum just before burning -- it was okay )and checked md5sum again, it was found to be different. Is it normal or some problem occurred during burn process. What should I do next ?


rajesh.bahl
 
Old 11-09-2009, 12:38 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
How did you check the md5sum of the burned dvd image? If done properly, you should get the same md5sum. However, doing so properly with optical drive media is not as simple as it may at first glance seem. See this article for a discussion of some of the issues involved:

http://www.troubleshooters.com/linux/coasterless.htm
 
Old 11-13-2009, 01:04 AM   #3
rajesh.bahl
Member
 
Registered: Jan 2007
Posts: 101

Original Poster
Rep: Reputation: 15
We should get the same reply but it is not happening. I tried writing another DVD and checked the md5sum with the following:

md5sum /dev/dvd

Once again the results were different than published at site.Of course, the md5sum of both he burnt dvds were exactly same !

I just do not understand why this is happening. Also appearently, the DVDs are working okay but I have serious doubts on the integrity of packages.

Can someone help ?



rajesh.bahl
 
Old 11-13-2009, 11:30 AM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Using the rawread script given in the above link, determine the the md5 sum of the dvd by running:

$ rawread /dev/dvd | md5sum

The script uses the isoinfo command to determine the block size and block count of the cd and/or dvd. You need that info to get an accurate md5sum read.

By the way, the typical way of getting an md5sum of a dvd or cd is with this command:

$ cat /dev/dvd | md5sum

You can try that but it won't be as accurate as the rawread script method.

Finally, from personal experience, most of the problems I've run into in getting md5sums of optical media are tied to the optical drive. Some optical drives will simply not give accurate md5sums no matter what method I've used to get them. The drive works fine otherwise and the cd or dvd is good as confirmed by verified md5sums obtained on other working optical drives. I'm not sure why that is but when using the rawread script on the problem drives, you will see a lot of read error problems being experienced when doing the operation. Others I've talked to have noticed the same thing. My general theory is that when doing an md5sum from an optical drive you are accessing the drive with some pretty low level tools like cat or dd. Optical drives have built in read error correction mechanisms which I believe may not function properly when using those low level tools but the drive may work fine in normal operation.

Last edited by kilgoretrout; 11-13-2009 at 11:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
md5sum changed even after the lsattr set !................... honeybadger General 1 10-18-2009 05:13 AM
Installed Ubuntu but it changed my boot loader. I want this changed... mdorries Linux - Distributions 8 05-31-2007 08:13 PM
md5sum - then what? wmcase Linux - Software 2 10-05-2004 10:55 AM
Md5sum ? mikeshn Linux - General 6 07-03-2003 11:09 AM
Md5sum yenonn Linux - General 1 04-10-2003 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration