[Linux-Anyway] Re: checking the md5sums of burn CD's

  • From: Godwin Stewart <gstewart@xxxxxxxxxxx>
  • To: Linux-Anyway@xxxxxxxxxxxxx
  • Date: Thu, 22 Apr 2004 18:26:24 +0200

On Thu, 22 Apr 2004 16:04:49 +0100, John Richard Smith
<bagsofchoice@xxxxxxxxxxxxxxxxxxxxx> wrote:

> Can someone remeind me how to check the md5sum of an iso burnt to CD.
> 
> I seem to remember ,
> one has to know the size of the iso file then device by 1024 to 
> calculate the number of sectors,
> then what comes after that  ?
> 
> my device is /dev/scd0

Almost. Divide the size of the ISO image by 2048 to get the number of
sectors.

Then, making sure the CD you just burned isn't mounted:

dd if=/dev/scd0 bs=2048 count=n | md5sum -

where n is the number of sectors found above.

-- 
G. Stewart   --   gstewart@xxxxxxxxxxx -- gstewart@xxxxxxxxxxx
Registered Linux user #284683 (Slackware 9.0, Linux 2.6.5)
--------------------------------------------------------------
Seen in the classified ads:
NICE PARACHUTE: NEVER OPENED - USED ONCE
To unsubcribe send e-mail with the word unsubscribe in the body to:   
Linux-Anyway-Request@xxxxxxxxxxxxx?body=unsubscribe

Other related posts: