LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-16-2013, 01:16 PM   #1
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Rep: Reputation: 1
md5sum on burned disk


I was wondering if anyone has a definitive answer as to why my md5sum never matches after I burn to disk. I use md5sum /Dev/sr0 and get a different value than the iso I burned it from. I relive checking the iso is what matters and that is fine but it annoys me the Burned disk is different. I have read that burning programs add empty space to the end sometimes and this can make the md5 value different but the weird thing is I tried brasero and then k3b and they produced disks with equal values to each other but still different from the original iso. Also both k3b and brasero were set to verify image and it successfully passed those tests. Any ideas. It's a rewritable DVD and I did a full blanking no quick both times.
 
Old 04-16-2013, 01:20 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Use 'cmp' to compare the iso to the burned image, it should say EOF on the iso. You are right that the burned disk is padded with zeros at the end, and this alters the md5sum.
 
Old 04-16-2013, 01:40 PM   #3
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Original Poster
Rep: Reputation: 1
Thanks for the response. I did read about using cmp somewhere but it seemed a little odd the way it was done as it used ls -ltr *.iso to get the length then the next command was length=<length> and finally cmp was used with with a variable $length somehow and involved a block size=512 along with dd utility or something I forget exacat syntax. Didn't work for me though because the $length/512 gave me an error in bash.
Are you saying just use it like this: cmp /dev/sr0 /path/to/*.iso
Because wouldn't that include those zeros also for /dev/sr0
I guess I could try cmp with the -n switch and the size from ls-l *.iso for the argument. Is that right?

Last edited by minty33; 04-16-2013 at 01:42 PM.
 
Old 04-16-2013, 01:43 PM   #4
mina86
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 517

Rep: Reputation: 229Reputation: 229Reputation: 229
Just run “cmp file.iso /dev/sr0” already… You are making things overly complicated.
 
  


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
k3b burns .wavs to CD but then disk shows up empty (can see CD has been burned) DiBosco Linux - Software 3 12-03-2008 01:48 PM
NO!! My burned anime is gone!! invinciblegod General 2 08-24-2005 10:21 AM
burned cd xviddivxoggmp3 Red Hat 1 07-20-2004 03:15 PM
k3b burned disk has problem in Windows XP skrichmond Linux - Software 0 06-17-2004 12:04 PM
Redhat 9.0 or Fedora Installation Disk burned from Windows XP not booting gardgreg Linux - Newbie 5 01-29-2004 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:33 PM.

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