Page 1 of 1

How to check MD5 sum in Puppy Linux?

Posted: Tue 06 May 2008, 21:25
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

Posted: Tue 06 May 2008, 21:38
by MU
Hi Raman,

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

To veryify a downloaded file:
md5sum test.iso

Mark

Posted: Tue 06 May 2008, 21:42
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.

How to do a MD5 sum

Posted: Tue 06 May 2008, 21:50
by Raman
Thank you.

That does it.

Hail Puppy!

Raman

Posted: Thu 08 May 2008, 17:38
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.

Posted: Fri 09 May 2008, 00:24
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

Posted: Fri 09 May 2008, 03:50
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:

Posted: Fri 09 May 2008, 17:49
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 :-)

Posted: Sun 27 Jul 2008, 16:11
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

md5sum comparison of ISO-file and CD content.

Posted: Sun 16 Aug 2009, 20:37
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

Posted: Sun 16 Aug 2009, 22:14
by rjbrewer
Ttuuxx has a handy little gizmo-gadget-widget thingy
called gtkhash.

http://www.murga-linux.com/puppy/viewto ... 16&t=32700

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

Posted: Mon 17 Aug 2009, 04:32
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

Posted: Mon 17 Aug 2009, 06:00
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

Posted: Mon 17 Aug 2009, 10:41
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

Posted: Thu 01 Oct 2009, 22:23
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