LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-21-2011, 08:07 AM   #1
abourke
Member
 
Registered: Dec 2006
Posts: 95

Rep: Reputation: 16
md5sum problem


Hi I did an md5sum on a .raw opensuse image that I downloaded and dumped onto a usb stick.
The checksum for the .raw file and the dumped image on the device /dev/sdg don't match, so I'm wondering if its a mistake or something is altering traffic from my harddisk to my usb stick. The checksums for the Download were correct!

However once transfered from hard drive to usb I got this:
Code:
1448cebbfa28f822f54c656ef8adaaeb  Aubreys_GNOME_Reloaded.i686-0.0.10.raw
2a6b3e8fd668433e315aac2cd4836b20  /dev/sdg
Am I making a mistake comparing the .raw md5sum with the usb dump? I followed the instructions on this site:
http://en.opensuse.org/openSUSE:SUSE...c_Image_Howtos
 
Old 07-21-2011, 09:22 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Hi,

Okay, so, this one is officially the weirdest thing today I usually follow other lines, but it boils down to this:

- download the file (an ISO, for example)
- put it somewhere, I have a folder for this...
- copy and paste the md5 string into gedit
- open the console navigate to the downloaded file and enter "md5sum [filename]"
- I get a long string, and
- compare against what it says in gedit

Example output

Quote:
md5sum microcore-current.iso
d36c9099b7afd83ee7c74c27d5d04c41 microcore-current.iso
Can I tempt you to give my way a whack? I'll follow this thread to see where you end up...

Luck

Thor

Last edited by ButterflyMelissa; 07-21-2011 at 10:53 AM.
 
Old 07-21-2011, 10:26 AM   #3
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
So you ran md5sum against the file like this

Code:
$ md5sum Aubreys_GNOME_Reloaded.i686-0.0.10.raw
Then you wrote Aubreys_GNOME_Reloaded.i686-0.0.10.raw on to the USB stick to create a bootable USB stick.

The you ran md5sum against /dev/sdg like this

Code:
$ md5sum /dev/sdg
Is that right? If that's what you did then of course getting different values from md5sum sounds like expected behaviour given that you're running md5sum against different things.
 
Old 07-24-2011, 07:25 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Actually, you have to compute the md5sum of the first N bytes of /dev/sdg, where N is the size of the original image file. Example:
Code:
$ ls -l file.raw
-rw-r--r-- 1 colucix users 1939866112 Feb 15  2010 file.raw
$ dd if=/dev/sdg ibs=1 count=1939866112 | md5sum
3e2e1c757afcb29d25a74c14d1c44fb1  -
$ md5sum file.raw
3e2e1c757afcb29d25a74c14d1c44fb1  file.raw
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC 11's md5sum problem ic_torres Fedora 9 10-23-2009 05:53 PM
Checking md5sum problem. satimis *BSD 3 12-20-2006 06:07 AM
md5sum problem mdpniesta Linux - Software 7 01-19-2005 07:07 AM
md5sum problem !!! c707176 Fedora 1 11-10-2004 05:26 AM
md5sum problem drivesector Linux - Newbie 11 04-08-2004 04:11 AM


All times are GMT -5. The time now is 10:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration