From owner-freebsd-current Thu Jun 20 14:11:06 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA08877 for current-outgoing; Thu, 20 Jun 1996 14:11:06 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA08863 for ; Thu, 20 Jun 1996 14:10:53 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA22097; Thu, 20 Jun 1996 23:10:43 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA26700; Thu, 20 Jun 1996 23:10:43 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id UAA17304; Thu, 20 Jun 1996 20:31:37 +0200 (MET DST) From: J Wunsch Message-Id: <199606201831.UAA17304@uriah.heep.sax.de> Subject: Re: Writing CD ROM - tools for FreeBSD? To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Thu, 20 Jun 1996 20:31:37 +0200 (MET DST) Cc: kallio@cc.jyu.fi Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <15915.835263633@time.cdrom.com> from "Jordan K. Hubbard" at "Jun 20, 96 02:40:33 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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. ;-)