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
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