LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   About growisofs flag (https://www.linuxquestions.org/questions/linux-general-1/about-growisofs-flag-613285/)

satimis 01-13-2008 10:31 AM

About growisofs flag
 
Hi folks,


Ubuntu 7.10
growisofs version 7.0.1


Please advise which flag to be up for checking the data after burning DVD+RW. I can't figure it out on reading "man"

TIA


B.R.
satimis

gilead 01-14-2008 08:21 PM

From memory, there isn't one. Offhand, the only 2 ways I can think of are:

1. The quickest way is to mount the disk and see if the file-system is accessible;

2. A slower, but more thorough way is to compare the md5sum of the original .iso to that of the disc contents.

Getting the md5sum of the original iso is just md5sum /pathto/some.iso - Getting the md5sum of the disc can be done with dd /dev/dvd | md5sum

I don't use dd by itself, I use the following script as it's always been more reliable for me:

Code:

#!/bin/sh
#
# See <http://www.troubleshooters.com/linux/coasterless.htm>
# Reads directly from the CD or DVD device specified on the command line amd dumps it to STDOUT
#
# Typical usage:
#  copy-raw-cd.sh /dev/dvd > /tmp/dvd-contents.iso
#
# To use this script to check the md5sum of the DVD, do the following:
#  copy-raw-cd.sh /dev/dvd | md5sum
# compare the result with:
#  md5sum /tmp/dvd-contents.iso
#

device=$1

blocksize=`/usr/bin/isoinfo -d -i $device | grep "^Logical block size is:" | cut -d " " -f 5`
if test "$blocksize" = ""; then
  echo $0 FATAL ERROR: Blank blocksize >&2
  exit
fi

blockcount=`/usr/bin/isoinfo -d -i $device | grep "^Volume size is:" | cut -d " " -f 4`
if test "$blockcount" = ""; then
  echo $0 FATAL ERROR: Blank blockcount >&2
  exit
fi

command="/bin/dd if=$device bs=$blocksize count=$blockcount conv=notrunc,noerror"
echo "$command" >&2
$command

# ends.



All times are GMT -5. The time now is 12:27 PM.