Create an empty file named rawread.sh
Open that file in your favorite txt editor
Copy the code between the dashed lines and paste into rawread.sh
#!/bin/sh
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
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
fi
command="dd if=$device bs=$blocksize count=$blockcount conv=notrunc,noerror"
echo "$command" >&2
$command
Make the file executable;
>chmod 774 ./rawread.sh
Put your disk to check into the drive.
Use the dev name (not the mount point) of your CD or DVD drive in the following:
>./rawread.sh /dev/hdc | md5sum
It takes a while, but the last line produced is the md5sum.
Check this number against the published md5sum of the disk.
This is not my creation, I picked it up somewhere in the cloud, and wanted to share. Works great for me.