3 .\" interface business GmbH
4 .\" Tolkewitzer Strasse 49
8 .\" All rights reserved.
10 .\" Written by Joerg Wunsch <joerg_wunsch@interface-business.de>
13 .\" Redistribution and use in source and binary forms, with or without
14 .\" modification, are permitted provided that the following conditions
16 .\" 1. Redistributions of source code must retain the above copyright
17 .\" notice, this list of conditions and the following disclaimer.
18 .\" 2. Redistributions in binary form must reproduce the above copyright
19 .\" notice, this list of conditions and the following disclaimer in the
20 .\" documentation and/or other materials provided with the distribution.
22 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY
23 .\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE
26 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
28 .\" OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
29 .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
30 .\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
32 .\" USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
35 .\" $Id: wormcontrol.8,v 1.11 1998/03/23 08:30:03 charnier Exp $
37 .\" arrgh, hilit19 needs this" :-(
43 .Nd control the CD-R driver
52 utility is used to control the behaviour of the
54 driver in order to adjust various parameters of a recordable CD
57 Unlike many other devices, CD-R's require a very strict handling order.
58 Prior to writing data, the speed of the drive must be selected, and
59 the drive can also be turned into a
61 mode, where every action is only performed with the laser turned off.
62 This way, it's possible to test whether the environment provides a
63 sufficiently high data flow rate in order to actually burn the CD-R,
64 without destroying the medium in case of a catastrophic failure.
66 In order to write a new track, the drive must be told whether the new
67 track will become an audio or a data track. Audio tracks are written
68 with a block size of 2352 bytes, while data tracks have 2048 bytes per
69 block. For audio tracks, the driver does further need to know
70 whether the data are recorded with a preemphasis.
72 Once all tracks of a session have been written, the disk must be
74 This writes the table of contents and leadout information to the disk.
75 The disk won't be usable without doing this.
77 The following options are available:
82 instead of the default
84 .It prepdisk Ar single \&| double Op Ar dummy
85 Prepare the disk for recording. This must be done before any tracks
86 can be prepared, and remains in effect until the session has been
87 fixated. Either single speed
91 must be selected, and optionally, the argument
93 can be used to tell the drive to keep the laser turned off, for testing.
94 .It track Ar audio \&| data Op Ar preemp
95 Inform the driver about the format of the next track. Either
100 must be selected, with an optional argument
102 that must be specified for an audio track where data records with
103 preemphasis are being used. Once this command has been successfully
104 specified, the track is ready for being written.
105 .It fixate Ar toc-type Op Ar onp
106 Once all tracks have been written, this closes the current session.
109 is a single digit between 0 and 4, with the following meaning:
116 2 CD-ROM with first track in mode 1
118 3 CD-ROM with first track in mode 2
123 The optional argument
126 .Dq open next program area ,
127 which means that the next session on the CD-R will be opened and can
128 be recorded in the future. Otherwise, the CD-R will be closed and
129 remains unchangeable.
133 Sets the next writeable location on the drive, used when writing
134 more than one track ie CD-DA (audio) disks.
137 Error codes for the underlying
139 commands are printed by the
143 The typical sequence of burning a data CD-R looks like:
145 # wormcontrol prepdisk double
146 # wormcontrol track data
147 # rtprio 5 team -v 1m 5 < cdrom.image | rtprio 5 dd of=/dev/rworm0 obs=20k
148 # wormcontrol fixate 1
153 command above is mainly used in order to
155 the data stream. It's particularly useful when recording audio data
156 with their rather unusual blocksize. Since the underlying device is a
158 device, the blocksize used in that command must be an integral multiple
159 of the CD-R blocksize.
161 The mentioned command
163 is not part of the base system, but comes extremely handy in order to
164 pipe a constant data stream into the CD recorder.
172 .Pa /usr/share/examples/worm/*
175 is currently under development.
177 The program has been contributed by
178 .ie t J\(:org Wunsch,