Post by res10xhsbCan anyone tell me how to make an image of a DVD or CDROM. I have some
DVD (Not copywrite) which I would like to store on my Linux system.
Another method to copy cd is a script.
#!/bin/sh
#**************************************************************
#*
#* rawread_cd - read cd in the raw mode.
#*
#* Usage: rawread_cd /dev/cdrom
#*
#* Install: chmod +x rawread_cd
#*
#* See http://www.troubleshooters.com/linux/coasterless.htm
#* for original scrip and cd tips
#*
#*
#* When making an ISO from an existing factory created CD,
#* create and verify the ISO against the CD using the rawread_cd script.
#*
#* rawread_cd /dev/cdrom | md5sum
#* or
#* rawread_cd /dev/cdrom > myiso.iso
#* md5sum myiso.iso
#*
#* Mandrake users may have to down load something like
#* mkisofs-2.0-6.i386.rpm from http://www.rpmfind.net
#* or one of the mirrors to get the isoinfo utility.
#* Mandraklinux release 10.X might have in cdrecord-isotools
#* added reaccd line from article Message ID: ***@one.localnet
#*
#* Mandriva Releases needs cdrkit, cdrkit-isotools, cdrkit-genisoimage rpms
#*
#**************************************************************
if [ $# -lt 1 ] ; then
tput clear
echo -e "\n $0 Error. Usage:"
echo -e "Example md5sum checks:"
echo -e "\t rawread_cd /dev/cdrom | md5sum"
echo -e "or"
echo -e "\t rawread_cd /dev/cdrom > myiso.iso"
echo -e "\t md5sum myiso.iso \n"
exit 1
fi
device=$1
blocksize=`isoinfo -d -i $device | grep "^Logical block size is:" | cut -d " " -f 5`
if test "$blocksize" = ""; then
echo catdevice FATAL ERROR: Blank blocksize >&2
exit 1
fi
blockcount=`isoinfo -d -i $device | grep "^Volume size is:" | cut -d " " -f 4`
if test "$blockcount" = ""; then
echo catdevice FATAL ERROR: Blank blockcount >&2
exit 1
fi
# command="dd if=$device bs=$blocksize count=$blockcount conv=notrunc,noerror"
command="readcd -v dev=$device f=- sectors=0-$blockcount"
echo "$command" >&2
$command
#************************* end rawread_cd *************************************