Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 27 Aug 2014, 17:19
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to check MD5 sum in Puppy Linux?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
Raman


Joined: 01 Sep 2005
Posts: 86
Location: A Place Where Cows Are Sacred

PostPosted: Tue 06 May 2008, 17:25    Post subject:  How to check MD5 sum in Puppy Linux?  

I know this has been discussed elsewhere, but I am unable to find the citation.

Therefore, I ask how one might do a MD5 sum in Puppy? Exactly how.

Thanks.

Hail Puppy!

Raman
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 06 May 2008, 17:38    Post subject:  

Hi Raman,

simply type:
md5sum test.iso > test.iso-md5.txt

To veryify a downloaded file:
md5sum test.iso

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
jonyo

Joined: 28 Dec 2006
Posts: 2727

PostPosted: Tue 06 May 2008, 17:42    Post subject:  

I type md5sum(then 2 spaces)(file name & location), then press enter in a console. Then I compare the result with the text.
Last edited by jonyo on Thu 08 May 2008, 13:44; edited 1 time in total
Back to top
View user's profile Send private message 
Raman


Joined: 01 Sep 2005
Posts: 86
Location: A Place Where Cows Are Sacred

PostPosted: Tue 06 May 2008, 17:50    Post subject: How to do a MD5 sum  

Thank you.

That does it.

Hail Puppy!

Raman
Back to top
View user's profile Send private message 
erikson


Joined: 27 Feb 2008
Posts: 735
Location: Ghent, Belgium

PostPosted: Thu 08 May 2008, 13:38    Post subject:  

One can also calculate the md5sum of a (data) CD.

