/[debburn]/nonameyet/trunk/cdrecord/wodim.1
ViewVC logotype

Contents of /nonameyet/trunk/cdrecord/wodim.1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30 - (show annotations) (download)
Wed Aug 23 11:49:11 2006 UTC (6 years, 9 months ago) by blade
File size: 75510 byte(s)
Added bits from 02_paths.dpatch
1 .\" @(#)cdrecord.1 1.106 06/02/09 Copyright 1996 J. Schilling
2 .\"
3 .\" This program is free software; you can redistribute it and/or modify
4 .\" it under the terms of the GNU General Public License version 2
5 .\" as published by the Free Software Foundation.
6 .\"
7 .\" The GNU General Public License's references to "object code"
8 .\" and "executables" are to be interpreted as the output of any
9 .\" document formatting or typesetting system, including
10 .\" intermediate and printed output.
11 .\"
12 .\" This manual is distributed in the hope that it will be useful,
13 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
14 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 .\" GNU General Public License for more details.
16 .\"
17 .\" You should have received a copy of the GNU General Public License along with
18 .\" this program; see the file COPYING. If not, write to the Free Software
19 .\" Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 .\"
21 .if t .ds a \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'a
22 .if t .ds o \v'-0.55m'\h'0.00n'\z.\h'0.45n'\z.\v'0.55m'\h'-0.45n'o
23 .if t .ds u \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'u
24 .if t .ds A \v'-0.77m'\h'0.25n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.70n'A
25 .if t .ds O \v'-0.77m'\h'0.25n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.70n'O
26 .if t .ds U \v'-0.77m'\h'0.30n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.75n'U
27 .if t .ds s \\(*b
28 .if t .ds S SS
29 .if n .ds a ae
30 .if n .ds o oe
31 .if n .ds u ue
32 .if n .ds s sz
33 .if t .ds m \\(*m
34 .if n .ds m micro
35 .TH CDRECORD 1 "Version 2.0" "J\*org Schilling" "Schily\'s USER COMMANDS"
36 .SH NAME
37 cdrecord \- record audio or data Compact Disks or Digital Versatile Disks from a master
38 .SH SYNOPSIS
39 .B cdrecord
40 [
41 .I "general options
42 ]
43 .BI dev= device
44 [
45 .I track options
46 ]
47 .IR track1 .\|.\|. trackn
48
49 .SH DESCRIPTION
50 .B Cdrecord
51 is used to record data or audio Compact Discs on an Orange Book
52 CD-Recorder or to write DVD media on a DVD-Recorder.
53 .PP
54 The
55 .I device
56 refers to
57 .IR scsibus / target / lun
58 of the CD/DVD-Recorder. Communication on
59 .I SunOS
60 is done with the SCSI general driver
61 .B scg.
62 Other operating systems are using a library simulation of this driver.
63 Possible syntax is:
64 .B dev=
65 .IR scsibus , target , lun
66 or
67 .B dev=
68 .IR target , lun .
69 In the latter case, the CD/DVD-Recorder has to be connected to the default
70 SCSI bus of the machine.
71 .IR Scsibus ,
72 .I target
73 and
74 .I lun
75 are integer numbers.
76 Some operating systems or SCSI transport implementations may require to
77 specify a filename in addition.
78 In this case the correct syntax for the device is:
79 .B dev=
80 .IR devicename : scsibus , target , lun
81 or
82 .B dev=
83 .IR devicename : target , lun .
84 If the name of the device node that has been specified on such a system
85 refers to exactly one SCSI device, a shorthand in the form
86 .B dev=
87 .IR devicename : @
88 or
89 .B dev=
90 .IR devicename : @ , lun
91 may be used instead of
92 .B dev=
93 .IR devicename : scsibus , target , lun .
94
95 .PP
96 To access remote SCSI devices, you need to prepend the SCSI device name by
97 a remote device indicator. The remote device indicator is either
98 .BI REMOTE: user@host:
99 or
100 .BR
101 .BI REMOTE: host:
102 .br
103 A valid remote SCSI device name may be:
104 .BI REMOTE: user@host:
105 to allow remote SCSI bus scanning or
106 .BI REMOTE: user@host:1,0,0
107 to access the SCSI device at
108 .I host
109 connected to SCSI bus # 1,target 0 lun 0.
110
111 .PP
112 .B Cdrecord
113 is completely based on
114 .B SCSI
115 commands but this is no problem as all CD/DVD writers
116 ever made use
117 .B SCSI
118 commands for the communication. Even
119 .B ATAPI
120 drives are just
121 .B SCSI
122 drives that inherently use the
123 .I "ATA packet interface
124 as
125 .B SCSI
126 command transport layer build into the IDE (ATA) transport.
127 You may need to specify an alternate transport layer on the command line
128 if your OS does not implement a fully integrated kernel driver subsystem that
129 allows to access any drive using
130 .B SCSI
131 commands via a single unique user interface.
132
133 .PP
134 To access SCSI devices via alternate transport layers,
135 you need to prepend the SCSI device name by a transport layer indicator.
136 The transport layer indicator may be something like
137 .B USCSI:
138 or
139 .BR ATAPI: .
140 To get a list of supported transport layers for your platform, use
141 .B dev=
142 .IR HELP :
143
144
145 .PP
146 To make
147 .B cdrecord
148 portable to all \s-2UNIX\s0 platforms, the syntax
149 .B dev=
150 .IR devicename : scsibus , target , lun
151 is preferred as it hides OS specific knowledge about device names from the user.
152 A specific OS may not necessarily support a way to specify a real device file name nor a
153 way to specify
154 .IR scsibus , target , lun .
155
156 .PP
157 .I Scsibus
158 0 is the default SCSI bus on the machine. Watch the boot messages for more
159 information or look into
160 .B /var/log/messages
161 for more information about the SCSI configuration of your machine.
162 If you have problems to figure out what values for
163 .IR scsibus , target , lun
164 should be used, try the
165 .B \-scanbus
166 option of
167 .B cdrecord
168 described below.
169
170 .PP
171 If a file /etc/default/cdrecord exists, the parameter to the
172 .B dev=
173 option may also be a drive name label in said file (see FILES section).
174
175 .PP
176 On
177 .B SVr4
178 compliant systems,
179 .B cdrecord
180 uses the real time class to get the highest scheduling priority that is
181 possible (higher than all kernel processes).
182 On systems with
183 .B POSIX real time scheduling
184 cdrecord uses real time scheduling too,
185 but may not be able to gain a priority that is higher than all kernel processes.
186 .PP
187 In order to be able to use the SCSI transport subsystem of the OS, run at highest
188 priority and lock itself into core
189 .B
190 cdrecord
191 either needs to be run as root, needs to be installed suid root or
192 must be called via
193 .B RBACs
194 pfexec mechanism.
195 .PP
196 In
197 .I Track At Once
198 mode, each
199 .I track
200 corresponds to a single file that contains the prepared data for that track.
201 If the argument is
202 .RB ` \- ',
203 standard input is used for that track.
204 Only one track may be taken from
205 .IR stdin .
206 In the other write modes, the direct file to track relation may not be implemented.
207 In
208 .B \-clone
209 mode, a single file contains all data for the whole disk.
210 To allow DVD writing on platforms that do not implement large file support,
211 .B cdrecord
212 concatenates all file arguments to a single track when writing to DVD media.
213
214 .SH "GENERAL OPTIONS
215 .PP
216 General options must be before any track file name or track option.
217 .TP
218 .B \-version
219 Print version information and exit.
220 .TP
221 .B \-v
222 Increment the level of general verbosity by one.
223 This is used e.g. to display the progress of the writing process.
224 .TP
225 .B \-V
226 Increment the verbose level in respect of SCSI command transport by one.
227 This helps to debug problems
228 during the writing process, that occur in the CD/DVD-Recorder.
229 If you get incomprehensible error messages you should use this flag
230 to get more detailed output.
231 .B \-VV
232 will show data buffer content in addition.
233 Using
234 .B \-V
235 or
236 .B \-VV
237 slows down the process and may be the reason for a buffer underrun.
238 .TP
239 .BI debug= "#, " -d
240 Set the misc debug value to # (with debug=#) or increment
241 the misc debug level by one (with -d). If you specify
242 .I -dd,
243 this equals to
244 .BI debug= 2.
245 This may help to find problems while opening a driver for libscg
246 as well as with sector sizes and sector types.
247 Using
248 .B \-debug
249 slows down the process and may be the reason for a buffer underrun.
250 .TP
251 .BR kdebug= "#, " kd= #
252 Tell the
253 .BR scg -driver
254 to modify the kernel debug value while SCSI commands are running.
255 .TP
256 .BR \-silent ", " \-s
257 Do not print out a status report for failed SCSI commands.
258 .TP
259 .B \-force
260 Force to continue on some errors. Be careful when using this option.
261 .B Cdrecord
262 implements several checks that prevent you from doing unwanted things
263 like damaging CD-RW media by improper drives. Many of the sanity checks are
264 disabled when the
265 .B \-force
266 option is used.
267 .sp
268 This option also implements some tricks that will allow
269 you to blank bad CD-RW disks.
270 .TP
271 .B \-immed
272 Tell cdrecord to set the
273 .B "SCSI IMMED"
274 flag in certain commands
275 (load/eject/blank/close_track/close_session).
276 This can be useful
277 on broken systems with ATAPI harddisk and CD/DVD writer on the same bus or
278 with SCSI systems that don't use disconnect/reconnect.
279 These systems will freeze while blanking or fixating a CD/DVD or while a DVD
280 writer is filling up a session to the minimum amount (approx. 800 MB).
281 Setting the
282 .B \-immed
283 flag will request the command to return immediately
284 while the operation proceeds in background, making
285 the bus usable for the other devices and avoiding the system freeze.
286 This is an experimental feature which may work or not, depending on the model
287 of the CD/DVD writer.
288 A correct solution would be to set up a correct cabling but there seem to be
289 notebooks around that have been set up the wrong way by the manufacturer.
290 As it is impossible to fix this problem in notebooks, the
291 .B \-immed
292 option has been added.
293 .sp
294 A second experimental feature of the
295 .B \-immed
296 flag is to tell cdrecord to try to wait short times while writing to the
297 media. This is expected to free the IDE bus if the CD/DVD writer and the
298 data source are connected to the same IDE cable. In this case, the CD/DVD
299 writer would otherwise usually block the IDE bus for nearly all the time
300 making it impossible to fetch data from the source drive. See also
301 .B minbuf=
302 and
303 .B \-v
304 option.
305 .sp
306 Use both features at your own risk.
307 If it turns out that it would make sense to have a separate option
308 for the wait feature, write to the author and convince him.
309 .TP
310 .BI minbuf= value
311 The #
312 .B minbuf=
313 option allows to define the minimum drive buffer fill ratio for the
314 experimental ATAPI wait mode that is intended to free the IDE bus
315 to allow hard disk and CD/DVD writer to be on the same IDE cable.
316 As the wait mode currently only works when the verbose option
317 .B \-v
318 has been specified,
319 .B cdrecord
320 implies the verbose option in case the
321 .B \-immed
322 or
323 .B minbuf=
324 option have been specified.
325 Valid values for
326 .B minbuf=
327 are between 25 and 95 for 25%.\|.\|.95% minimum drive buffer fill ratio.
328 .TP
329 .B \-dummy
330 The CD/DVD-Recorder will go through all steps of the recording process,
331 but the laser is turned off during this procedure.
332 It is recommended to run several tests before actually writing to a
333 Compact Disk or Digital Versatile Disk,
334 if the timing and load response of the system is not known.
335 .TP
336 .B \-clone
337 Tells
338 .B cdrecord
339 to handle images created by
340 .IR "readcd \-clone" .
341 The
342 .B \-clone
343 may only be used in conjunction with with the
344 .B \-raw96r
345 or with the
346 .B \-raw16
347 option.
348 Using
349 .B \-clone
350 together with
351 .B \-raw96r
352 is preferred as it allows to write all subchannel data.
353 The option
354 .B \-raw16
355 should only be used with drives that do not support to write in
356 .B \-raw96r
357 mode.
358 .TP
359 .B \-dao
360 .TP
361 .B \-sao
362 Set
363 .B "SAO (Session At Once)
364 mode which is usually called
365 .BR "Disk At Once " mode.
366 This currently only works with MMC drives that support
367 .B "Session At Once
368 mode.
369 Note that cdrecord needs to know the size of each track in advance for this mode
370 (see the
371 .B "mkisofs \-print-size"
372 option and the
373 .I EXAMPLES
374 section for more information).
375 .TP
376 .B \-tao
377 Set
378 .B "TAO (Track At Once) writing mode.
379 This is the default write mode in previous
380 .B cdrecord
381 versions.
382 With most drives, this write mode is required for multi session recording.
383 .TP
384 .B \-raw
385 Set
386 .B "RAW writing mode.
387 Using this option defaults to
388 .BR \-raw96r .
389 Note that cdrecord needs to know the size of each track in advance for this mode
390 (see the
391 .B "mkisofs \-print-size"
392 option and the
393 .I EXAMPLES
394 section for more information).
395 .TP
396 .B \-raw96r
397 Select
398 Set
399 .B "RAW writing mode
400 with 2352 byte sectors plus 96 bytes of raw P-W subchannel data resulting
401 in a sector size of 2448 bytes.
402 This is the preferred raw writing mode as it gives best control over the
403 CD writing process.
404 If you find any problems with the layout of a disk or with sub channel
405 content (e.g. wrong times on the display when playing the CD) and your drive
406 supports to write in
407 .B \-raw96r
408 or
409 .B \-raw16
410 mode, you should give it a try. There are several CD writers with bad firmware
411 that result in broken disks when writing in TAO or SAO mode.
412 Writing data disks in raw mode needs significantly more CPU time than other
413 write modes. If your CPU is too slow, this may result in buffer underruns.
414 Note that cdrecord needs to know the size of each track in advance for this mode
415 (see the
416 .B "mkisofs \-print-size"
417 option and the
418 .I EXAMPLES
419 section for more information).
420 .TP
421 .B \-raw96p
422 Select
423 Set
424 .B "RAW writing mode
425 with 2352 byte sectors plus 96 bytes of packed P-W subchannel data resulting
426 in a sector size of 2448 bytes.
427 This is the less preferred raw writing mode as only a few recorders support
428 it and some of these recorders have bugs in the firmware implementation.
429 Don't use this mode if your recorder supports
430 .B \-raw96r
431 or
432 .BR \-raw16 .
433 Writing data disks in raw mode needs significantly more CPU time than other
434 write modes. If your CPU is too slow, this may result in buffer underruns.
435 Note that cdrecord needs to know the size of each track in advance for this mode
436 (see the
437 .B "mkisofs \-print-size"
438 option and the
439 .I EXAMPLES
440 section for more information).
441 .TP
442 .B \-raw16
443 Select
444 Set
445 .B "RAW writing mode
446 with 2352 byte sectors plus 16 bytes of P-Q subchannel data resulting
447 in a sector size of 2368 bytes.
448 If a recorder does not support
449 .BR \-raw96r ,
450 this is the preferred raw writing mode.
451 It does not allow to write
452 .I CD-Text
453 or
454 .I CD+Graphics
455 but it is the only raw writing mode in cheap CD writers.
456 As these cheap writers in most cases do not support
457 .B \-dao
458 mode.
459 Don't use this mode if your recorder supports
460 .BR \-raw96r .
461 Writing data disks in raw mode needs significantly more CPU time than other
462 write modes. If your CPU is too slow, this may result in buffer underruns.
463 Note that cdrecord needs to know the size of each track in advance for this mode
464 (see the
465 .B "mkisofs \-print-size"
466 option and the
467 .I EXAMPLES
468 section for more information).
469 .TP
470 .B \-multi
471 Allow multi session CDs to be made. This flag needs to be present
472 on all sessions of a multi session disk,
473 except you want to create a session that will be
474 the last session on the media.
475 The fixation will be done in a way that allows the CD/DVD-Recorder to
476 append additional sessions later. This is done by generation a TOC
477 with a link to the next program area. The so generated media is not
478 100% compatible to manufactured CDs (except for CDplus).
479 Use only for recording of multi session CDs.
480 If this option is present, the default track type is
481 .BR "CD-ROM XA mode 2 form 1"
482 and the sector size is 2048 bytes.
483 The XA sector subheaders will be created by the drive.
484 The
485 .I Sony
486 drives have no hardware support for
487 .BR "CD-ROM XA mode 2 form 1" .
488 You have to specify the
489 .B \-data
490 option in order to create multi session disks on these drives.
491 As long as cdrecord does not have a coder for converting data sectors
492 to audio sectors, you need to force
493 .B CD-ROM
494 sectors by including the
495 .B \-data
496 option if you like to record a multisession disk in SAO mode.
497 Not all drives allow multisession CDs in SAO mode.
498 .TP
499 .B \-msinfo
500 Retrieve multi session info in a form suitable for
501 .B "mkisofs-1.10"
502 or later.
503 .sp
504 This option makes only sense with a CD that contains at least
505 one closed session and is appendable (not finally closed yet).
506 Some drives create error messages if you try to get the multi
507 session info for a disk that is not suitable for this operation.
508 .TP
509 .B \-toc
510 Retrieve and print out the table of content or PMA of a CD.
511 With this option,
512 .B cdrecord
513 will work with CD-R drives and with CD-ROM drives.
514 .TP
515 .B \-atip
516 Retrieve and print out the ATIP (absolute Time in Pre-groove) info of a CD/DVD
517 recordable or CD/DVD re-writable media.
518 With this option,
519 .B cdrecord
520 will try to retrieve the ATIP info. If the actual drive does not support
521 to read the ATIP info, it may be that only a reduced set of information
522 records or even nothing is displayed. Only a limited number of MMC compliant
523 drives support to read the ATIP info.
524 .sp
525 If
526 .B cdrecord
527 is able to retrieve the lead-in start time for the first session, it will try to
528 decode and print the manufacturer info from the media.
529 DVD media does not have ATIP information but there is equivalent prerecorded
530 information that is read out and printed.
531 .TP
532 .B \-fix
533 The disk will only be fixated (i.e. a TOC for a CD-Reader will be written).
534 This may be used, if for some reason the disk has been written but not
535 fixated. This option currently does not work with old TEAC drives (CD-R50S and
536 CD-R55S).
537 .TP
538 .B \-nofix
539 Do not fixate the disk after writing the tracks. This may be used
540 to create an audio disk in steps. An un-fixated disk can usually not be used
541 on a non CD-writer type drive but there are audio CD players that will
542 be able to play such a disk.
543 .TP
544 .B \-waiti
545 Wait for input to become available on standard input before trying to open
546 the SCSI driver. This allows
547 .B cdrecord
548 to read it's input from a pipe even
549 when writing additional sessions to a multi session disk.
550 When writing another session to a multi session disk,
551 .B mkisofs
552 needs to read the old session from the device before writing output.
553 This cannot be done if
554 .B cdrecord
555 opens the SCSI driver at the same time.
556 .TP
557 .B \-load
558 Load the media and exit. This only works with a tray loading mechanism
559 but seems to be useful when using the Kodak disk transporter.
560 .TP
561 .B \-lock
562 Load the media, lock the door and exit. This only works with a tray loading mechanism
563 but seems to be useful when using the Kodak disk transporter.
564 .TP
565 .B \-eject
566 Eject disk after doing the work.
567 Some devices (e.g. Philips) need to eject the medium before creating a new
568 disk. Doing a \-dummy test and immediately creating a real disk would not
569 work on these devices.
570 .TP
571 .BR speed= #
572 Set the speed factor of the writing process to #.
573 # is an integer, representing a multiple of the audio speed.
574 This is about 150\ KB/s for CD-ROM, about 172\ KB/s for CD-Audio and about 1385\ kB/s
575 for DVD media.
576 If no
577 .I speed
578 option is present,
579 .B cdrecord
580 will try to get a drive specific speed value from the file
581 .B /etc/default/cdrecord
582 and if it cannot find one, it will try to get the speed value from the
583 .B CDR_SPEED
584 environment and later from the
585 .B CDR_SPEED=
586 entry in
587 .BR /etc/default/cdrecord .
588 If no speed value could be found, cdrecord uses a drive specific default speed.
589 The default for all new (MMC compliant) drives is to use the maximum supported by the drive.
590 If you use
591 .I "speed=0"
592 with a MMC compliant drive,
593 .B cdrecord
594 will switch to the lowest possible speed for drive and medium.
595 If you are using an old (non MMC) drive that has problems with
596 .I "speed=2
597 or
598 .IR "speed=4" ,
599 you should try
600 .IR "speed=0" .
601 .TP
602 .BI blank= type
603 Blank a CD-RW and exit or blank a CD-RW before writing. The blanking type may be one of:
604 .RS
605 .TP 12
606 help
607 Display a list of possible blanking types.
608 .TP
609 all
610 Blank the entire disk. This may take a long time.
611 .TP
612 fast
613 Minimally blank the disk. This results in erasing the PMA, the TOC and the pregap.
614 .TP
615 track
616 Blank a track.
617 .TP
618 unreserve
619 Unreserve a reserved track.
620 .TP
621 trtail
622 Blank the tail of a track.
623 .TP
624 unclose
625 Unclose last session.
626 .TP
627 session
628 Blank the last session.
629 .RE
630 Not all drives support all blanking types. It may be necessary to use
631 .B "blank=all
632 if a drive reports a specified command as being invalid.
633 If used together with the
634 .B \-force
635 flag, this option may be used to blank CD-RW disks that otherwise cannot be
636 blanked. Note that you may need to specify
637 .BI blank= all
638 because some drives will not continue with certain types of bad CD-RW
639 disks. Note also that
640 .B cdrecord
641 does it's best if the
642 .B \-force
643 flag is used but it finally depends on the drive's firmware
644 whether the blanking operation will succeed or not.
645 .TP
646 .B \-format
647 Format a CD-RW/DVD-RW/DVD+RW disc.
648 Formatting is currently only implemented for DVD+RW media.
649 A 'maiden' DVD+RW media needs to
650 be formatted before you may write to it.
651 However, as
652 .B cdrecord
653 autodetects the need for formatting in this case and auto formats the medium
654 before it starts writing, the
655 .B \-format
656 option is only needed if you like to forcibly reformat a DVD+RW medium.
657 .TP
658 .BR fs= #
659 Set the FIFO (ring buffer) size to #.
660 You may use the same syntax as in
661 .BR dd (1),
662 .BR sdd (1)
663 or
664 .BR star (1).
665 The number representing the size is taken in bytes unless otherwise specified.
666 If a number is followed directly by the letter `b', `k', `m', `s' or `f',
667 the size is multiplied by 512, 1024, 1024*1024, 2048 or 2352.
668 If the size consists of numbers separated by `x' or `*', multiplication of the
669 two numbers is performed.
670 Thus
671 .I "fs=10x63k
672 will specify a FIFO size of 630\ kBytes.
673 .sp
674 The size specified by the
675 .I fs=
676 argument includes the shared memory that is needed for administration. This
677 is at least one page of memory.
678 If no
679 .IR fs =
680 option is present,
681 .B cdrecord
682 will try to get the FIFO size value from the
683 .B CDR_FIFOSIZE
684 environment.
685 The default FIFO size is currently 4 MB.
686 .sp
687 The FIFO is used to increase buffering for the real time writing process.
688 It allows to run a pipe from
689 .B mkisofs
690 directly into
691 .BR cdrecord .
692 If the FIFO is active and a pipe from
693 .B mkisofs
694 into
695 .B cdrecord
696 is used to create a CD,
697 .B cdrecord
698 will abort prior to do any modifications on the disk if
699 .B mkisofs
700 dies before it starts writing.
701 The recommended FIFO size is between 4 and 128\ MBytes.
702 As a rule of thumb, the FIFO size should be at least equal to the size
703 of the internal buffer of the CD/DVD-Recorder and no more than half of
704 the physical amount of RAM available in the machine.
705 If the FIFO size is big enough, the FIFO statistics will print a FIFO
706 empty count of zero and the FIFO min fill is not below 20%.
707 It is not wise to use too much space for the FIFO. If you need more
708 than 8 MB to write a CD at a speed less than 20x from an image on a
709 local file system on an idle machine, your machine is either underpowered,
710 has hardware problems or is mis-configured.
711 If you like to write DVDs or to write CDs at higher speed, it makes sense
712 to use at least 16\ MB for the FIFO.
713 .sp
714 On old and small machines, you need to be more careful with the FIFO size.
715 If your machine has less than 256\ MB of physical RAM, you should not
716 set up a FIFO size that is more than 32\ MB.
717 The sun4c architecture (e.g. a Sparcstation-2) has only MMU page table entries
718 for 16\ MBytes per process. Using more than 14\ MBytes for the FIFO
719 may cause the operating system in this case to spend much time to constantly
720 reload the MMU tables. Newer machines from Sun do not have this MMU
721 hardware problem. I have no information on PC-hardware reflecting
722 this problem.
723 .sp
724 Old Linux systems for non x86 platforms have broken definitions for
725 the shared memory size. You need to fix them and rebuild the kernel
726 or manually tell
727 .B cdrecord
728 to use a smaller FIFO.
729 .sp
730 If you have buffer underruns or similar problems (like a constantly empty
731 drive buffer) and observe a zero
732 .IR "fifo empty count" ,
733 you have hardware problems that prevents the data from flowing fast enough
734 from the kernel memory to the drive. The FIFO size in this case is sufficient,
735 but you should check for a working DMA setup.
736 .TP
737 .BR ts= #
738 Set the maximum transfer size for a single SCSI command to #.
739 The syntax for the
740 .B ts=
741 option is the same as for cdrecord fs=# or sdd bs=#.
742 .sp
743 If no
744 .B ts=
745 option has been specified,
746 .B cdrecord
747 defaults to a transfer size of 63\ kB. If libscg gets lower values from the
748 operating system, the value is reduced to the maximum value that is possible
749 with the current operating system.
750 Sometimes, it may help to further reduce the transfer size or to enhance it,
751 but note that it may take a long time to find a better value by experimenting
752 with the
753 .B ts=
754 option.
755 .TP
756 .BI dev= target
757 Sets the SCSI target for the CD/DVD-Recorder, see notes above.
758 A typical device specification is
759 .BI dev= 6,0
760 \&.
761 If a filename must be provided together with the numerical target
762 specification, the filename is implementation specific.
763 The correct filename in this case can be found in the system specific
764 manuals of the target operating system.
765 On a
766 .I FreeBSD
767 system without
768 .I CAM
769 support, you need to use the control device (e.g.
770 .IR /dev/rcd0.ctl ).
771 A correct device specification in this case may be
772 .BI dev= /dev/rcd0.ctl:@
773 \&.
774 .sp
775 On Linux, drives connected to a parallel port adapter are mapped
776 to a virtual SCSI bus. Different adapters are mapped to different
777 targets on this virtual SCSI bus.
778 .sp
779 If no
780 .I dev
781 option is present,
782 .B cdrecord
783 will try to get the device from the
784 .B CDR_DEVICE
785 environment.
786 .sp
787 If the argument to the
788 .B dev=
789 option does not contain the characters ',', '/', '@' or ':',
790 it is interpreted as an label name that may be found in the file
791 /etc/default/cdrecord (see FILES section).
792 .TP
793 .BI gracetime= #
794 Set the grace time before starting to write to
795 .IR # " seconds.
796 Values below 2 seconds are not allowed.
797 .TP
798 .BI timeout= #
799 Set the default SCSI command timeout value to
800 .IR # " seconds.
801 The default SCSI command timeout is the minimum timeout used for sending
802 SCSI commands.
803 If a SCSI command fails due to a timeout, you may try to raise the
804 default SCSI command timeout above the timeout value of the failed command.
805 If the command runs correctly with a raised command timeout,
806 please report the better timeout value and the corresponding command to
807 the author of the program.
808 If no
809 .I timeout
810 option is present, a default timeout of 40 seconds is used.
811 .TP
812 .BI driver= name
813 Allows the user to manually select a driver for the device.
814 The reason for the existence of the
815 .BI driver= name
816 option is to allow users to use
817 .B cdrecord
818 with drives that are similar to supported drives but not known
819 directly by
820 .BR cdrecord .
821 All drives made after 1997 should be MMC standard compliant and
822 thus supported by one of the MMC drivers.
823 It is most unlikely that
824 .B cdrecord
825 is unable to find the right driver automatically.
826 Use this option with extreme care. If a wrong driver is used for a
827 device, the possibility of creating corrupted disks is high.
828 The minimum problem related to a wrong driver is that the
829 .B \-speed
830 or
831 .B \-dummy
832 will not work.
833 .br
834 .RS
835 .ne 8
836 .PP
837 The following driver names are supported:
838 .TP
839 .B help
840 To get a list of possible drivers together with a short description.
841 .TP
842 .B mmc_cd
843 The generic SCSI-3/mmc CD-ROM driver is auto-selected whenever
844 .B cdrecord
845 finds a MMC compliant drive that does not identify itself to support writing at
846 all, or that only identifies to support media or write modes not implemented in
847 .BR cdrecord .
848 .TP
849 .B mmc_cd_dvd
850 The generic SCSI-3/mmc CD/DVD driver is auto-selected whenever
851 .B cdrecord
852 finds a MMC-2 or MMC-3 compliant drive that seems to support more than
853 one medium type and the tray is open or no medium could be found to select the
854 right driver.
855 This driver tries to close the tray, checks the medium found in the tray and then
856 branches to the driver that matches the current medium.
857 .TP
858 .B mmc_cdr
859 The generic SCSI-3/mmc CD-R/CD-RW driver is auto-selected whenever
860 .B cdrecord
861 find a MMC compliant drive that only supports to write CDs or a multi system
862 drive that contains a CD as the current medium.
863 .TP
864 .B mmc_cdr_sony
865 The generic SCSI-3/mmc CD-R/CD-RW driver is auto-selected whenever
866 .B cdrecord
867 would otherwise select the
868 .B mmc_cdr
869 driver but the device seems to be made by Sony.
870 The
871 .B mmc_cdr_sony
872 is definitely needed for the Sony CDU 928 as this drive does not completely
873 implement the MMC standard and some of the MMC SCSI commands have to be
874 replaced by Sony proprietary commands. It seems that all Sony drives (even
875 newer ones) still implement the Sony proprietary SCSI commands so it has
876 not yet become a problem to use this driver for all Sony drives. If you find
877 a newer Sony drive that does not work with this driver, please report.
878 .TP
879 .B mmc_dvd
880 The generic SCSI-3/mmc-2 DVD-R/DVD-RW driver is auto-selected whenever
881 .B cdrecord
882 finds a MMC-2 or MMC-3 compliant drive that supports to write DVDs and
883 an appropriate medium is loaded.
884 There is no Track At Once mode for DVD writers.
885 .TP
886 .B mmc_dvdplus
887 The generic SCSI-3/mmc-3 DVD+R/DVD+RW driver is auto-selected whenever
888 one of the DVD+ media types that are incompatible to each other is found.
889 It checks media and then
890 branches to the driver that matches the current medium.
891 .TP
892 .B mmc_dvdplusr
893 The generic SCSI-3/mmc-3 DVD+R driver is auto-selected whenever
894 a DVD+R medium is found in an appropriate writer.
895 Note that for unknown reason, the DVD-Plus alliance does not
896 like that there is a simulation mode for DVD+R media.
897 The author of
898 .B cdrecord
899 tries to convince manufacturers to implement a simulation mode for DVD+R
900 and implement support.
901 DVD+R only supports one write mode that is somewhere between Track At Once
902 and Packet writing; this mode is selected in
903 .B cdrecord
904 via a the
905 .BR \-dao / \-sao
906 option.
907 .TP
908 .B mmc_dvdplusrw
909 The generic SCSI-3/mmc-3 DVD+RW driver is auto-selected whenever
910 a DVD+RW medium is found in an appropriate writer.
911 As DVD+RW media needs to be formatted before it's first use, cdrecord
912 auto-detects this media state and performs a format before it starts
913 to write.
914 Note that for unknown reason, the DVD-Plus alliance does not
915 like that there is a simulation mode nor a way to erase DVD+RW media.
916 DVD+RW only supports one write mode that is close to
917 Packet writing; this mode is selected in
918 .B cdrecord
919 via a the
920 .BR \-dao / \-sao
921 option.
922 .TP
923 .B cw_7501
924 The driver for Matsushita/Panasonic CW-7501 is auto-selected when
925 .B cdrecord
926 finds this old pre MMC drive.
927 .B Cdrecord
928 supports all write modes for this drive type.
929 .TP
930 .B kodak_pcd_600
931 The driver for Kodak PCD-600 is auto-selected when
932 .B cdrecord
933 finds this old pre MMC drive which has been the first high speed (6x)
934 CD writer for a long time. This drive behaves similar to the
935 Philips CDD-521 drive.
936 .TP
937 .B philips_cdd521
938 The driver for Philips CDD-521 is auto-selected when
939 .B cdrecord
940 finds a Philips CDD-521 drive (which is the first CD writer ever made)
941 or one of the other drives that are known to behave similar to this
942 drive.
943 All Philips CDD-521 or similar drives (see other drivers in this list)
944 do not support Session At Once recording.
945 .TP
946 .B philips_cdd521_old
947 The driver for Philips old CDD-521 is auto-selected when
948 .B cdrecord
949 finds a Philips CDD-521 with very old firmware which has some known limitations.
950 .TP
951 .B philips_cdd522
952 The driver for Philips CDD-522 is auto-selected when
953 .B cdrecord
954 finds a Philips CDD-522 which is the successor of the 521 or one of it's variants
955 with Kodak label.
956 .B Cdrecord
957 does not support Session At Once recording with these drives.
958 .TP
959 .B philips_dumb
960 The driver for Philips CDD-521 with pessimistic assumptions is never auto-selected.
961 It may be used by hand with drives that behave similar to the Philips CDD-521.
962 .TP
963 .B pioneer_dws114x
964 The driver for Pioneer DW-S114X is auto-selected when
965 .B cdrecord
966 finds one of the old non MMC CD writers from Pioneer.
967 .TP
968 .B plasmon_rf4100
969 The driver for Plasmon RF 4100 is auto-selected when
970 .B cdrecord
971 finds this specific variant of the Philips CDD-521.
972 .TP
973 .B ricoh_ro1060c
974 The driver for Ricoh RO-1060C is auto-selected when
975 .B cdrecord
976 finds this drive. There is no real support for this drive yet.
977 .TP
978 .B ricoh_ro1420c
979 The driver for Ricoh RO-1420C is auto-selected when
980 .B cdrecord
981 finds a drive with this specific variant of the Philips CDD-521 command set.
982 .TP
983 .B scsi2_cd
984 The generic SCSI-2 CD-ROM driver is auto-selected whenever
985 .B cdrecord
986 finds a pre MMC drive that does not support writing or a pre MMC writer that is
987 not supported by
988 .BR cdrecord .
989 .TP
990 .B sony_cdu924
991 The driver for Sony CDU-924 / CDU-948 is auto-selected whenever
992 .B cdrecord
993 finds one of the old pre MMC CD writers from Sony.
994 .TP
995 .B teac_cdr50
996 The driver for Teac CD-R50S, Teac CD-R55S, JVC XR-W2010, Pinnacle RCD-5020
997 is auto-selected whenever one of the drives is found that is known to the
998 non MMC command set used by TEAC and JVC.
999 Note that many drives from JVC will not work because they do not correctly implement
1000 the documented command set and JVC has been unwilling to fix or document the
1001 bugs.
1002 There is no support for the Session At Once write mode yet.
1003 .TP
1004 .B tyuden_ew50
1005 The driver for Taiyo Yuden EW-50 is auto-selected when
1006 .B cdrecord
1007 finds a drive with this specific variant of the Philips CDD-521 command set.
1008 .TP
1009 .B yamaha_cdr100
1010 The driver for Yamaha CDR-100 / CDR-102 is auto-selected when
1011 .B cdrecord
1012 finds one of the old pre MMC CD writers from Yamaha.
1013 There is no support for the Session At Once write mode yet.
1014 .TP
1015 .B cdr_simul
1016 The simulation CD-R driver allows to run timing and speed tests
1017 with parameters that match the behavior of CD writers.
1018 .TP
1019 .B dvd_simul
1020 The simulation DVD-R driver allows to run timing and speed tests
1021 with parameters that match the behavior of DVD writers.
1022 .PP
1023
1024 .sp
1025 There are two special driver entries in the list:
1026 .B cdr_simul
1027 and
1028 .BR dvd_simul .
1029 These driver entries are designed to make timing tests at any speed
1030 or timing tests for drives that do not support the
1031 .B \-dummy
1032 option.
1033 The simulation drivers implement a drive with a buffer size of 1\ MB
1034 that can be changed via the
1035 .B CDR_SIMUL_BUFSIZE
1036 environment variable.
1037 The simulation driver correctly simulates even a buffer underrun condition.
1038 If the
1039 .B \-dummy
1040 option is present, the simulation is not aborted in case of a buffer underrun.
1041 .RE
1042 .TP
1043 .BI driveropts= "option list"
1044 Set driver specific options. The options are specified a comma separated list.
1045 To get a list of valid options use
1046 .BI driveropts= help
1047 together with the
1048 .I \-checkdrive
1049 option.
1050 If you like to set driver options without running a typical
1051 .B cdrecord
1052 task, you need to use the
1053 .B \-setdropts
1054 option in addition, otherwise the command line parser in
1055 .B cdrecord
1056 will complain.
1057 Currently implemented driver options are:
1058 .RS
1059 .TP
1060 .B burnfree
1061 Turn the support for Buffer Underrun Free writing on.
1062 This only works for drives that support Buffer Underrun Free technology.
1063 This may be called:
1064 .BR "Sanyo BURN-Proof" ,
1065 .BR "Ricoh Just-Link" ,
1066 .B "Yamaha Lossless-Link"
1067 or similar.
1068 .sp
1069 The default is to turn
1070 .B BURN-Free
1071 off, regardless of the defaults of the drive.
1072 .TP
1073 .B noburnfree
1074 Turn the support for Buffer Underrun Free writing off.
1075 .TP
1076 .BI varirec= value
1077 Turn on the
1078 .B "Plextor VariRec"
1079 writing mode. The mandatory parameter
1080 .I value
1081 is the laser power offset and currently may be selected from
1082 -2, -1, 0, 1, 2.
1083 In addition, you need to set the write speed to 4 in order to allow
1084 .B "VariRec"
1085 to work.
1086 .TP
1087 .BI gigarec= value
1088 Manage the
1089 .B "Plextor GigaRec"
1090 writing mode. The mandatory parameter
1091 .I value
1092 is the disk capacity ratio compared to normal recording and currently may be selected from
1093 0.6, 0.7, 0.8, 1.0, 1.2, 1.3, 1.4.
1094 If values < 1.0 are used, then the effect is similar to the
1095 .B "Yamaha Audio Master Q. R."
1096 feature. If values > 1.0 are used, then the disk capacity is
1097 increased.
1098 .sp
1099 Not all drives support all
1100 .B GigaRec
1101 values.
1102 When a drive uses the
1103 .B GigaRec
1104 feature, the write speed is limited to 8x.
1105 .TP
1106 .B audiomaster
1107 Turn on the
1108 .B "Yamaha Audio Master Q. R."
1109 feature which usually should result in high quality CDs that
1110 have less reading problems in Hi-Fi players.
1111 As this is implemented as a variant of the
1112 Session at Once write mode, it will only work if you select
1113 SAO write mode and there is no need to turn it off.
1114 The
1115 .B "Audio Master"
1116 mode will work with a limited speed but
1117 may also be used with data CDs. In
1118 .B "Audio Master"
1119 mode, the pits on the CD will be written larger then usual so the capacity
1120 of the medium is reduced when turning this feature on.
1121 A 74 minute CD will only have a capacity of 63 minutes if
1122 .B "Audio Master"
1123 is active and the capacity of a 80 minute CD will be reduced to 68 minutes.
1124 .TP
1125 .B forcespeed
1126 Normally, modern drives know the highest possible speed for different
1127 media and may reduce the speed in order to grant best write quality.
1128 This technology may be called:
1129 .BR "Plextor PowerRec" ,
1130 .BR "Ricoh Just-Speed" ,
1131 .B "Yamaha Optimum Write Speed Control"
1132 or similar.
1133 Some drives (e.g. Plextor, Ricoh and Yamaha) allow to force the drive to
1134 use the selected speed even if the medium is so bad that the
1135 write quality would be poor. This option tells such a drive to
1136 force to use the selected speed regardless of the medium quality.
1137 .sp
1138 Use this option with extreme care and note that the drive should know better
1139 which medium will work at full speed.
1140 The default is to turn
1141 .B forcespeed
1142 off, regardless of the defaults of the drive.
1143 .TP
1144 .B noforcespeed
1145 Turn off the
1146 .B "force speed
1147 feature.
1148 .TP
1149 .B speedread
1150 Some ultra high speed drives such as 48x and faster drives from Plextor
1151 limit the read speed for unknown media to e.g. 40x in order to avoid
1152 damaged disks and drives.
1153 Using this option tells the drive to read any media as fast as possible.
1154 Be very careful as this may cause the media to break in the drive
1155 while reading, resulting in a damaged media and drive!
1156 .TP
1157 .B nospeedread
1158 Turn off unlimited read speed.
1159 .TP
1160 .B singlesession
1161 Turn the drive into a single session only drive.
1162 This allows to read defective or non-compliant (illegal) media with extremely
1163 non-standard additional (broken/illegal) TOC entries in the TOC from the second
1164 or higher session. Some of these disks become
1165 usable if only the information from the first session is used.
1166 You need to enable Single Session mode before you insert the defective disk!
1167 .TP
1168 .B nosinglesession
1169 Turn off single session mode. The drive will again behave as usual.
1170 .TP
1171 .B hidecdr
1172 Hide the fact that a medium might be a recordable medium.
1173 This allows to make CD-Rs look like CD-ROMs and applications believe
1174 that the media in the drive is not a CD-R.
1175 .TP
1176 .B nohidecdr
1177 Turn off hiding CD-R media.
1178 .TP
1179 .B tattooinfo
1180 Use this option together with
1181 .B \-checkdrive
1182 to retrieve the image size information for the
1183 .B "Yamaha DiskT@2
1184 feature. The images always have a line length of 3744 pixel.
1185 Line number 0 (radius 0) is mapped to the center of the disk.
1186 If you know the inner and outer radius you will be able to create a
1187 pre distorted image that later may appear undistorted on the disk.
1188 .TP
1189 .BI tattoofile= name
1190 Use this option together with
1191 .B \-checkdrive
1192 to write an image prepared for the
1193 .B "Yamaha DiskT@2
1194 feature to the medium.
1195 The file must be a file with raw image B&W data (one byte per pixel)
1196 in a size as retrieved by a previous call to
1197 .BI tattoofile= name
1198 \&.
1199 If the size of the image equals the maximum possible size
1200 (3744 x 320 pixel),
1201 .B cdrecord
1202 will use the first part of the file. This first part then will
1203 be written to the leftover space on the CD.
1204 .sp
1205 Note that the image must be mirrored to be readable from the pick up
1206 side of the CD.
1207 .RE
1208 .TP
1209 .B \-setdropts
1210 Set the driveropts specified by
1211 .BI driveropts= "option list" ,
1212 the
1213 .B speed
1214 of the drive and the
1215 .B dummy
1216 flag and exit.
1217 This allows cdrecord to set drive specific parameters that are not directly
1218 used by
1219 .B cdrecord
1220 like e.g.
1221 .BR "single session mode" ", " "hide cdr"
1222 and similar.
1223 It is needed in case that
1224 .BI driveropts= "option list"
1225 should be called without planning to run a typical
1226 .B cdrecord
1227 task.
1228 .TP
1229 .B \-checkdrive
1230 Checks if a driver for the current drive is present and exit.
1231 If the drive is a known drive,
1232 .B cdrecord
1233 uses exit code 0.
1234 .TP
1235 .B \-prcap
1236 Print the drive capabilities for SCSI-3/mmc compliant drives
1237 as obtained from mode page 0x2A. Values marked with
1238 .I kB
1239 use 1000 bytes as kilo-byte, values marked with
1240 .I KB
1241 use 1024 bytes as Kilo-byte.
1242 .TP
1243 .B \-inq
1244 Do an inquiry for the drive, print the inquiry info and exit.
1245 .TP
1246 .B \-scanbus
1247 Scan all SCSI devices on all SCSI busses and print the inquiry
1248 strings. This option may be used to find SCSI address of the
1249 CD/DVD-Recorder on a system.
1250 The numbers printed out as labels are computed by:
1251 .B "bus * 100 + target
1252 .TP
1253 .B \-reset
1254 Try to reset the SCSI bus where the CD recorder is located. This works not
1255 on all operating systems.
1256 .TP
1257 .B \-abort
1258 Try to send an
1259 .B abort
1260 sequence to the drive.
1261 If you use
1262 .B cdrecord
1263 only, this should never be needed; but other software may leave a drive
1264 in an unusable condition.
1265 Calling
1266 .B "cdrecord \-reset
1267 may be needed if a previous write has been interrupted and the software did
1268 not tell the drive that it will not continue to write.
1269 .TP
1270 .B \-overburn
1271 Allow
1272 .B cdrecord
1273 to write more than the official size of a medium. This feature is usually
1274 called
1275 .I overburning
1276 and depends on the fact that most blank media may hold more space than the
1277 official size. As the official size of the lead-out area on the disk is
1278 90 seconds (6750 sectors) and a disk usually works if there are at least
1279 150 sectors of lead out, all media may be overburned by at least 88 seconds
1280 (6600 sectors).
1281 Most CD recorders only do overburning in
1282 .B SAO
1283 or
1284 .B RAW
1285 mode. Known exceptions are TEAC CD-R50S, TEAC CD-R55S and the Panasonic
1286 CW-7502.
1287 Some drives do not allow to overburn as much as you might like and limit
1288 the size of a CD to e.g. 76 minutes. This problem may be circumvented by
1289 writing the CD in RAW mode because this way the drive has no chance to find
1290 the size before starting to burn.
1291 There is no guarantee that your drive supports overburning at all.
1292 Make a test to check if your drive implements the feature.
1293 .TP
1294 .B \-ignsize
1295 Ignore the known size of the medium. This option should be used with extreme
1296 care, it exists only for debugging purposes don't use it for other reasons.
1297 It is not needed to write disks with more than the nominal capacity.
1298 This option implies
1299 .BR \-overburn .
1300 .TP
1301 .B \-useinfo
1302 Use
1303 .B "*.inf
1304 files to overwrite audio options.
1305 If this option is used, the pregap size information is read from
1306 the
1307 .B "*.inf
1308 file that is associated with the file that contains the audio
1309 data for a track.
1310 .sp
1311 If used together with the
1312 .B \-audio
1313 option,
1314 .B cdrecord
1315 may be used to write audio CDs from a pipe from
1316 .B cdda2wav
1317 if you call
1318 .B cdrecord
1319 with the
1320 .B *.inf
1321 files as track parameter list instead of using audio files.
1322 The audio data is read from
1323 .B stdin
1324 in this case.
1325 See
1326 .B EXAMPLES
1327 section below.
1328 .B Cdrecord
1329 first verifies that
1330 .B stdin
1331 is not connected to a terminal and runs some heuristic consistency checks
1332 on the
1333 .B *.inf
1334 files and then sets the track lengths from the information in
1335 the
1336 .B *.inf
1337 files.
1338 .sp
1339 If you like to write from
1340 .BR stdin ,
1341 make sure that cdrecord is called with a large enough FIFO size, reduce the write
1342 speed to a value below the read speed of the source drive and switch the burn-free
1343 option for the recording drive on.
1344 .TP
1345 .BR defpregap= #
1346 Set the default pre-gap size for all tracks except track number 1.
1347 This option currently only makes sense with the TEAC drive when
1348 creating track-at-once disks without the 2 second silence before each track.
1349 .br
1350 This option may go away in future.
1351 .TP
1352 .B \-packet
1353 Set
1354 .B "Packet writing mode.
1355 This is an experimental interface.
1356 .TP
1357 .BR pktsize= #
1358 Set the packet size to #, forces fixed packet mode.
1359 This is an experimental interface.
1360 .TP
1361 .B \-noclose
1362 Do not close the current track, useful only when in packet writing mode.
1363 This is an experimental interface.
1364 .TP
1365 .BI mcn= med_cat_nr
1366 Set the
1367 .B "Media Catalog Number
1368 of the CD to
1369 .IR med_cat_nr .
1370 .TP
1371 .B \-text
1372 Write CD-Text information
1373 based on information taken from a file that contains ascii information
1374 for the text strings.
1375 .B Cdrecord
1376 supports CD-Text information based on the content of the
1377 .B *.inf
1378 files created by
1379 .B cdda2wav
1380 and CD-Text information based on the content from a
1381 .B "CUE sheet
1382 file.
1383 If a
1384 .B "CUE sheet
1385 file contains both (binary CDTEXTFILE and text based SONGWRITER)
1386 entries, then the information based on the CDTEXTFILE entry will win.
1387 .sp
1388 You need to use the
1389 .B \-useinfo
1390 option in addition in order to tell
1391 .B cdrecord
1392 to read the
1393 .B "*.inf
1394 files or
1395 .BI cuefile= filename
1396 in order to tell
1397 .B cdrecord
1398 to read a
1399 .B CUE sheet
1400 file in addition.
1401 If you like to write your own CD-Text information,
1402 edit the
1403 .B *.inf
1404 files or the
1405 .B "CUE sheet
1406 file with a text editor and change the fields
1407 that are relevant for CD-Text.
1408 .TP
1409 .BI textfile= filename
1410 Write CD-Text based on information found in the binary file
1411 .IR filename .
1412 This file must contain information in a data format defined in the
1413 SCSI-3 MMC-2 standard and in the Red Book. The four byte size header that is
1414 defined in the SCSI standard is optional and allows to make the recognition of
1415 correct data less ambiguous.
1416 This is the best option to be used to copy CD-Text data from existing CDs
1417 that already carry CD-Text information. To get data in a format suitable
1418 for this option use
1419 .B cdrecord \-vv \-toc
1420 to extract the information from disk.
1421 If both,
1422 .BI textfile= filename
1423 and CD-Text information from
1424 .B *.inf
1425 or
1426 .B *.cue
1427 files are present,
1428 .BI textfile= filename
1429 will overwrite the other information.
1430 .TP
1431 .BI cuefile= filename
1432 Take all recording related information from a CDRWIN compliant
1433 .B "CUE sheet
1434 file.
1435 No track files are allowed when this option is present and the option
1436 .B \-dao
1437 is currently needed in addition.
1438
1439 .SH "TRACK OPTIONS
1440 .PP
1441 Track options may be mixed with track file names.
1442 .TP
1443 .BI isrc= ISRC_number
1444 Set the
1445 .B "International Standard Recording Number
1446 for the next track to
1447 .IR ISRC_number .
1448 .TP
1449 .BI index= list
1450 Sets an index list for the next track.
1451 In index list is a comma separated list of numbers that are counting
1452 from index 1. The first entry in this list must contain a 0, the following
1453 numbers must be an ascending list of numbers (counting in 1/75 seconds) that
1454 represent the start of the indices. An index list in the form:
1455 0,7500,15000 sets index 1 to the start of the track, index 2 100 seconds from
1456 the start of the track and index 3 200 seconds from the start of the track.
1457 .TP
1458 .B \-audio
1459 If this flag is present, all subsequent tracks are written in
1460 .B "CD-DA
1461 (similar to Red Book) audio format.
1462 The file with data for this tracks should
1463 contain stereo, 16-bit digital audio with 44100 samples/s.
1464 The byte order should be the following: MSB left, LSB left,
1465 MSB right, LSB right, MSB left and so on. The track should be a multiple of
1466 2352 bytes. It is not possible to put the master image of an audio track
1467 on a raw disk because
1468 data will be read in multiple of 2352 bytes during the recording process.
1469 .sp
1470 If a filename ends in
1471 .I .au
1472 or
1473 .I .wav
1474 the file is considered to be a structured audio data file.
1475 .B Cdrecord
1476 assumes that the file in this case is a Sun audio file or a
1477 Microsoft .WAV file
1478 and extracts the audio data from the files by skipping over the
1479 non-audio header information.
1480 In all other cases, cdrecord will only work correctly if the
1481 audio data stream does not have any header.
1482 Because many structured audio files do not have an integral
1483 number of blocks (1/75th second) in length,
1484 it is often necessary to specify the
1485 .B \-pad
1486 option as well.
1487 .B cdrecord
1488 recognizes that audio data in a .WAV file is stored in Intel
1489 (little-endian) byte order, and will automatically byte-swap the data
1490 if the CD recorder requires big-endian data.
1491 .B Cdrecord
1492 will reject any audio file that does not match the Red Book requirements
1493 of 16-bit stereo samples in PCM coding at 44100 samples/second.
1494 .sp
1495 Using other structured audio data formats as input to
1496 .B cdrecord
1497 will usually work if the structure of the data is the
1498 structure described above (raw pcm data in big-endian byte order).
1499 However, if the data format includes a header,
1500 you will hear a click at the start of a track.
1501 .TP
1502 .I " "
1503 If neither
1504 .I \-data
1505 nor
1506 .I \-audio
1507 have been specified,
1508 .B cdrecord
1509 defaults to
1510 .I \-audio
1511 for all filenames that end in
1512 .I .au
1513 or
1514 .I .wav
1515 and to
1516 .I \-data
1517 for all other files.
1518 .TP
1519 .B \-swab
1520 If this flag is present, audio data is assumed to be in byte-swapped
1521 (little-endian) order. Some types of CD-Writers e.g. Yamaha, Sony and the
1522 new SCSI-3/mmc drives require audio data to be presented in
1523 little-endian order,
1524 .\" (which is the order in which it's actually recorded on the CD) ????
1525 while other writers require audio data to be
1526 presented in the big-endian (network) byte order normally used by the
1527 SCSI protocol.
1528 .B Cdrecord
1529 knows if a CD-Recorder needs audio data in big- or little-endian order,
1530 and corrects the byte order of the data stream to match the needs
1531 of the recorder.
1532 You only need the
1533 .I \-swab
1534 flag if your data stream is in Intel (little-endian) byte order.
1535 .sp
1536 Note that the verbose output of
1537 .B cdrecord
1538 will show you if swapping is necessary to make the byte order of
1539 the input data fit the required byte order of the recorder.
1540 .B Cdrecord
1541 will not show you if the
1542 .I \-swab
1543 flag was actually present for a track.
1544 .TP
1545 .B \-data
1546 If this flag is present, all subsequent tracks are written in
1547 .B "CD-ROM mode 1
1548 (Yellow Book) format. The data size is a multiple of 2048 bytes.
1549 The file with track data should contain an
1550 .BR ISO-9660 " or " "Rock Ridge
1551 filesystem image (see
1552 .B mkisofs
1553 for more details). If the track data is an
1554 .B ufs
1555 filesystem image, fragment size should be set to 2\ KB or more to allow
1556 CD-drives with 2\ KB sector size to be used for reading.
1557 .TP
1558 .I " "
1559 .I \-data
1560 is the default, if no other flag is present and the file does not
1561 appear to be of one of the well known audio file types.
1562 .TP
1563 .I " "
1564 If neither
1565 .I \-data
1566 nor
1567 .I \-audio
1568 have been specified,
1569 .B cdrecord
1570 defaults to
1571 .I \-audio
1572 for all filenames that end in
1573 .I .au
1574 or
1575 .I .wav
1576 and to
1577 .I \-data
1578 for all other files.
1579 .TP
1580 .B \-mode2
1581 If this flag is present, all subsequent tracks are written in
1582 .B "CD-ROM mode 2
1583 format. The data size is a multiple of 2336 bytes.
1584 .TP
1585 .B \-xa
1586 If this flag is present, all subsequent tracks are written in
1587 .B "CD-ROM XA mode 2 form 1
1588 format. The data size is a multiple of 2048 bytes.
1589 The XA sector sub headers will be created by the drive.
1590 With this option, the write mode is the same as with the
1591 .B \-multi
1592 option.
1593 .TP
1594 .B \-xa1
1595 If this flag is present, all subsequent tracks are written in
1596 .B "CD-ROM XA mode 2 form 1
1597 format. The data size is a multiple of 2056 bytes.
1598 The XA sector sub headers are part of the user data and have to be
1599 supplied by the application that prepares the data to be written.
1600 .TP
1601 .B \-xa2
1602 If this flag is present, all subsequent tracks are written in
1603 .B "CD-ROM XA mode 2 form 2
1604 format. The data is a multiple of 2324 bytes.
1605 The XA sector sub headers will be created by the drive.
1606 .TP
1607 .B \-xamix
1608 If this flag is present, all subsequent tracks are written in a way
1609 that allows a mix of
1610 .B "CD-ROM XA mode 2 form 1/2
1611 format. The data size is a multiple of 2332 bytes.
1612 The XA sector sub headers are part of the user data and have to be
1613 supplied by the application that prepares the data to be written.
1614 The CRC and the P/Q parity ECC/EDC information (depending on the sector
1615 type) have to be supplied by the application that prepares the data to be written.
1616 .TP
1617 .B \-cdi
1618 If this flag is present, the TOC type for the disk is set to
1619 .BR CDI .
1620 This only makes sense with XA disks.
1621 .TP
1622 .B \-isosize
1623 Use the
1624 .B "ISO-9660
1625 file system size as the size of the next track.
1626 This option is needed if you want
1627 .B cdrecord
1628 to directly read the image of a track from
1629 a raw disk partition or from a
1630 .I TAO
1631 master CD. In the first case the option
1632 .B \-isosize
1633 is needed to limit the size of the CD to the size of the ISO filesystem.
1634 In the second case the option
1635 .B \-isosize
1636 is needed to prevent
1637 .B cdrecord
1638 from reading the two run out blocks that are appended by each CD-recorder
1639 in track at once mode. These two run out blocks cannot be read and would
1640 cause a buffer underrun that would cause a defective copy.
1641 Do not use this option on files created by
1642 .B mkisofs
1643 and in case
1644 .B cdrecord
1645 reads the track data from
1646 .IR stdin .
1647 In the first case, you would prevent
1648 .B cdrecord
1649 from writing the amount of padding that has been appended by
1650 .B mkisofs
1651 and in the latter case, it will not work because
1652 .I stdin
1653 is not seekable.
1654 .sp
1655 If
1656 .B \-isosize
1657 is used for a track,
1658 .B cdrecord
1659 will automatically add padding for this track as if the
1660 .B \-pad
1661 option has been used but the amount of padding may be less than the padding
1662 written by
1663 .BR mkisofs .
1664 Note that if you use
1665 .B \-isosize
1666 on a track that contains Sparc boot information, the boot information will
1667 be lost.
1668 .sp
1669 Note also that
1670 this option cannot be used to determine the size of a file system
1671 if the multi session option is present.
1672 .TP
1673 .B \-pad
1674 If the track is a data track, 15 sectors of zeroed data
1675 will be added to the end of this and each subsequent data track.
1676 In this case, the
1677 .B \-pad
1678 option is superseded by the
1679 .B padsize=
1680 option. It will remain however as a shorthand for
1681 .BI padsize= 15s.
1682 If the
1683 .I \-pad
1684 option refers to an audio track,
1685 .B cdrecord
1686 will pad the audio data to be a multiple of 2352 bytes.
1687 The audio data padding is done with binary zeroes which is
1688 equal to absolute silence.
1689 .sp
1690 .B \-pad
1691 remains valid until disabled by
1692 .BR \-nopad .
1693 .TP
1694 .BR padsize= #
1695 Set the amount of data to be appended as padding to the next track to #.
1696 Opposed to the behavior of the
1697 .B \-pad
1698 option, the value for
1699 .I padsize=
1700 is reset to zero for each new track.
1701 Cdrecord assumes a sector size of 2048 bytes for the
1702 .I padsize=
1703 option, independent from the real
1704 sector size and independent from the write mode.
1705 The megabytes mentioned in the verbose mode output however are counting
1706 the output sector size which is e.g. 2448 bytes when writing in RAW/RAW96
1707 mode.
1708 See
1709 .BR fs =
1710 option for possible arguments.
1711 To pad the equivalent of 20 minutes on a CD, you may write
1712 .BR padsize= 20x60x75s.
1713 Use this option if your CD-drive is not able to read the last sectors of
1714 a track or if you want to be able to read the CD
1715 on a
1716 .B Linux
1717 system with the ISO-9660 filesystem read ahead bug.
1718 If an empty file is used for track data,
1719 this option may be used to create a disk that is entirely made of padding.
1720 This may e.g. be used to find out how much overburning is possible with a
1721 specific media.
1722 .TP
1723 .B \-nopad
1724 Do not pad the following tracks \- the default.
1725 .TP
1726 .B \-shorttrack
1727 Allow all subsequent tracks to violate the Red Book track length standard
1728 which requires a minimum track length of 4 seconds.
1729 This option is only useful when used in SAO or RAW mode.
1730 Not all drives support this feature. The drive must accept the
1731 resulting CUE sheet or support RAW writing.
1732 .TP
1733 .B \-noshorttrack
1734 Re-enforce the Red Book track length standard. Tracks must be
1735 at least 4 seconds.
1736 .TP
1737 .BR pregap= #
1738 Set the pre-gap size for the next track.
1739 This option currently only makes sense with the TEAC drive when
1740 creating track-at-once disks without the 2 second silence before each track.
1741 .br
1742 This option may go away in future.
1743 .TP
1744 .B \-preemp
1745 If this flag is present, all TOC entries for subsequent audio tracks
1746 will indicate that the audio data has been sampled with 50/15 \*msec
1747 pre-emphasis.
1748 The data, however is not modified during the process of transferring from file
1749 to disk.
1750 This option has no effect on data tracks.
1751 .TP
1752 .B \-nopreemp
1753 If this flag is present, all TOC entries for subsequent audio tracks
1754 will indicate that the audio data has been mastered with linear data \-
1755 this is the default.
1756 .TP
1757 .B \-copy
1758 If this flag is present, all TOC entries for subsequent audio tracks
1759 of the resulting CD
1760 will indicate that the audio data has permission to be copied without limit.
1761 This option has no effect on data tracks.
1762 .TP
1763 .B \-nocopy
1764 If this flag is present, all TOC entries for subsequent audio tracks
1765 of the resulting CD
1766 will indicate that the audio data has permission to be copied only once for
1767 personal use \-
1768 this is the default.
1769 .TP
1770 .B \-scms
1771 If this flag is present, all TOC entries for subsequent audio tracks
1772 of the resulting CD
1773 will indicate that the audio data has no permission to be copied anymore.
1774 .TP
1775 .BR tsize= #
1776 If the master image for the next track has been stored on a raw disk,
1777 use this option
1778 to specify the valid amount of data on this disk. If the image of the next
1779 track is stored in a regular file, the size of that file is taken to determine
1780 the length of this track.
1781 If the track contains an ISO 9660 filesystem image use the
1782 .I \-isosize
1783 option to determine the length of that filesystem image.
1784 .br
1785 In Disk at Once mode and with some drives that use
1786 the TEAC programming interface, even in Track at Once mode,
1787 .B cdrecord
1788 needs to know the size of each track before starting to write the disk.
1789 Cdrecord now checks this and aborts before starting to write.
1790 If this happens you will need to run
1791 .B "mkisofs -print-size
1792 before and use the output (with `s' appended) as an argument to the
1793 .BR tsize =
1794 option of
1795 .B cdrecord
1796 (e.g. tsize=250000s).
1797 .br
1798 See
1799 .BR fs =
1800 option for possible arguments.
1801
1802 .SH EXAMPLES
1803 .PP
1804 For all examples below, it will be assumed that the CD/DVD-Recorder is
1805 connected to the primary SCSI bus of the machine. The SCSI target id is
1806 set to 2.
1807 .PP
1808 To record a pure CD-ROM at double speed, using data from the file
1809 .IR cdimage.raw :
1810 .PP
1811 cdrecord \-v speed=2 dev=2,0 cdimage.raw
1812 .PP
1813 To create an image for a ISO 9660 filesystem with Rock Ridge extensions:
1814 .PP
1815 mkisofs \-R \-o cdimage.raw /home/joerg/master/tree
1816 .PP
1817 To check the resulting file before writing to CD on Solaris:
1818 .PP
1819 mount \-r \-F fbk \-o type=hsfs /dev/fbk0:cdimage.raw /mnt
1820 .PP
1821 On Linux:
1822 .PP
1823 mount cdimage.raw \-r \-t iso9660 \-o loop /mnt
1824 .PP
1825 Go on with:
1826 .br
1827 ls \-lR /mnt
1828 .br
1829 umount /mnt
1830 .PP
1831 If the overall speed of the system is sufficient and the structure of
1832 the filesystem is not too complex, cdrecord will run without creating an
1833 image of the ISO 9660 filesystem. Simply run the pipeline:
1834 .PP
1835 mkisofs \-R /master/tree | cdrecord \-v fs=6m speed=2 dev=2,0 -
1836 .PP
1837 The recommended minimum FIFO size for running this pipeline is 4 MBytes.
1838 As the default FIFO size is 4 MB, the
1839 .B fs=
1840 option needs only be present if you want to use a different FIFO size.
1841 If your system is loaded, you should run mkisofs in the real time class too.
1842 To raise the priority of
1843 .B mkisofs
1844 replace the command
1845 .PP
1846 mkisofs \-R /master/tree
1847 .br
1848 by
1849 .br
1850 priocntl \-e \-c RT \-p 59 mkisofs \-R /master/tree
1851 .sp
1852 on Solaris and by
1853 .sp
1854 nice --18 mkisofs \-R /master/tree
1855 .sp
1856 on systems that don't have
1857 .B "UNIX International
1858 compliant real-time scheduling.
1859 .PP
1860 Cdrecord runs at priority 59 on Solaris, you should run mkisofs
1861 at no more than priority 58. On other systems, you should run mkisofs
1862 at no less than nice --18.
1863 .PP
1864 Creating a CD-ROM without file system image on disk has been tested
1865 on a Sparcstation-2 with a Yamaha CDR-400. It did work up to quad speed
1866 when the machine was not loaded.
1867 A faster machine may be able to handle quad speed also in the loaded case.
1868 .PP
1869 To record a pure CD-DA (audio) at single speed, with each track contained
1870 in a file named
1871 .IR track01.cdaudio ,
1872 .IR track02.cdaudio ,
1873 etc:
1874 .PP
1875 cdrecord \-v speed=1 dev=2,0 -audio track*.cdaudio
1876 .PP
1877 To check if it will be ok to use double speed for the example above.
1878 Use the dummy write option:
1879 .PP
1880 cdrecord \-v \-dummy speed=2 dev=2,0 \-audio track*.cdaudio
1881 .PP
1882 To record a mixed-mode CD with an ISO 9660 filesystem from
1883 .I cdimage.raw
1884 on the first track, the other tracks being audio tracks from the files
1885 .IR track01.cdaudio ,
1886 .IR track02.cdaudio ,
1887 etc:
1888 .PP
1889 cdrecord \-v dev=2,0 cdimage.raw \-audio track*.cdaudio
1890 .PP
1891 To handle drives that need to know the size of a track before starting to write,
1892 first run
1893 .PP
1894 mkisofs -R -q -print-size /master/tree
1895 .PP
1896 and then run
1897 .PP
1898 mkisofs -R /master/tree | cdrecord speed=2 dev=2,0 tsize=XXXs -
1899 .PP
1900 where
1901 .I XXX
1902 is replaced by the output of the previous run of mkisofs.
1903 .PP
1904 To copy an audio CD in the most accurate way, first run
1905 .PP
1906 cdda2wav dev=2,0 \-vall cddb=0 -B \-Owav
1907 .PP
1908 and then run
1909 .PP
1910 cdrecord dev=2,0 \-v \-dao \-useinfo \-text *.wav
1911 .PP
1912 This will try to copy track indices and to read CD-Text information from disk.
1913 If there is no CD-Text information,
1914 .B cdda2wav
1915 will try to get the information from freedb.org instead.
1916 .PP
1917 To copy an audio CD from a pipe (without intermediate files), first run
1918 .PP
1919 cdda2wav dev=1,0 \-vall cddb=0 \-info-only
1920 .PP
1921 and then run
1922 .PP
1923 cdda2wav dev=1,0 \-no-infofile \-B \-Oraw \- | \\
1924 .br
1925 cdrecord dev=2,0 \-v \-dao \-audio \-useinfo \-text *.inf
1926 .PP
1927 This will get all information (including track size info) from the
1928 .B *.inf
1929 files and then read the audio data from stdin.
1930 .sp
1931 If you like to write from
1932 .BR stdin ,
1933 make sure that cdrecord is called with a large enough FIFO size (e.g.
1934 .BR fs=128m ),
1935 reduce the write speed to a value below the read speed of the source drive
1936 (e.g.
1937 .BR speed=12 ),
1938 and switch the burn-free
1939 option for the recording drive on by adding
1940 .BR driveropts=burnfree .
1941 .PP
1942 To set drive options without writing a CD (e.g. to switch a drive
1943 to single session mode), run
1944 .PP
1945 cdrecord dev=1,0 \-setdropts driveropts=singlesession
1946 .PP
1947 If you like to do this when no CD is in the drive, call
1948 .PP
1949 cdrecord dev=1,0 \-force \-setdropts driveropts=singlesession
1950 .PP
1951 To copy a CD in clone mode, first read the master CD using:
1952 .PP
1953 readcd dev=b,t,l \-clone f=somefile
1954 .PP
1955 or (in case the CD contains many sectors that are unreadable by intention)
1956 by calling:
1957 .PP
1958 readcd dev=1,0 -clone -nocorr f=somefile
1959 .PP
1960 will create the files
1961 .I somefile
1962 and
1963 .IR somefile.toc .
1964 Then write the CD using:
1965 .PP
1966 cdrecord dev=1,0 -raw96r -clone -v somefile
1967
1968
1969 .SH ENVIRONMENT
1970 .TP
1971 .B CDR_DEVICE
1972 This may either hold a device identifier that is suitable to the open
1973 call of the SCSI transport library or a label in the file /etc/default/cdrecord.
1974 .TP
1975 .B CDR_SPEED
1976 Sets the default speed value for writing (see also
1977 .B \-speed
1978 option).
1979 .TP
1980 .B CDR_FIFOSIZE
1981 Sets the default size of the FIFO (see also
1982 .BR fs= #
1983 option).
1984 .TP
1985 .B CDR_FORCERAWSPEED
1986 If this environment variable is set,
1987 .B cdrecord
1988 will allow you to write at the full RAW encoding speed a single CPU supports.
1989 This will create high potential of buffer underruns. Use with care.
1990 .TP
1991 .B CDR_FORCESPEED
1992 If this environment variable is set,
1993 .B cdrecord
1994 will allow you to write at the full DMA speed the system supports.
1995 There is no DMA reserve for reading the data that is to be written from disk.
1996 This will create high potential of buffer underruns. Use with care.
1997 .TP
1998 .B RSH
1999 If the
2000 .B RSH
2001 environment is present, the remote connection will not be created via
2002 .BR rcmd (3)
2003 but by calling the program pointed to by
2004 .BR RSH .
2005 Use e.g.
2006 .BR RSH= /usr/bin/ssh
2007 to create a secure shell connection.
2008 .sp
2009 Note that this forces
2010 .B cdrecord
2011 to create a pipe to the
2012 .B rsh(1)
2013 program and disallows
2014 .B cdrecord
2015 to directly access the network socket to the remote server.
2016 This makes it impossible to set up performance parameters and slows down
2017 the connection compared to a
2018 .B root
2019 initiated
2020 .B rcmd(3)
2021 connection.
2022 .TP
2023 .B RSCSI
2024 If the
2025 .B RSCSI
2026 environment is present, the remote SCSI server will not be the program
2027 .B /opt/schily/sbin/rscsi
2028 but the program pointed to by
2029 .BR RSCSI .
2030 Note that the remote SCSI server program name will be ignored if you log in
2031 using an account that has been created with a remote SCSI server program as
2032 login shell.
2033
2034 .SH FILES
2035 .TP
2036 /etc/default/cdrecord
2037 Default values can be set for the following options in /etc/default/cdrecord.
2038 For example:
2039 .SM CDR_FIFOSIZE=8m
2040 or
2041 .SM CDR_SPEED=2
2042 .RS
2043 .TP
2044 CDR_DEVICE
2045 This may either hold a device identifier that is suitable to the open
2046 call of the SCSI transport library or a label in the file /etc/default/cdrecord
2047 that allows to identify a specific drive on the system.
2048 .TP
2049 CDR_SPEED
2050 Sets the default speed value for writing (see also
2051 .B \-speed
2052 option).
2053 .TP
2054 CDR_FIFOSIZE
2055 Sets the default size of the FIFO (see also
2056 .BR fs= #
2057 option).
2058 .TP
2059 CDR_MAXFIFOSIZE
2060 Sets the maximum size of the FIFO (see also
2061 .BR fs= #
2062 option).
2063 .TP
2064 Any other label
2065 is an identifier for a specific drive on the system.
2066 Such an identifier may not contain the characters ',', '/', '@' or ':'.
2067 .sp
2068 Each line that follows a label contains a TAB separated list of items.
2069 Currently, four items are recognized: the SCSI ID of the drive, the
2070 default speed that should be used for this drive, the default FIFO size
2071 that should be used for this drive and drive specific options. The values for
2072 .I speed
2073 and
2074 .I fifosize
2075 may be set to -1 to tell cdrecord to use the global defaults.
2076 The value for driveropts may be set to "" if no driveropts are used.
2077 A typical line may look this way:
2078 .sp
2079 teac1= 0,5,0 4 8m ""
2080 .sp
2081 yamaha= 1,6,0 -1 -1 burnfree
2082 .sp
2083 This tells
2084 .B cdrecord
2085 that a drive named
2086 .I teac1
2087 is at scsibus 0, target 5, lun 0 and should be used with speed 4 and
2088 a FIFO size of 8 MB.
2089 A second drive may be found at scsibus 1, target 6, lun 0 and uses the
2090 default speed and the default FIFO size.
2091 .RE
2092
2093 .SH SEE ALSO
2094 .BR cdda2wav (1),
2095 .BR readcd (1),
2096 .BR scg (7),
2097 .BR fbk (7),
2098 .BR mkisofs (8),
2099 .BR rcmd (3),
2100 .BR ssh (1).
2101
2102 .SH NOTES
2103 .PP
2104 Not all options described in this manual may be supported by the GPL variant
2105 of cdrecord. Cdrecord issues a warning if an attempt is made to use an option
2106 that has been disabled in the GPL variant.
2107 .PP
2108 On Solaris you need to stop the volume management if you like to use the USCSI
2109 fallback SCSI transport code. Even things like
2110 .B "cdrecord -scanbus
2111 will not work if the volume management is running.
2112 .PP
2113 Disks made in
2114 .B "Track At Once
2115 mode are not suitable as a master for direct mass production by CD manufacturers.
2116 You will need the
2117 .B "disk at once
2118 option to record such disks.
2119 Nevertheless the disks made in
2120 .B "Track At Once
2121 will normally be read in all CD players. Some old
2122 audio CD players however may produce a two second click between two audio tracks.
2123 .PP
2124 The minimal size of a track is 4 seconds or 300 sectors. If you write
2125 smaller tracks, the CD-Recorder will add dummy blocks. This is not an
2126 error, even though the SCSI-error message looks this way.
2127 .PP
2128 .B Cdrecord
2129 has been tested on an upgraded Philips CDD-521 recorder at single and
2130 double speed on a SparcStation 20/502 with no problems, slower computer systems
2131 should work also.
2132 The newer Philips/HP/Plasmon/Grundig
2133 drives as well as Yamaha CDR-100 and CDR-102 work also. The Plasmon RF-4100
2134 work, but has not tested in multi session.
2135 A Philips CDD-521 that has not been upgraded will not work.
2136 The Sony CDU-924 has been tested, but does not support XA-mode2 in hardware.
2137 The Sony therefore cannot create conforming multi session disks.
2138 The Ricoh RO-1420C works, but some people seem to have problems to
2139 use them with speed=2, try speed=0 in this case.
2140 .PP
2141 The Yamaha CDR-400 and all new SCSI-3/mmc conforming drives are supported
2142 in single and multi-session.
2143 .PP
2144 You should run several tests in all supported speeds of your drive with the
2145 .B \-dummy
2146 option turned on if you are using
2147 .B cdrecord
2148 on an unknown system. Writing a CD is a real-time process.
2149 .B NFS
2150 will not always deliver constantly the needed data rates.
2151 If you want to use
2152 .B cdrecord
2153 with CD-images that are located on a
2154 .B NFS
2155 mounted filesystem, be sure that the FIFO size is big enough.
2156 I used
2157 .B cdrecord
2158 with medium load on a SS20/502 and even at quad speed
2159 on a Sparcstation-2 which was heavily loaded,
2160 but it is recommended to leave the system
2161 as lightly loaded as possible while writing a CD.
2162 If you want to make sure that buffer underruns are not
2163 caused by your source disk, you may use the command
2164 .PP
2165 .B " cdrecord -dummy dev=2,0 padsize=600m /dev/null
2166 .PP
2167 to create a disk that is entirely made of dummy data.
2168 .B Cdrecord
2169 needs to run as root to get access to the
2170 .B /dev/scg?
2171 device nodes and to be able to lock itself into memory.
2172 .PP
2173 If you don't want to allow users to become root on your system,
2174 .B cdrecord
2175 may safely be installed suid root. This allows all users or a group of
2176 users with no root privileges to use
2177 .B cdrecord.
2178 .B Cdrecord
2179 in this case checks, if the real user would have been able to read
2180 the specified files.
2181 To give all user access to use
2182 .B cdrecord,
2183 enter:
2184 .PP
2185 chown root /usr/local/bin/cdrecord
2186 .br
2187 chmod 4711 /usr/local/bin/cdrecord
2188 .PP
2189 To give a restricted group of users access to cdrecord enter:
2190 .PP
2191 chown root /usr/local/bin/cdrecord
2192 .br
2193 chgrp cdburners /usr/local/bin/cdrecord
2194 .br
2195 chmod 4710 /usr/local/bin/cdrecord
2196 .PP
2197 and add a group
2198 .I cdburners
2199 on your system.
2200 .PP
2201 Never give write permissions for non root users to the
2202 .I /dev/scg?
2203 devices unless you would allow anybody to read/write/format
2204 all your disks.
2205 .PP
2206 You should not connect old drives that do not support
2207 disconnect/reconnect to either the SCSI bus that is connected to the
2208 CD-Recorder or the source disk.
2209 .PP
2210 A Compact Disc can have no more than 99 tracks.
2211 .PP
2212 When creating a disc with both audio and data tracks,
2213 the data should be on track 1 otherwise you should create
2214 a CDplus disk which is a multi session disk with the first session
2215 containing the audio tracks and the following session containing the data track.
2216 .PP
2217 Many operating systems are not able to read more than a single data track, or
2218 need special software to do so.
2219 .PP
2220 More information on the SCSI command set of a HP CD-Recorder can be found at:
2221 .PP
2222 http://www.hp.com/isgsupport/cdr/index.html
2223 .PP
2224 If you have more information or SCSI command manuals for currently
2225 unsupported CD/DVD-Recorders please contact the author.
2226 .PP
2227 The Philips CDD 521 CD-Recorder (even in the upgraded version)
2228 has several firmware bugs. Some of them will
2229 force you to power cycle the device or to reboot the machine.
2230 .PP
2231 When using
2232 .B cdrecord
2233 with the broken
2234 .B "Linux SCSI generic driver."
2235 You should note that
2236 .B cdrecord
2237 uses a hack, that tries to emulate the functionality of the scg driver.
2238 Unfortunately, the sg driver on
2239 .B Linux
2240 has several severe bugs:
2241 .TP
2242 \(bu
2243 It cannot see if a SCSI command could not be sent at all.
2244 .TP
2245 \(bu
2246 It cannot get the SCSI status byte.
2247 .B Cdrecord
2248 for that reason cannot report failing SCSI commands in some
2249 situations.
2250 .TP
2251 \(bu
2252 It cannot get real DMA count of transfer.
2253 .B Cdrecord
2254 cannot tell you if there is an DMA residual count.
2255 .TP
2256 \(bu
2257 It cannot get number of bytes valid in auto sense data.
2258 .B Cdrecord
2259 cannot tell you if device transfers no sense data at all.
2260 .TP
2261 \(bu
2262 It fetches to few data in auto request sense (CCS/SCSI-2/SCSI-3 needs >= 18).
2263 .PP
2264 The FIFO percent output is computed just after a block of data has been written
2265 to the CD/DVD-Recorder. For this reason, there will never be 100% FIFO fill ratio
2266 while the FIFO is in streaming mode.
2267
2268 .SH DIAGNOSTICS
2269 .PP
2270 You have 9 seconds to type ^C to abort
2271 .B cdrecord
2272 after you see the message:
2273 .PP
2274 Starting to write CD at speed %d in %s mode for %s session.
2275 .PP
2276 A typical error message for a SCSI command looks like:
2277 .sp
2278 .RS
2279 .nf
2280 cdrecord: I/O error. test unit ready: scsi sendcmd: no error
2281 CDB: 00 20 00 00 00 00
2282 status: 0x2 (CHECK CONDITION)
2283 Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 25 00 00 00 00 00
2284 Sense Key: 0x5 Illegal Request, Segment 0
2285 Sense Code: 0x25 Qual 0x00 (logical unit not supported) Fru 0x0
2286 Sense flags: Blk 0 (not valid)
2287 cmd finished after 0.002s timeout 40s
2288 .fi
2289 .RE
2290 .sp
2291 The first line gives information about the transport of the command.
2292 The text after the first colon gives the error text for the system call
2293 from the view of the kernel. It usually is:
2294 .B "I/O error
2295 unless other problems happen. The next words contain a short description for
2296 the SCSI command that fails. The rest of the line tells you if there were
2297 any problems for the transport of the command over the SCSI bus.
2298 .B "fatal error
2299 means that it was not possible to transport the command (i.e. no device present
2300 at the requested SCSI address).
2301 .PP
2302 The second line prints the SCSI command descriptor block for the failed command.
2303 .PP
2304 The third line gives information on the SCSI status code returned by the
2305 command, if the transport of the command succeeds.
2306 This is error information from the SCSI device.
2307 .PP
2308 The fourth line is a hex dump of the auto request sense information for the
2309 command.
2310 .PP
2311 The fifth line is the error text for the sense key if available, followed
2312 by the segment number that is only valid if the command was a
2313 .I copy
2314 command. If the error message is not directly related to the current command,
2315 the text
2316 .I deferred error
2317 is appended.
2318 .PP
2319 The sixth line is the error text for the sense code and the sense qualifier if available.
2320 If the type of the device is known, the sense data is decoded from tables
2321 in
2322 .IR scsierrs.c " .
2323 The text is followed by the error value for a field replaceable unit.
2324 .PP
2325 The seventh line prints the block number that is related to the failed command
2326 and text for several error flags. The block number may not be valid.
2327 .PP
2328 The eight line reports the timeout set up for this command and the time
2329 that the command really needed to complete.
2330 .PP
2331 The following message is not an error:
2332 .sp
2333 .RS
2334 .nf
2335 Track 01: Total bytes read/written: 2048/2048 (1 sectors).
2336 cdrecord: I/O error. flush cache: scsi sendcmd: no error
2337 CDB: 35 00 00 00 00 00 00 00 00 00
2338 status: 0x2 (CHECK CONDITION)
2339 Sense Bytes: F0 00 05 80 00 00 27 0A 00 00 00 00 B5 00 00 00 00 00
2340 Sense Key: 0x5 Illegal Request, Segment 0
2341 Sense Code: 0xB5 Qual 0x00 (dummy data blocks added) Fru 0x0
2342 Sense flags: Blk -2147483609 (valid)
2343 cmd finished after 0.002s timeout 40s
2344 .fi
2345 .RE
2346 .sp
2347 It simply notifies, that a track that is smaller than the minimum size has been
2348 expanded to 300 sectors.
2349 .SH BUGS
2350 .PP
2351 .B Cdrecord
2352 has even more options than
2353 .BR ls .
2354 .PP
2355 There should be a recover option to make disks usable, that have been written
2356 during a power failure.
2357
2358 .SH CREDITS
2359 .PP
2360 .TP 15
2361 Bill Swartz (Bill_Swartz@twolf.com)
2362 .br
2363 For helping me with the TEAC driver support
2364 .TP
2365 Aaron Newsome (aaron.d.newsome@wdc.com)
2366 .br
2367 For letting me develop Sony support on his drive
2368 .TP
2369 Eric Youngdale (eric@andante.jic.com)
2370 .br
2371 For supplying mkisofs
2372 .TP
2373 Gadi Oxman (gadio@netvision.net.il)
2374 .br
2375 For tips on the ATAPI standard
2376 .TP
2377 Finn Arne Gangstad (finnag@guardian.no)
2378 .br
2379 For the first FIFO implementation.
2380 .TP
2381 Dave Platt (dplatt@feghoot.ml.org)
2382 .br
2383 For creating the experimental packet writing support,
2384 the first implementation of CD-RW blanking support,
2385 the first .wav file decoder
2386 and many nice discussions on cdrecord.
2387 .TP
2388 Chris P. Ross (cross@eng.us.uu.net)
2389 .br
2390 For the first implementation of a BSDI SCSI transport.
2391 .TP
2392 Grant R. Guenther (grant@torque.net)
2393 .br
2394 For creating the first parallel port transport implementation
2395 for Linux.
2396 .TP
2397 Kenneth D. Merry (ken@kdm.org)
2398 .br
2399 for providing the CAM port for FreeBSD together with Michael Smith (msmith@freebsd.org)
2400 .TP
2401 Heiko Ei\*sfeldt (heiko@hexco.de)
2402 for making libedc_ecc available (needed to write RAW data sectors).
2403
2404 .SH "MAILING LISTS
2405 If you want to actively take part on the development of cdrecord,
2406 you may join the developer mailing list via this URL:
2407 .sp
2408 .B
2409 http://lists.berlios.de/mailman/listinfo/cdrecord-developers
2410 .PP
2411 The mail address of the list is:
2412 .B
2413 cdwrite@other.debian.org
2414
2415 .SH AUTHOR
2416 .nf
2417 J\*org Schilling
2418 Seestr. 110
2419 D-13353 Berlin
2420 Germany
2421 .fi
2422 .PP
2423 Additional information can be found on:
2424 .br
2425 http://www.fokus.fhg.de/usr/schilling/cdrecord.html
2426 .PP
2427 If you have support questions, send them to:
2428 .PP
2429 .B
2430 cdrecord-support@berlios.de
2431 .br
2432 or
2433 .B
2434 cdwrite@other.debian.org
2435 .PP
2436 If you have definitely found a bug, send a mail to:
2437 .PP
2438 .B
2439 cdrecord-developers@berlios.de
2440 .br
2441 or
2442 .B
2443 schilling@fokus.fhg.de
2444 .PP
2445 To subscribe, use:
2446 .PP
2447 .B
2448 http://lists.berlios.de/mailman/listinfo/cdrecord-developers
2449 .br
2450 or
2451 .B
2452 http://lists.berlios.de/mailman/listinfo/cdrecord-support
2453 .PP
2454 The old cdwrite mailing list may be joined by sending mail to:
2455 .nf
2456 .sp
2457 cdwrite-request@other.debian.org
2458 .sp
2459 .fi
2460 and including the word
2461 .I subscribe
2462 in the body.
2463 The mail address of the list is:
2464 .nf
2465 .sp
2466 cdwrite@other.debian.org
2467 .fi

  ViewVC Help
Powered by ViewVC 1.1.5