[svlug] any south bay retail source for Cheapbytes or similar distro CDs?

Bryan-TheBS-Smith b.j.smith at ieee.org
Thu Nov 8 15:27:01 PST 2001


Jeffrey Siegal wrote:
> Is there possible to do an md5sum on such a CD and match that up against
> the md5sum for the .iso files?  If so, can someone explain how to do it?

Here's the physical CD side of the equation:

   dd if=/dev/cdrom | md5sum

If you want to script it (in a bash script), here's an example:

   if [ `dd if=/dev/cdrom | md5sum` != `md5sum %1.iso` ]; then
      echo "Bad CD"
   else
      echo "Good CD"
   done

Where the first parameter is the ISO image file (e.g., if it was named
"cdmd5sum", "cdmd5sum blah.iso")

-- TheBS

-- 
Bryan "TheBS" Smith    mailto:b.j.smith at ieee.org   chat:thebs413
Engineer  AbsoluteValue Systems, Inc.  http://www.linux-wlan.org
President     SmithConcepts, Inc.   http://www.SmithConcepts.com
----------------------------------------------------------------
"The [US] Constitution guarantees you Free, not Fair.  'Fair' is
a socialist concept." -- Shawn McMahon




More information about the svlug mailing list