Problem: CDRW md5sum inconsistencies

From: Chris Carlen (crobc_at_BOGUSFIELD.earthlink.net)
Date: 11/30/04


Date: Tue, 30 Nov 2004 06:43:40 -0800

Hi:

Suse 9.1, 2.6.5-7.95-default, cdrecord version: cdrecord-2.01a27-21

A long time ago I had trouble getting md5sum's of .iso files and the
burned data CD-R to agree. Then I discovered that the drive needed to
be reset by opening/closing the drawer. After that, it always worked.

Now I have a new hardware setup, with a drive from Sony:

Vendor_info : 'SONY '
Identifikation : 'CD-RW CRX230ED '
Revision : '4YS1'

Whereas before I had a LiteON. I haven't tried putting a LiteON in this
machine to see if the problems go away.

Basically what happens now is like this:

Here is the output of my backup script:

ef81ce67788429be829a9f8e7337fc49 /home/user1/cd-rw/datasheets.backup.iso
e41a295d467515cf6403ba93d858f39f /dev/cdrecorder

NOTE that sometimes the result is different, and instead of inconsistent
md5sums, I get an IO error on the read of /dev/cdrecorder. This time it
gave a wrong sum. Actually, the reading bailed out after a very short
time, but didn't report an IO error like usual.

Now I mount the drive, and everything "looks" fine; all my files are there.

Now I run md5sum by hand again to make sure:

user1@ngong:~> md5sum /dev/cdrecorder
e41a295d467515cf6403ba93d858f39f /dev/cdrecorder

Now I eject and close AGAIN (I already did this in the script):

user1@ngong:~> md5sum /dev/cdrecorder
ef81ce67788429be829a9f8e7337fc49 /dev/cdrecorder

Any tips on why the drive is being so stupid?

Here's my script:

#!/bin/bash
echo We are in the datasheets.CD-RW.backup script!
source ~/backup.scripts/backup.settings
mkisofs -o ~/cd-rw/datasheets.backup.iso -R -J -v -graft-points ~/datasheets
echo \n
du -h ~/cd-rw/datasheets.backup.iso
echo \n
echo Press Enter to continue or Ctrl-Cto exit...
read REPLY
cdrecord dev=$CDRW_SCSI_DEV -v blank=fast -dao ~/cd-rw/datasheets.backup.iso
cdrecord dev=$CDRW_SCSI_DEV -eject
cdrecord dev=$CDRW_SCSI_DEV -load
echo \n
md5sum ~/cd-rw/datasheets.backup.iso
md5sum $CDRW_DEV_PATH
echo \n
echo Press Enter or close when done...
read REPLY
exit

Here's the settings file:

#echo We are in the backup.settings file
CDRW_SCSI_DEV=ATA:3,0,0
CDRW_DEV_PATH=/dev/cdrecorder

-- 
_____________________
Christopher R. Carlen
crobc@sbcglobal.net
SuSE 9.1 Linux 2.6.5

Quantcast