cdrecord and mkisofs aren't that hard, here's a nice little script I call
datadisk, modified for the device setup you mention.  It's not
bulletproof, but should do the job.  Adjust the speed entry as needed, as
well as your scratch area. 

-------------------------- cut ---------------------------

if [ -z "$1" ]; then
        echo "Syntax: $0 image-name"
        exit
fi

echo "creating disk image..."
mount /dev/scd0 /mnt/cdrom
mkisofs -r -o /mnt/cdscratch/$1 /mnt/cdrom
umount /mnt/cdrom
eject /dev/cdrom

read  -p "insert cd media, press <ENTER> to continue:"

echo "recording copy...."
cdrecord -v -speed=4 dev=0,0,0 -eject -data /mnt/cdscratch/$1

echo "deleting disk image..."
rm /mnt/cdsratch/$1

echo "all done!"

--------------------- cut ----------------------------

Stew Benedict



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to