| Author |
Message |
Raman

Joined: 01 Sep 2005 Posts: 86 Location: A Place Where Cows Are Sacred
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
jonyo
Joined: 28 Dec 2006 Posts: 2727
|
Posted: 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
|
|
 |
Raman

Joined: 01 Sep 2005 Posts: 86 Location: A Place Where Cows Are Sacred
|
Posted: 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
|
|
 |
erikson

Joined: 27 Feb 2008 Posts: 735 Location: Ghent, Belgium
|
Posted: 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
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6825 Location: Chatham, Kent, UK
|
Posted: 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
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9845 Location: Arizona USA
|
Posted: 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.
|
|
Back to top
|
|
 |
erikson

Joined: 27 Feb 2008 Posts: 735 Location: Ghent, Belgium
|
Posted: 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.  |
Shame on you
_________________ 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
|
|
 |
rodrigt
Joined: 04 Jun 2008 Posts: 74 Location: Boston, USA
|
Posted: 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
|
|
 |
ecube

Joined: 11 Jul 2008 Posts: 88 Location: Västerås, Sweden
|
Posted: 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
|
|
 |
rjbrewer

Joined: 22 Jan 2008 Posts: 4350 Location: merriam, kansas
|
Posted: 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.
Full installs
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10817 Location: The Peoples Republic of California
|
Posted: 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
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5241 Location: Valåmoen, Norway
|
Posted: 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
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10817 Location: The Peoples Republic of California
|
Posted: 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
|
|
 |
green_dome
Joined: 05 Jan 2009 Posts: 189
|
Posted: 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
|
|
 |
|