dd command to copy a cd to a hard disk - Input/output error

Daniel cottmain at yahoo.com.au
Mon Apr 1 14:40:37 EST 2002


Thanks to Simon, Brett, Tomasz and others for replies.  Yes your script fix 
worked well thanks. Now I've got the info I wonder what it all means!
I wanted to find out the correct block size to put into the 'dd' command 
... does anything stand out to you as block size?
Anyway thanks very much for your help,

Daniel.
(in the mean time I have been checking cds given to me by using 'dd 
if=/dev/cdrom | md5sum' and finding that supposedly exact copies give 
different checksums .... could this be their M$o/s burner software 'feature'?)

++++++++++++++cd info script -
#! /bin/bsh
RD=/dev/cdrom
for i in 32768,7   32776,32 32808,32 32958,128 33086,128 33214,128 
33342,128 33470,32 33581,16 33598,16  33615,16  33632,16;
do
     old_IFS="$IFS"
     IFS=","
     set -- $i
     IFS="$old_IFS"
     OFFSET=$1
     LENGTH=$2
     echo "*`dd if=$RD bs=1 skip=$OFFSET count=$LENGTH   2> /dev/null`#"
done
+++++++++++++ returns:
*CD001#
*LINUX                               #
*DLE-82EN02                      #
* 
#
* 
#
* 
#
*MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD CD-R/DVD CREATOR (C) 
1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING         #
*                                #
*2002031712013600#
*2002031712013600#
*0000000000000000#
*2002031712013600#
+++++++++++++++++++++++++++++


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the linux mailing list