Posts: 630
Eino
Joined: 12 Oct 2012
#1
I find this script very useful. With antiX beta 3 spacefm is invoked during the start of the script, but script still works.

Code: Select all

#!/bin/sh
#checkcd

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
Save the file as checkcd
Then run

Code: Select all

$ su
< password >
 chmod 755 checkcd
To invoke the script run

Code: Select all

 ./checkcd /dev/cdrom | md5sum
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
With latest antiX you can press F4 at boot menu and choose cj\heck md5