Comment 5 for bug 483792

Revision history for this message
Jon "The Nice Guy" Spriggs (jontheniceguy) wrote : Re: Brasero Copy to ISO image does not work for some DVDs

I've enhanced the script at Comment #3 Please note the new version required dcfldd which is an enhanced version of DD which will provide status messages including timings.

#!/bin/bash

DEV=/dev/cdrom
ISO=$1
if [ ! -z "$2" ]
then
  DEV=$2
fi

if [ -z "$ISO" ]
then
  echo "Usage: $0 <IMAGENAME> [DEVICE]"
  exit 1
fi

BS=$(isoinfo -d -i $DEV | grep "block size" | awk '{print $5}')
VS=$(isoinfo -d -i $DEV | grep "Volume size" | awk '{print $4}')

dcfldd if=$DEV of="$ISO" bs=$BS count=$VS sizeprobe=if