From owner-FreeBSD-users-jp@jp.freebsd.org  Mon Aug 23 21:46:58 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id VAA76535;
	Mon, 23 Aug 1999 21:46:58 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from ns.ddt.or.jp (ns.ddt.or.jp [210.234.116.1])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id VAA76530
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 23 Aug 1999 21:46:57 +0900 (JST)
	(envelope-from ippo@ddt.or.jp)
Received: from localhost (ppp008-117.ddt.or.jp [210.234.117.8])
	by ns.ddt.or.jp (8.8.8/DDT-1.4) with ESMTP id VAA00500;
	Mon, 23 Aug 1999 21:46:26 +0900 (JST)
To: FreeBSD-users-jp@jp.freebsd.org, kambe@fbc.keio.ac.jp
In-Reply-To: Your message of "Mon, 23 Aug 1999 00:14:40 -0700"
	<37C0F4E01FE.991AKAMBE@mail.earthlink.net>
References: <37C0F4E01FE.991AKAMBE@mail.earthlink.net>
X-Mailer: Mew version 1.93 on XEmacs 20.4 (Emerald)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <19990823214622W.ippo@ddt.or.jp>
Date: Mon, 23 Aug 1999 21:46:22 +0900
From: Nishiyama Kazunori <ippo@ddt.or.jp>
X-Dispatcher: imput version 980905(IM100)
Lines: 96
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: FreeBSD-users-jp 45110
Subject: [FreeBSD-users-jp 45110] Re: ATAPI CD-R/RW Drive
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: ippo@ddt.or.jp

$B@>;3$G$9!#(B

From: Kazuo Kambe <kambe@fbc.keio.ac.jp>
Subject: [FreeBSD-users-jp 45101] Re: ATAPI CD-R/RW Drive
Date: Mon, 23 Aug 1999 00:14:40 -0700
Message-ID: <37C0F4E01FE.991AKAMBE@mail.earthlink.net>

> 
> man wormcontrol
> 
> $B$GI=<($5$l$k%5%s%W%k$G%G%P%$%9$rJQ99$7$?$i$"$C$5$j(B
> $B=q$-9~$a$^$7$?!#(B
> 
> # cat cdwr.sh
> !/bin/sh
> wormcontrol -f /dev/racd1a prepdisk double
> wormcontrol -f /dev/racd1a track data
> rtprio 5 team -v 1m 5 < test.image | rtprio 5 dd of=/dev/racd1a obs=20k
> wormcontrol -f /dev/racd1a fixate 1

$B$3$N%G%P%$%9L>$,$o$+$i$J$+$C$?$s$G$9!#(B
$B$"$j$,$H$&$4$6$$$^$9!#(B
$B;d$b$"$C$5$j=q$-9~$a$^$7$?!#(B

# /dev/acd1c $B$H$+$d$C$F$^$7$?!#(B
> 
> $B<B9T7k2L$O0J2<$NDL$j$G=q$-9~$_(B2$BG\B.$N%I%i%$%V$G$9$N$G$$$$@~$G$O(B
> $B$J$$$+$J$H;W$$$^$9!#(B
> 
> 24690 kilobytes, 78 seconds
> 49380+0 records in
> 1234+1 records out
> 25282560 bytes transferred in 88.724001 secs (284957 bytes/sec)

$B;d$N>l9g!"#4G\B.%I%i%$%V$G$9$N$G!"(B

647460 kilobytes, 1076 seconds
1294920+0 records in
32373+0 records out
662999040 bytes transferred in 1082.471129 secs (612487 bytes/sec)

$B$H$J$j$^$7$?!#(B

# $B$G$b(B  wormcontrol -f /dev/racd1a prepdisk double
# $B$C$F;XDj$7$F$$$k$N$@$+$i#2G\B.$N=q$-9~$_!)(B

/usr/share/examples/worm/burncd.sh $B$r0J2<$N$h$&$K=q$-49$($F;H$$$^$7$?!#(B

-- $B$3$3$+$i(B
#!/bin/sh
#
# usage: burncd input-file
#
# Note: This is set up to work ONLY on the HP 4020i CDR drive!
# See the man page for wormcontrol(1) and change the wormcontrol commands
# to match your drive, if the man page lists it as supported.
#
# This script also requires the usage of team(1), an optional component from
# the FreeBSD ports collection. 

if ! pkg_info -e team-3.1; then
        echo "$0: You do not appear to have the team package installed."
        echo
        echo "Please see /usr/ports/misc/team if you have the ports"
        echo "collection on your machine, or install the team package from"
        echo "your CD or the net.  To install team from the net right now,"
        echo "simply type:"
        echo
        echo "pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/packages/All/team-3.1.tg
z"
        echo
        echo "when logged in (or su'd to) root."
        exit 1
fi

if [ $# -lt 1 ]; then
        echo "usage: $0 input-file"
elif [ "`id -u`" != "0" ]; then
        echo "Sorry, this must be done as root."
else
        echo -n "Place CD in the worm drive now and press return: "
        read junk
        fname=$1; shift
        wormcontrol -f /dev/racd1a prepdisk double
        wormcontrol -f /dev/racd1a track data
        rtprio 5 team -v 1m 5 < $fname | rtprio 5 dd of=/dev/racd1a obs=20k
        wormcontrol -f /dev/racd1a fixate 1
fi
-- $B$3$3$^$G(B

$B3'$5$s!"$"$j$,$H$&$4$6$$$^$7$?!#(B
$B$3$l$G2wE,$K!"(BCD-R $B$,>F$1$^$9!#(B

--
$B@>;3(B $B0lK!(B (Nishiyama Kazunori)
mailto:ippo@ddt.or.jp