1. Insert the CD.
2. Find the devicename of the CD drive using Menu > Filesystem > Pmount (e.g. on my laptop it's /dev/hdc). You may mount it, or not, it doesn't matter.
3. In console (rxvt), type md5sum /dev/hdc (or whatever name found in 2.). The calculation may take a while (watch the drive's LED).

This gives an end-to-end validation for CDs burned from downloaded iso images.

It's also useful to write the md5sum on every written CD (e.g. for backups). This allows validation of CD integrity months or years later.

_________________
If it ain't broke, don't fix it. --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
http://www.desonville.net/
Puppy page: http://www.desonville.net/en/joere.puppy.htm

Back to top
View user's profile Send private message Visit poster's website 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Thu 08 May 2008, 20:24    Post subject:  

erikson wrote:
This gives an end-to-end validation for CDs burned from downloaded iso images.

It's also useful to write the md5sum on every written CD (e.g. for backups). This allows validation of CD integrity months or years later.


Nice -..... mental note -

thanks

Aitch
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11024
Location: Arizona USA

PostPosted: Thu 08 May 2008, 23:50    Post subject:  

I'm pretty sure that a md5 sum calculated from a CD won't match the md5 sum calculated from the iso file before it was burned to the CD. Personally I never bother to check. Shocked
Back to top
View user's profile Send private message 
erikson


Joined: 27 Feb 2008
Posts: 735
Location: Ghent, Belgium

PostPosted: Fri 09 May 2008, 13:49    Post subject:  

Flash wrote:
I'm pretty sure that a md5 sum calculated from a CD won't match the md5 sum calculated from the iso file before it was burned to the CD.

If it's done the way I described, yes it does.

Quote:
Personally I never bother to check. Shocked

Shame on you Smile

_________________
If it ain't broke, don't fix it. --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
http://www.desonville.net/
Puppy page: http://www.desonville.net/en/joere.puppy.htm

Back to top
View user's profile Send private message Visit poster's website 
rodrigt

Joined: 04 Jun 2008
Posts: 74
Location: Boston, USA

PostPosted: Sun 27 Jul 2008, 12:11    Post subject:  

I suggest this thread be placed as a "sticky", somewhere where newbies (like me) can easily find it. (Next I'll go search how to install an .sfs file, which I suggest is another subject deserving to become a "sticky" message.)

Jonyo wrote:
> I type md5sum(then 2 spaces)(file name & location), then press enter in a console. Then I compare the result with the text.

Thank you, indeed this works and here is an example:
# md5sum /tmp/ff3_pack.sfs
93b0be3ba2f6240180ee345d0c1b8251 /tmp/ff3_pack.sfs
Back to top
View user's profile Send private message 
ecube


Joined: 11 Jul 2008
Posts: 88
Location: Västerås, Sweden

PostPosted: Sun 16 Aug 2009, 16:37    Post subject: md5sum comparison of ISO-file and CD content.  

erikson,

When I try to compare the md5sum of a downloaded ISO-file with the md5sum of the burned CD I get the following confusing results.

The downloaded file is

-rw-r--r-- 1 root root 101842944 2009-08-16 07:32 puppy-4.3beta1-k2.6.29.6-v423.iso

Its md5sum is equal to the value in md5sums.txt (dae903beab483deac8cb30cf0777bea8)

Applying md5sum to /dev/sr0 yields
# md5sum /dev/sr0
285946f67e2a9b8bb3b6d8680ceac58d /dev/sr0

To check that no padding is present in the CD the md5sum is calculated for the number of bytes of the ISO-file. The result is the identical.

# dd if=/dev/sr0 | head -c 101842944 | md5sum
285946f67e2a9b8bb3b6d8680ceac58d -
198904+0 records in
198904+0 records out
101838848 bytes (102 MB) copied, 85,5978 s, 1,2 MB/s

Finally the ISO-file is compared to the content of the CD. No difference detected.

# dd if=/dev/sr0 | cmp puppy-4.3beta1-k2.6.29.6-v423.iso
cmp: EOF on -
198904+0 records in
198904+0 records out
101838848 bytes (102 MB) copied, 84,5991 s, 1,2 MB/s

An explanation would be most welcome.

Regards,

Olov
Back to top
View user's profile Send private message 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Sun 16 Aug 2009, 18:14    Post subject:  

Ttuuxx has a handy little gizmo-gadget-widget thingy
called gtkhash.

http://www.murga-linux.com/puppy/viewtopic.php?search_id=1344594816&t=32700

_________________

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11088
Location: The Peoples Republic of California

PostPosted: Mon 17 Aug 2009, 00:32    Post subject: Re: md5sum comparison of ISO-file and CD content.  

Olov,

Erikson doesn't post here any more.

The ISO and CD used to have same md5sum* before Puppy dropped cdrecord and started using wodim.

I never got one match with wodim. I installed cdrecord and they match again.


Bruce

* if burned well and session closed

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5684
Location: Valåmoen, Norway

PostPosted: Mon 17 Aug 2009, 02:00    Post subject:  

wodim works well with mdsum, but you need to reload disc after burning if using kernel 2.21.x - 2.29.x. Seems to work ok in kernel 2.30.x.

Is it possible to check md5sum if disc is not closed (multisession) ?


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Bruce B


Joined: 18 May 2005
Posts: 11088
Location: The Peoples Republic of California

PostPosted: Mon 17 Aug 2009, 06:41    Post subject:  

Sigmund,

Good question and my answer is: I never tested the md5sum on an open session disc.

I lost some important data on a UDF a long time ago. Since then, I decide if the data is more valuable than the cost of the media, close the session.

An exception would be intentionally making a Puppy disc for running as a multi session CD.

Bruce

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
green_dome

Joined: 05 Jan 2009
Posts: 204

PostPosted: Thu 01 Oct 2009, 18:23    Post subject:  

ttuuxxx also has a few .PET packages that are command line sum calculators. In the post it mentions these checksums:
md5
sha1
sha256
tiger
whirlpool

http://www.murga-linux.com/puppy/viewtopic.php?p=262030#262030
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0839s ][ Queries: 11 (0.0038s) ][ GZIP on ]