LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2008, 10:31 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
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
 
Old 01-14-2008, 08:21 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error with growisofs wakeboarder3780 Linux - Software 1 05-12-2006 03:10 PM
growisofs gives an error Valhalla Linux - Software 0 04-11-2005 11:03 AM
growisofs and speed -SzLaszlo Linux - Software 0 10-30-2004 03:39 PM
growisofs with cron pete_g Linux - Software 1 07-21-2004 04:54 PM
growisofs sethgeekx86 Slackware 4 04-20-2004 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration