Date: Wed, 06 Sep 2000 21:21:17 -0400 From: amg <ursa@cris.com> To: Bugs@FreeBSD.org Subject: cdrecord is now broke Message-ID: <39B6ED8D.41C67EA6@cris.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Gentlemen:
Don't shoot the messenger ....
With the change, in 4.1, to all character
special files, the utility/package cdrecord
is now broke.
Attacted is the output of a script, and the
script itself, that I used extensively with
2.2.8.
I have the bad feeling that cdrecord is not
the only utility that is now broken.
Attacted: cdClone - the script that I mentioned above
cdClone.out - the script's output under 4.1
august
ursa@cris.com
[-- Attachment #2 --]
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Invalid argument. Open by 'devname' not supported on this OS. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
Cdrecord 1.8.1 (i386-unknown-freebsd4.1) Copyright (C) 1995-2000 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/rcd0.ctl:0,4,0'
devname: '/dev/rcd0.ctl'
scsibus: 0 target: 4 lun: 0
[-- Attachment #3 --]
#!/bin/sh
#
# cdClone - clones a CD
#
# Notes - based on the FreeBSD scripts, makecdfs.sh and burncd.sh,
# which are located in /usr/share/examples/worm
#
ThisProg=${0##*/}
#
# check for proper invocation
#
if [ $# -lt 2 ]
then
echo ""
echo " Usage: $ThisProg InputCDToClone OutputCDImageFile <Dummy>"
echo " Too few arguments."
echo ""
echo " Exmpl: $ThisProg /dev/<r>cd0a myCDClone"
echo ""
echo " Notes: InputCDToClone MUST be the CD device;"
echo " for 4.1 and later, the invocation in <...> MUST be used."
echo " $ThisProg MUST be run as root."
echo " The optional \"Dummy\" parameter will turn off the laser"
echo " during the call to the cdrecord utility."
echo ""
exit
fi
#
if [ $# -gt 3 ]
then
echo ""
echo " Usage: $ThisProg InputCDToClone OutputCDImageFile <Dummy>"
echo " Too many arguments."
echo ""
echo " Exmpl: $ThisProg /dev/<r>cd0a myCDClone"
echo ""
echo " Notes: InputCdToClone MUST be the CD device;"
echo " for 4.1 and later, the invocation in <...> MUST be used."
echo " $ThisProg MUST be run as root."
echo " The optional \"Dummy\" parameter will turn off the laser"
echo " during the call to the cdrecord utility."
echo ""
exit
fi
#
# variable assignments
#
InputCDToClone=$1
OutputCDImageFile=$2
if [ $# -eq 3 ]
then
Dummy=-dummy
else
Dummy=""
fi
#
# dd an image from the CD device
#
echo ""
echo " dd is now starting ..."
echo ""
dd if=$InputCDToClone bs=32k of=$OutputCDImageFile
echo ""
echo " dd just finished."
echo ""
#
# swap CD's
#
echo " Do NOT touch any key! REMOVE the CD to clone and insert a blank CD."
echo " Then, hit Enter ..."
read keyStroke
echo ""
echo " cdrecord will now start ..."
echo ""
#
# burn the CD-R
#
cdrecord $Dummy -v speed=4 dev=/dev/rcd0.ctl:0,4,0 -data $OutputCDImageFile
# ^ ^ ^ ^
# | verbose | | | Logical U. N.
# | | Physical U. N.
# | SCSIBUS
#
echo ""
echo " cdrecord just finished."
echo ""
echo ""
#
# end cdClone
#
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39B6ED8D.41C67EA6>
