How to check MD5 sum in Puppy Linux?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
Raman
Posts: 86
Joined: Fri 02 Sep 2005, 03:25
Location: A Place Where Cows Are Sacred

How to check MD5 sum in Puppy Linux?

#1 Post by Raman »

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

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

Hi Raman,

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

To veryify a downloaded file:
md5sum test.iso

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

jonyo

#3 Post by jonyo »

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, 17:44, edited 1 time in total.

User avatar
Raman
Posts: 86
Joined: Fri 02 Sep 2005, 03:25
Location: A Place Where Cows Are Sacred

How to do a MD5 sum

#4 Post by Raman »

Thank you.

That does it.

Hail Puppy!

Raman

User avatar
erikson
Posts: 735
Joined: Wed 27 Feb 2008, 09:22
Location: Ghent, Belgium
Contact:

#5 Post by erikson »

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.
[size=84][i]If it ain't broke, don't fix it.[/i] --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#6 Post by Aitch »

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

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#7 Post by Flash »

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. :shock:

User avatar
erikson
Posts: 735
Joined: Wed 27 Feb 2008, 09:22
Location: Ghent, Belgium
Contact:

#8 Post by erikson »

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.
Personally I never bother to check. :shock:
Shame on you :-)
[size=84][i]If it ain't broke, don't fix it.[/i] --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]

rodrigt
Posts: 74
Joined: Wed 04 Jun 2008, 06:15
Location: Boston, USA

#9 Post by rodrigt »

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

User avatar
ecube
Posts: 88
Joined: Fri 11 Jul 2008, 17:00
Location: Västerås, Sweden

md5sum comparison of ISO-file and CD content.

#10 Post by ecube »

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

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#11 Post by rjbrewer »

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

http://www.murga-linux.com/puppy/viewto ... 16&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

Bruce B

Re: md5sum comparison of ISO-file and CD content.

#12 Post by Bruce B »

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

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#13 Post by zigbert »

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

Bruce B

#14 Post by Bruce B »

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

green_dome
Posts: 203
Joined: Tue 06 Jan 2009, 02:49
Contact:

#15 Post by green_dome »

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/viewto ... 030#262030

Post Reply