Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 1996 20:31:37 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Cc:        kallio@cc.jyu.fi
Subject:   Re: Writing CD ROM - tools for FreeBSD?
Message-ID:  <199606201831.UAA17304@uriah.heep.sax.de>
In-Reply-To: <15915.835263633@time.cdrom.com> from "Jordan K. Hubbard" at "Jun 20, 96 02:40:33 am"

next in thread | previous in thread | raw e-mail | index | archive | help
As Jordan K. Hubbard wrote:

> # usage: burncd input-file
> function burncd {
> 	if [ $# -lt 1 ]; then
> 		echo "usage: burncd input-file"
> 	elif [ ! -f $1 ]; then
> 		echo "burncd: $1 is not a valid file."
> 	elif [ "`id -u`" != "0" ]; then
> 		echo "Sorry, this must be done as root."
> 	else
> 		echo -n "Please CD in the writer now and press return: "
> 		read junk
(*)
> 		wormcontrol select HP 4020i
> 		wormcontrol prepdisk double
> 		wormcontrol track data
> 		rtprio 5 team -v 1m 5 < $1 | dd of=/dev/rworm0 obs=20k
> 		wormcontrol fixate 1
> 	fi
> }
> 

Please, insert the following at the asterisk mark:

		scsi -f /dev/rworm0.ctl -c "0 0 0 0 0 0" >/dev/null 2>&1

This is a dummy SCSI command (TEST UNIT READY) serving as a catcher
for the potential UNIT ATTENTION condition that might still be pending
in your drive at this time.  Some day i will fix the driver to do this
for you...  Danger will robinson if you forget to catch it (since the
wormcontrol prepdisk will fail then).

And yep, don't forget to install the team(1) first (it's available as
a package now)!  Most likely, you are required to have /usr/local/bin
in your path as well.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606201831.UAA17304>