Blame wodim/wodim.1

Packit 45fded
.\" @(#)wodim.1	 06/12/18 Copyright 2006 Cdrkit maintainers
Packit 45fded
.\" derived from:
Packit 45fded
.\" @(#)cdrecord.1	1.106 06/02/09 Copyright 1996 J. Schilling
Packit 45fded
.\" 
Packit 45fded
.\" This program is free software; you can redistribute it and/or modify
Packit 45fded
.\" it under the terms of the GNU General Public License version 2
Packit 45fded
.\" as published by the Free Software Foundation.
Packit 45fded
.\"
Packit 45fded
.\" The GNU General Public License's references to "object code"
Packit 45fded
.\" and "executables" are to be interpreted as the output of any
Packit 45fded
.\" document formatting or typesetting system, including
Packit 45fded
.\" intermediate and printed output.
Packit 45fded
.\"
Packit 45fded
.\" This manual is distributed in the hope that it will be useful,
Packit 45fded
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 45fded
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 45fded
.\" GNU General Public License for more details.
Packit 45fded
.\"
Packit 45fded
.\" You should have received a copy of the GNU General Public License along with
Packit 45fded
.\" this program; see the file COPYING.  If not, write to the Free Software
Packit 45fded
.\" Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Packit 45fded
.\"
Packit 45fded
.if t .ds a \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'a
Packit 45fded
.if t .ds o \v'-0.55m'\h'0.00n'\z.\h'0.45n'\z.\v'0.55m'\h'-0.45n'o
Packit 45fded
.if t .ds u \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'u
Packit 45fded
.if t .ds A \v'-0.77m'\h'0.25n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.70n'A
Packit 45fded
.if t .ds O \v'-0.77m'\h'0.25n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.70n'O
Packit 45fded
.if t .ds U \v'-0.77m'\h'0.30n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.75n'U
Packit 45fded
.if t .ds s \\(*b
Packit 45fded
.if t .ds S SS
Packit 45fded
.if n .ds a ae
Packit 45fded
.if n .ds o oe
Packit 45fded
.if n .ds u ue
Packit 45fded
.if n .ds s sz
Packit 45fded
.if t .ds m \\(*m
Packit 45fded
.if n .ds m micro
Packit 45fded
.TH wodim 1 "Version 2.0" "" ""
Packit 45fded
.SH NAME
Packit 45fded
wodim \- write data to optical disk media
Packit 45fded
.SH SYNOPSIS
Packit 45fded
.B wodim
Packit 45fded
.RI [ options "] " track1 .\|.\|. trackn
Packit 45fded
.SH NOTE
Packit 45fded
There may be similarities and differences between this program and other disk recording application(s). See the
Packit 45fded
.B CREDITS
Packit 45fded
and
Packit 45fded
.B AUTHORS
Packit 45fded
sections below to learn about the origin of
Packit 45fded
.B wodim.
Packit 45fded
Packit 45fded
.SH DESCRIPTION
Packit 45fded
.B wodim
Packit 45fded
is used to record data or audio Compact Discs on an Orange Book
Packit 45fded
CD-Recorder or to write DVD media on a DVD-Recorder.
Packit 45fded
.PP
Packit 45fded
The
Packit 45fded
.I device
Packit 45fded
is the device file or label offered by the operating system to access the
Packit 45fded
recorder with SCSI GENERIC (sg) interface. Note that some operating systems may
Packit 45fded
provide separate device nodes for block\-oriented and sg access. For example, on
Packit 45fded
older
Packit 45fded
.I Linux
Packit 45fded
systems, the sg access was available through
Packit 45fded
.IR /dev/sg...
Packit 45fded
files while the block oriented access was done through associated (but not identical)
Packit 45fded
.IR /dev/hd...
Packit 45fded
and 
Packit 45fded
.IR /dev/sr...
Packit 45fded
(or 
Packit 45fded
.IR /dev/scd...
Packit 45fded
) files.
Packit 45fded
.PP
Packit 45fded
In any case, the user running 
Packit 45fded
.B wodim
Packit 45fded
needs read and write access to the particular device file on a Linux system. It
Packit 45fded
is recommended to be root or install the application as suid-root, because
Packit 45fded
certain versions of Linux (kernel) limit the set of SCSI commands allowed for
Packit 45fded
non-root users. Even if usage without root identity is possible in many cases,
Packit 45fded
some device drivers still may fail, show unexplainable problems and generally
Packit 45fded
the problems become harder to debug. The risk for buffer-underruns is also
Packit 45fded
increased. See the
Packit 45fded
.IR "PROCESS SCHEDULING PRIORITY"
Packit 45fded
section below for more details.
Packit 45fded
.PP
Packit 45fded
There is an alternative way of specifying the device, using the traditional SCSI descriptions in form of
Packit 45fded
.IR devicetype:bus/target/lun
Packit 45fded
specification. However, the success of this method is not guaranteed since it
Packit 45fded
requires an adaptation scheme for your architecture, and the numbers may vary
Packit 45fded
depending on the hardware-internal numbering or on the order of hot-plug device
Packit 45fded
detection. If your operating system does not provide a sufficient framework for
Packit 45fded
keeping this numbers persistent, don't rely on them. See 
Packit 45fded
.B \-scanbus
Packit 45fded
and
Packit 45fded
.B \-\-devices
Packit 45fded
options below for details.
Packit 45fded
.PP
Packit 45fded
There are emulated SCSI compatible device systems, using the SCSI protocols
Packit 45fded
transported over various hardware/media types. The most known examples is ATAPI
Packit 45fded
("IDE burners") or USB storage ("external USB case"). If the pseudo-SCSI b/t/l
Packit 45fded
device address specification is used instead of the native one, you need to
Packit 45fded
prepend the "devicetype:" description to the emulated "bus/target/lun" device
Packit 45fded
address.
Packit 45fded
.PP
Packit 45fded
If a file /etc/wodim.conf exists, the parameter to the
Packit 45fded
.B dev=
Packit 45fded
option may also be a drive name label in that file (see FILES section).
Packit 45fded
.PP
Packit 45fded
As a special exception, the device specification can be
Packit 45fded
.IR -1
Packit 45fded
or just omitted, which invokes automatic guessing of an appropriate device for
Packit 45fded
the selected operation. However, this guessing is not available everywhere and
Packit 45fded
is not reliable; it is only available for the user's convenience in simple
Packit 45fded
environments.
Packit 45fded
.PP
Packit 45fded
In 
Packit 45fded
.I Track At Once 
Packit 45fded
mode, each
Packit 45fded
.I track
Packit 45fded
corresponds to a single file that contains the prepared data for that track.
Packit 45fded
If the argument is 
Packit 45fded
.RB ` \- ',
Packit 45fded
standard input is used for that track. 
Packit 45fded
Only one track may be taken from 
Packit 45fded
.IR stdin .
Packit 45fded
In the other write modes, the direct file to track relation may not be implemented.
Packit 45fded
In 
Packit 45fded
.B \-clone
Packit 45fded
mode, a single file contains all data for the whole disk.
Packit 45fded
To allow DVD writing on platforms that do not implement large file support,
Packit 45fded
.B wodim
Packit 45fded
concatenates all file arguments to a single track when writing to DVD media.
Packit 45fded
Packit 45fded
.SH "PROCESS SCHEDULING PRIORITY"
Packit 45fded
.PP
Packit 45fded
Wodim tries to get higher process priority using different methods. This is
Packit 45fded
important because the burn process is usually a realtime task, no long delays
Packit 45fded
should occur while transmitting fresh data to the recorder. This is especially
Packit 45fded
important on systems with insufficient RAM where swapping can create delays of
Packit 45fded
many seconds.
Packit 45fded
.PP
Packit 45fded
A possible workaround on underpowered systems is the use of the burnfree or
Packit 45fded
similar feature, allowing the recorder to resume.
Packit 45fded
.PP
Packit 45fded
Root permissions are usually required to get higher process scheduling priority.
Packit 45fded
.PP
Packit 45fded
On 
Packit 45fded
.B SVr4 
Packit 45fded
compliant systems, 
Packit 45fded
.B wodim 
Packit 45fded
uses the real time class to get the highest scheduling priority that is
Packit 45fded
possible (higher than all kernel processes).
Packit 45fded
On systems with 
Packit 45fded
.B POSIX real time scheduling
Packit 45fded
wodim uses real time scheduling too, 
Packit 45fded
but may not be able to gain a priority that is higher than all kernel processes.
Packit 45fded
.PP
Packit 45fded
In order to be able to use the SCSI transport subsystem of the OS, run at highest
Packit 45fded
priority and lock itself into core
Packit 45fded
.B
Packit 45fded
wodim
Packit 45fded
either needs to be run as root, needs to be installed suid root or
Packit 45fded
must be called via
Packit 45fded
.B RBACs
Packit 45fded
pfexec mechanism.
Packit 45fded
Packit 45fded
.SH "GENERAL OPTIONS
Packit 45fded
.PP
Packit 45fded
General options must be before any track file name or track option.
Packit 45fded
.TP
Packit 45fded
.B \-version
Packit 45fded
Print version information and exit.
Packit 45fded
.TP
Packit 45fded
.B \-v
Packit 45fded
Increment the level of general verbosity by one.
Packit 45fded
This is used e.g. to display the progress of the writing process.
Packit 45fded
.TP
Packit 45fded
.B \-V
Packit 45fded
Increment the verbose level in respect of SCSI command transport by one.
Packit 45fded
This helps to debug problems
Packit 45fded
during the writing process, that occur in the CD/DVD-Recorder. 
Packit 45fded
If you get incomprehensible error messages you should use this flag
Packit 45fded
to get more detailed output.
Packit 45fded
.B \-VV
Packit 45fded
will show data buffer content in addition.
Packit 45fded
Using
Packit 45fded
.B \-V
Packit 45fded
or
Packit 45fded
.B \-VV
Packit 45fded
slows down the process and may be the reason for a buffer underrun.
Packit 45fded
.TP
Packit 45fded
.BI debug= "#, " -d
Packit 45fded
Set the misc debug value to # (with debug=#) or increment
Packit 45fded
the misc debug level by one (with -d). If you specify
Packit 45fded
.I -dd,
Packit 45fded
this equals to 
Packit 45fded
.BI debug= 2.
Packit 45fded
This may help to find problems while opening a driver for libusal
Packit 45fded
as well as with sector sizes and sector types.
Packit 45fded
Using
Packit 45fded
.B \-debug
Packit 45fded
slows down the process and may be the reason for a buffer underrun.
Packit 45fded
.TP
Packit 45fded
.BR kdebug= "#, " kd= #
Packit 45fded
Tell the 
Packit 45fded
.BR usal -driver
Packit 45fded
to modify the kernel debug value while SCSI commands are running.
Packit 45fded
.TP
Packit 45fded
.BR \-silent ", " \-s
Packit 45fded
Do not print out a status report for failed SCSI commands.
Packit 45fded
.TP
Packit 45fded
.B \-force
Packit 45fded
Force to continue on some errors. Be careful when using this option.
Packit 45fded
.B wodim
Packit 45fded
implements several checks that prevent you from doing unwanted things
Packit 45fded
like damaging CD-RW media by improper drives. Many of the sanity checks are 
Packit 45fded
disabled when the 
Packit 45fded
.B \-force
Packit 45fded
option is used.
Packit 45fded
.sp
Packit 45fded
This option also implements some tricks that will allow 
Packit 45fded
you to blank bad CD-RW disks.
Packit 45fded
.TP
Packit 45fded
.B \-immed
Packit 45fded
Tell wodim to set the
Packit 45fded
.B "SCSI IMMED"
Packit 45fded
flag in certain commands
Packit 45fded
(load/eject/blank/close_track/close_session).
Packit 45fded
This can be useful
Packit 45fded
on broken systems with ATAPI harddisk and CD/DVD writer on the same bus or
Packit 45fded
with SCSI systems that don't use disconnect/reconnect.
Packit 45fded
These systems will freeze while blanking or fixating a CD/DVD or while a DVD
Packit 45fded
writer is filling up a session to the minimum amount (approx. 800 MB).
Packit 45fded
Setting the
Packit 45fded
.B \-immed
Packit 45fded
flag will request the command to return immediately
Packit 45fded
while the operation proceeds in background, making
Packit 45fded
the bus usable for the other devices and avoiding the system freeze.
Packit 45fded
This is an experimental feature which may work or not, depending on the model
Packit 45fded
of the CD/DVD writer.
Packit 45fded
A correct solution would be to set up a correct cabling but there seem to be 
Packit 45fded
notebooks around that have been set up the wrong way by the manufacturer.
Packit 45fded
As it is impossible to fix this problem in notebooks, the
Packit 45fded
.B \-immed
Packit 45fded
option has been added.
Packit 45fded
.sp
Packit 45fded
A second experimental feature of the
Packit 45fded
.B \-immed
Packit 45fded
flag is to tell wodim to try to wait short times while writing to the
Packit 45fded
media. This is expected to free the IDE bus if the CD/DVD writer and the
Packit 45fded
data source are connected to the same IDE cable. In this case, the CD/DVD
Packit 45fded
writer would otherwise usually block the IDE bus for nearly all the time
Packit 45fded
making it impossible to fetch data from the source drive. See also
Packit 45fded
.B minbuf=
Packit 45fded
and
Packit 45fded
.B \-v
Packit 45fded
option.
Packit 45fded
.sp
Packit 45fded
Use both features at your own risk.
Packit 45fded
If it turns out that it would make sense to have a separate option
Packit 45fded
for the wait feature, write to the author and convince him.
Packit 45fded
.TP
Packit 45fded
.BI minbuf= value
Packit 45fded
The #
Packit 45fded
.B minbuf=
Packit 45fded
option allows to define the minimum drive buffer fill ratio for the
Packit 45fded
experimental ATAPI wait mode that is intended to free the IDE bus
Packit 45fded
to allow hard disk and CD/DVD writer to be on the same IDE cable.
Packit 45fded
As the wait mode currently only works when the verbose option
Packit 45fded
.B \-v
Packit 45fded
has been specified, 
Packit 45fded
.B wodim
Packit 45fded
implies the verbose option in case the 
Packit 45fded
.B \-immed
Packit 45fded
or
Packit 45fded
.B minbuf=
Packit 45fded
option have been specified.
Packit 45fded
Valid values for 
Packit 45fded
.B minbuf= 
Packit 45fded
are between 25 and 95 for 25%.\|.\|.95% minimum drive buffer fill ratio.
Packit 45fded
.TP
Packit 45fded
.B \-dummy
Packit 45fded
The CD/DVD-Recorder will go through all steps of the recording process,
Packit 45fded
but the laser is turned off during this procedure.
Packit 45fded
It is recommended to run several tests before actually writing to a 
Packit 45fded
Compact Disk or Digital Versatile Disk,
Packit 45fded
if the timing and load response of the system is not known.
Packit 45fded
.TP
Packit 45fded
.B \-clone
Packit 45fded
Tells 
Packit 45fded
.B wodim
Packit 45fded
to handle images created by
Packit 45fded
.IR "readom \-clone" .
Packit 45fded
The
Packit 45fded
.B \-clone
Packit 45fded
may only be used in conjunction with with the
Packit 45fded
.B \-raw96r
Packit 45fded
or with the
Packit 45fded
.B \-raw16
Packit 45fded
option.
Packit 45fded
Using
Packit 45fded
.B \-clone
Packit 45fded
together with
Packit 45fded
.B \-raw96r
Packit 45fded
is preferred as it allows to write all subchannel data.
Packit 45fded
The option
Packit 45fded
.B \-raw16
Packit 45fded
should only be used with drives that do not support to write in
Packit 45fded
.B \-raw96r
Packit 45fded
mode.
Packit 45fded
.TP
Packit 45fded
.B \-dao
Packit 45fded
.TP
Packit 45fded
.B \-sao
Packit 45fded
Set 
Packit 45fded
.B "SAO (Session At Once)
Packit 45fded
mode which is usually called
Packit 45fded
.BR "Disk At Once " mode.
Packit 45fded
This currently only works with MMC drives that support
Packit 45fded
.B "Session At Once
Packit 45fded
mode.
Packit 45fded
Note that wodim needs to know the size of each track in advance for this mode
Packit 45fded
(see the
Packit 45fded
.B "genisoimage \-print-size"
Packit 45fded
option and the 
Packit 45fded
.I EXAMPLES
Packit 45fded
section for more information).
Packit 45fded
.TP
Packit 45fded
.B \-tao
Packit 45fded
Set
Packit 45fded
.B "TAO (Track At Once) writing mode.
Packit 45fded
This is the default write mode in previous
Packit 45fded
.B wodim
Packit 45fded
versions.
Packit 45fded
With most drives, this write mode is required for multi session recording.
Packit 45fded
.TP
Packit 45fded
.B \-raw
Packit 45fded
Set
Packit 45fded
.B "RAW writing mode.
Packit 45fded
Using this option defaults to 
Packit 45fded
.BR \-raw96r .
Packit 45fded
Note that wodim needs to know the size of each track in advance for this mode
Packit 45fded
(see the
Packit 45fded
.B "genisoimage \-print-size"
Packit 45fded
option and the 
Packit 45fded
.I EXAMPLES
Packit 45fded
section for more information).
Packit 45fded
.TP
Packit 45fded
.B \-raw96r
Packit 45fded
Select
Packit 45fded
Set
Packit 45fded
.B "RAW writing mode
Packit 45fded
with 2352 byte sectors plus 96 bytes of raw P-W subchannel data resulting
Packit 45fded
in a sector size of 2448 bytes.
Packit 45fded
This is the preferred raw writing mode as it gives best control over the
Packit 45fded
CD writing process.
Packit 45fded
If you find any problems with the layout of a disk or with sub channel 
Packit 45fded
content (e.g. wrong times on the display when playing the CD) and your drive
Packit 45fded
supports to write in 
Packit 45fded
.B \-raw96r
Packit 45fded
or
Packit 45fded
.B \-raw16
Packit 45fded
mode, you should give it a try. There are several CD writers with bad firmware
Packit 45fded
that result in broken disks when writing in TAO or SAO mode.
Packit 45fded
Writing data disks in raw mode needs significantly more CPU time than other
Packit 45fded
write modes. If your CPU is too slow, this may result in buffer underruns.
Packit 45fded
Note that wodim needs to know the size of each track in advance for this mode
Packit 45fded
(see the
Packit 45fded
.B "genisoimage \-print-size"
Packit 45fded
option and the 
Packit 45fded
.I EXAMPLES
Packit 45fded
section for more information).
Packit 45fded
.TP
Packit 45fded
.B \-raw96p
Packit 45fded
Select
Packit 45fded
Set
Packit 45fded
.B "RAW writing mode
Packit 45fded
with 2352 byte sectors plus 96 bytes of packed P-W subchannel data resulting
Packit 45fded
in a sector size of 2448 bytes.
Packit 45fded
This is the less preferred raw writing mode as only a few recorders support
Packit 45fded
it and some of these recorders have bugs in the firmware implementation.
Packit 45fded
Don't use this mode if your recorder supports
Packit 45fded
.B \-raw96r
Packit 45fded
or
Packit 45fded
.BR \-raw16 .
Packit 45fded
Writing data disks in raw mode needs significantly more CPU time than other
Packit 45fded
write modes. If your CPU is too slow, this may result in buffer underruns.
Packit 45fded
Note that wodim needs to know the size of each track in advance for this mode
Packit 45fded
(see the
Packit 45fded
.B "genisoimage \-print-size"
Packit 45fded
option and the 
Packit 45fded
.I EXAMPLES
Packit 45fded
section for more information).
Packit 45fded
.TP
Packit 45fded
.B \-raw16
Packit 45fded
Select
Packit 45fded
Set
Packit 45fded
.B "RAW writing mode
Packit 45fded
with 2352 byte sectors plus 16 bytes of P-Q subchannel data resulting
Packit 45fded
in a sector size of 2368 bytes.
Packit 45fded
If a recorder does not support 
Packit 45fded
.BR \-raw96r ,
Packit 45fded
this is the preferred raw writing mode.
Packit 45fded
It does not allow to write
Packit 45fded
.I CD-Text
Packit 45fded
or
Packit 45fded
.I CD+Graphics
Packit 45fded
but it is the only raw writing mode in cheap CD writers.
Packit 45fded
As these cheap writers in most cases do not support
Packit 45fded
.B \-dao
Packit 45fded
mode.
Packit 45fded
Don't use this mode if your recorder supports
Packit 45fded
.BR \-raw96r .
Packit 45fded
Writing data disks in raw mode needs significantly more CPU time than other
Packit 45fded
write modes. If your CPU is too slow, this may result in buffer underruns.
Packit 45fded
Note that wodim needs to know the size of each track in advance for this mode
Packit 45fded
(see the
Packit 45fded
.B "genisoimage \-print-size"
Packit 45fded
option and the 
Packit 45fded
.I EXAMPLES
Packit 45fded
section for more information).
Packit 45fded
.TP
Packit 45fded
.B \-multi
Packit 45fded
Allow multi session CDs to be made. This flag needs to be present
Packit 45fded
on all sessions of a multi session disk,
Packit 45fded
except you want to create a session that will be 
Packit 45fded
the last session on the media.
Packit 45fded
The fixation will be done in a way that allows the CD/DVD-Recorder to
Packit 45fded
append additional sessions later. This is done by generation a TOC
Packit 45fded
with a link to the next program area. The so generated media is not
Packit 45fded
100% compatible to manufactured CDs (except for CDplus). 
Packit 45fded
Use only for recording of multi session CDs.
Packit 45fded
If this option is present, the default track type is
Packit 45fded
.BR "CD-ROM XA mode 2 form 1"
Packit 45fded
and the sector size is 2048 bytes. 
Packit 45fded
The XA sector subheaders will be created by the drive. 
Packit 45fded
The 
Packit 45fded
.I Sony 
Packit 45fded
drives have no hardware support for 
Packit 45fded
.BR "CD-ROM XA mode 2 form 1" .
Packit 45fded
You have to specify the 
Packit 45fded
.B \-data 
Packit 45fded
option in order to create multi session disks on these drives.
Packit 45fded
As long as wodim does not have a coder for converting data sectors
Packit 45fded
to audio sectors, you need to force 
Packit 45fded
.B CD-ROM
Packit 45fded
sectors by including the
Packit 45fded
.B \-data
Packit 45fded
option if you like to record a multisession disk in SAO mode.
Packit 45fded
Not all drives allow multisession CDs in SAO mode.
Packit 45fded
.TP
Packit 45fded
.B \-msinfo
Packit 45fded
Retrieve multi session info in a form suitable for 
Packit 45fded
.B genisoimage
Packit 45fded
and print it to standard output. See
Packit 45fded
.B msifile=
Packit 45fded
option for another version.
Packit 45fded
.sp
Packit 45fded
This option makes only sense with a CD that contains at least
Packit 45fded
one closed session and is appendable (not finally closed yet). 
Packit 45fded
Some drives create error messages if you try to get the multi 
Packit 45fded
session info for a disk that is not suitable for this operation.
Packit 45fded
.TP
Packit 45fded
.BR msifile= filename
Packit 45fded
Like 
Packit 45fded
.B \-msinfo
Packit 45fded
option but also stores the multi session info in a file.
Packit 45fded
.TP
Packit 45fded
.B \-toc
Packit 45fded
Retrieve and print out the table of content or PMA of a CD.
Packit 45fded
With this option, 
Packit 45fded
.B wodim
Packit 45fded
will work with CD-R drives and with CD-ROM drives.
Packit 45fded
.TP
Packit 45fded
.B \-atip
Packit 45fded
Retrieve and print out the ATIP (absolute Time in Pre-groove) info of a CD/DVD
Packit 45fded
recordable or CD/DVD re-writable media.
Packit 45fded
With this option, 
Packit 45fded
.B wodim
Packit 45fded
will try to retrieve the ATIP info. If the actual drive does not support
Packit 45fded
to read the ATIP info, it may be that only a reduced set of information
Packit 45fded
records or even nothing is displayed. Only a limited number of MMC compliant
Packit 45fded
drives support to read the ATIP info.
Packit 45fded
.sp
Packit 45fded
If 
Packit 45fded
.B wodim
Packit 45fded
is able to retrieve the lead-in start time for the first session, it will try to
Packit 45fded
decode and print the manufacturer info from the media.
Packit 45fded
DVD media does not have ATIP information but there is equivalent prerecorded
Packit 45fded
information that is read out and printed.
Packit 45fded
.TP
Packit 45fded
.B \-fix
Packit 45fded
The disk will only be fixated (i.e. a TOC for a CD-Reader will be written). 
Packit 45fded
This may be used, if for some reason the disk has been written but not
Packit 45fded
fixated. This option currently does not work with old TEAC drives (CD-R50S and
Packit 45fded
CD-R55S).
Packit 45fded
.TP
Packit 45fded
.B \-nofix
Packit 45fded
Do not fixate the disk after writing the tracks. This may be used
Packit 45fded
to create an audio disk in steps. An un-fixated disk can usually not be used
Packit 45fded
on a non CD-writer type drive but there are audio CD players that will
Packit 45fded
be able to play such a disk.
Packit 45fded
.TP
Packit 45fded
.B \-waiti
Packit 45fded
Wait for input to become available on standard input before trying to open
Packit 45fded
the SCSI driver. This allows 
Packit 45fded
.B wodim
Packit 45fded
to read its input from a pipe even
Packit 45fded
when writing additional sessions to a multi session disk.
Packit 45fded
When writing another session to a multi session disk,
Packit 45fded
.B genisoimage 
Packit 45fded
needs to read the old session from the device before writing output.
Packit 45fded
This cannot be done if
Packit 45fded
.B wodim 
Packit 45fded
opens the SCSI driver at the same time.
Packit 45fded
.TP
Packit 45fded
.B \-load
Packit 45fded
Load the media and exit. This only works with a tray loading mechanism
Packit 45fded
but seems to be useful when using the Kodak disk transporter.
Packit 45fded
.TP
Packit 45fded
.B \-lock
Packit 45fded
Load the media, lock the door and exit. This only works with a tray loading mechanism
Packit 45fded
but seems to be useful when using the Kodak disk transporter.
Packit 45fded
.TP
Packit 45fded
.B \-eject
Packit 45fded
Eject disk after doing the work.
Packit 45fded
Some devices (e.g. Philips) need to eject the medium before creating a new
Packit 45fded
disk. Doing a \-dummy test and immediately creating a real disk would not
Packit 45fded
work on these devices.
Packit 45fded
.TP
Packit 45fded
.BR speed= #
Packit 45fded
Set the speed factor of the writing process to #.
Packit 45fded
# is an integer, representing a multiple of the audio speed.
Packit 45fded
This is about 150\ KB/s for CD-ROM, about 172\ KB/s for CD-Audio and about 1385\ kB/s
Packit 45fded
for DVD media.
Packit 45fded
If no 
Packit 45fded
.I speed
Packit 45fded
option is present,
Packit 45fded
.B wodim
Packit 45fded
will try to get a drive specific speed value from the file
Packit 45fded
.B /etc/wodim.conf
Packit 45fded
and if it cannot find one, it will try to get the speed value from the
Packit 45fded
.B CDR_SPEED
Packit 45fded
environment and later from the 
Packit 45fded
.B CDR_SPEED=
Packit 45fded
entry in
Packit 45fded
.BR /etc/wodim.conf .
Packit 45fded
If no speed value could be found, wodim uses a drive specific default speed.
Packit 45fded
The default for all new (MMC compliant) drives is to use the maximum supported by the drive.
Packit 45fded
If you use 
Packit 45fded
.I "speed=0"
Packit 45fded
with a MMC compliant drive,
Packit 45fded
.B wodim
Packit 45fded
will switch to the lowest possible speed for drive and medium.
Packit 45fded
If you are using an old (non MMC) drive that has problems with
Packit 45fded
.I "speed=2 
Packit 45fded
or 
Packit 45fded
.IR "speed=4" , 
Packit 45fded
you should try 
Packit 45fded
.IR "speed=0" .
Packit 45fded
.TP
Packit 45fded
.BI blank= type
Packit 45fded
Blank a CD-RW and exit or blank a CD-RW before writing. The blanking type may be one of:
Packit 45fded
.RS
Packit 45fded
.TP 12
Packit 45fded
help
Packit 45fded
Display a list of possible blanking types.
Packit 45fded
.TP
Packit 45fded
all
Packit 45fded
Blank the entire disk. This may take a long time.
Packit 45fded
.TP
Packit 45fded
fast
Packit 45fded
Minimally blank the disk. This results in erasing the PMA, the TOC and the pregap.
Packit 45fded
.TP
Packit 45fded
track
Packit 45fded
Blank a track.
Packit 45fded
.TP
Packit 45fded
unreserve
Packit 45fded
Unreserve a reserved track.
Packit 45fded
.TP
Packit 45fded
trtail
Packit 45fded
Blank the tail of a track.
Packit 45fded
.TP
Packit 45fded
unclose
Packit 45fded
Unclose last session.
Packit 45fded
.TP
Packit 45fded
session
Packit 45fded
Blank the last session.
Packit 45fded
.RE
Packit 45fded
Not all drives support all blanking types. It may be necessary to use
Packit 45fded
.B "blank=all
Packit 45fded
if a drive reports a specified command as being invalid.
Packit 45fded
If used together with the 
Packit 45fded
.B \-force
Packit 45fded
flag, this option may be used to blank CD-RW disks that otherwise cannot be
Packit 45fded
blanked. Note that you may need to specify
Packit 45fded
.BI blank= all
Packit 45fded
because some drives will not continue with certain types of bad CD-RW
Packit 45fded
disks. Note also that
Packit 45fded
.B wodim
Packit 45fded
does its best if the 
Packit 45fded
.B \-force 
Packit 45fded
flag is used but it finally depends on the drive's firmware 
Packit 45fded
whether the blanking operation will succeed or not.
Packit 45fded
.TP
Packit 45fded
.B \-format
Packit 45fded
Format a CD-RW/DVD-RW/DVD+RW disc.
Packit 45fded
Formatting is currently only implemented for DVD+RW media.
Packit 45fded
A 'maiden' DVD+RW media needs to
Packit 45fded
be formatted before you may write to it.
Packit 45fded
However, as
Packit 45fded
.B wodim
Packit 45fded
autodetects the need for formatting in this case and auto formats the medium
Packit 45fded
before it starts writing, the
Packit 45fded
.B \-format
Packit 45fded
option is only needed if you like to forcibly reformat a DVD+RW medium.
Packit 45fded
.TP
Packit 45fded
.BR fs= #
Packit 45fded
Set the FIFO (ring buffer) size to #.
Packit 45fded
You may use the same syntax as in 
Packit 45fded
.BR dd (1),
Packit 45fded
.BR sdd (1)
Packit 45fded
or
Packit 45fded
.BR star (1).
Packit 45fded
The number representing the size is taken in bytes unless otherwise specified.
Packit 45fded
If a number is followed directly by the letter `b', `k', `m', `s' or `f',
Packit 45fded
the size is multiplied by 512, 1024, 1024*1024, 2048 or 2352.
Packit 45fded
If the size consists of numbers separated by `x' or `*', multiplication of the 
Packit 45fded
two numbers is performed.
Packit 45fded
Thus 
Packit 45fded
.I "fs=10x63k
Packit 45fded
will specify a FIFO size of 630\ kBytes.
Packit 45fded
.sp
Packit 45fded
The size specified by the 
Packit 45fded
.I fs=
Packit 45fded
argument includes the shared memory that is needed for administration. This
Packit 45fded
is at least one page of memory.
Packit 45fded
If no
Packit 45fded
.IR fs =
Packit 45fded
option is present, 
Packit 45fded
.B wodim
Packit 45fded
will try to get the FIFO size value from the 
Packit 45fded
.B CDR_FIFOSIZE
Packit 45fded
environment.
Packit 45fded
The default FIFO size is currently 4 MB.
Packit 45fded
.sp
Packit 45fded
The FIFO is used to increase buffering for the real time writing process.
Packit 45fded
It allows to run a pipe from 
Packit 45fded
.B genisoimage
Packit 45fded
directly into 
Packit 45fded
.BR wodim .
Packit 45fded
If the FIFO is active and a pipe from 
Packit 45fded
.B genisoimage
Packit 45fded
into 
Packit 45fded
.B wodim
Packit 45fded
is used to create a CD, 
Packit 45fded
.B wodim
Packit 45fded
will abort prior to do any modifications on the disk if 
Packit 45fded
.B genisoimage 
Packit 45fded
dies before it starts writing.
Packit 45fded
The recommended FIFO size is between 4 and 128\ MBytes.
Packit 45fded
As a rule of thumb, the FIFO size should be at least equal to the size
Packit 45fded
of the internal buffer of the CD/DVD-Recorder and no more than half of
Packit 45fded
the physical amount of RAM available in the machine.
Packit 45fded
If the FIFO size is big enough, the FIFO statistics will print a FIFO
Packit 45fded
empty count of zero and the FIFO min fill is not below 20%.
Packit 45fded
It is not wise to use too much space for the FIFO. If you need more
Packit 45fded
than 8 MB to write a CD at a speed less than 20x from an image on a
Packit 45fded
local file system on an idle machine, your machine is either underpowered,
Packit 45fded
has hardware problems or is mis-configured.
Packit 45fded
If you like to write DVDs or CDs at higher speed, it makes sense
Packit 45fded
to use at least 16\ MB for the FIFO.
Packit 45fded
.sp
Packit 45fded
On old and small machines, you need to be more careful with the FIFO size.
Packit 45fded
If your machine has less than 256\ MB of physical RAM, you should not
Packit 45fded
set up a FIFO size that is more than 32\ MB.
Packit 45fded
The sun4c architecture (e.g. a Sparcstation-2) has only MMU page table entries
Packit 45fded
for 16\ MBytes per process. Using more than 14\ MBytes for the FIFO
Packit 45fded
may cause the operating system in this case to spend much time to constantly
Packit 45fded
reload the MMU tables. Newer machines from Sun do not have this MMU
Packit 45fded
hardware problem. I have no information on PC-hardware reflecting
Packit 45fded
this problem.
Packit 45fded
.sp
Packit 45fded
Old Linux systems for non x86 platforms have broken definitions for
Packit 45fded
the shared memory size. You need to fix them and rebuild the kernel
Packit 45fded
or manually tell
Packit 45fded
.B wodim
Packit 45fded
to use a smaller FIFO.
Packit 45fded
.sp
Packit 45fded
If you have buffer underruns or similar problems (like a constantly empty
Packit 45fded
drive buffer) and observe a zero
Packit 45fded
.IR "fifo empty count" ,
Packit 45fded
you have hardware problems that prevents the data from flowing fast enough
Packit 45fded
from the kernel memory to the drive. The FIFO size in this case is sufficient,
Packit 45fded
but you should check for a working DMA setup.
Packit 45fded
.TP
Packit 45fded
.BR ts= #
Packit 45fded
Set the maximum transfer size for a single SCSI command to #.
Packit 45fded
The syntax for the 
Packit 45fded
.B ts=
Packit 45fded
option is the same as for wodim fs=# or sdd bs=#.
Packit 45fded
.sp
Packit 45fded
If no 
Packit 45fded
.B ts=
Packit 45fded
option has been specified,
Packit 45fded
.B wodim
Packit 45fded
defaults to a transfer size of 63\ kB. If libusal gets lower values from the
Packit 45fded
operating system, the value is reduced to the maximum value that is possible
Packit 45fded
with the current operating system.
Packit 45fded
Sometimes, it may help to further reduce the transfer size or to enhance it,
Packit 45fded
but note that it may take a long time to find a better value by experimenting
Packit 45fded
with the
Packit 45fded
.B ts=
Packit 45fded
option.
Packit 45fded
.TP
Packit 45fded
.BI dev= target
Packit 45fded
Sets the SCSI target for the CD/DVD-Recorder, see notes above.
Packit 45fded
A typical device specification is
Packit 45fded
.BI dev= 6,0
Packit 45fded
\&.
Packit 45fded
A filename or virtual device name can be passed instead of the symbolic SCSI
Packit 45fded
numbers.  The correct device/filename in this case can be found in the system
Packit 45fded
specific manuals of the target operating system.
Packit 45fded
On a 
Packit 45fded
.I FreeBSD
Packit 45fded
system without 
Packit 45fded
.I CAM
Packit 45fded
support, you need to use the control device (e.g.
Packit 45fded
.IR /dev/rcd0.ctl ).
Packit 45fded
A correct device specification in this case may be
Packit 45fded
.BI dev= /dev/rcd0.ctl:@
Packit 45fded
\&.
Packit 45fded
.sp
Packit 45fded
On Linux and Windows 2000/XP, drives are accessible with their device (or
Packit 45fded
drive) names or with the symbolic SCSI numbers (not recommended, mapping is not
Packit 45fded
stable and could be completely removed in the future).
Packit 45fded
.sp
Packit 45fded
If no 
Packit 45fded
.I dev
Packit 45fded
option is present, 
Packit 45fded
.B wodim
Packit 45fded
will try to get the device from the 
Packit 45fded
.B CDR_DEVICE
Packit 45fded
environment.
Packit 45fded
.sp
Packit 45fded
If the argument to the
Packit 45fded
.B dev=
Packit 45fded
option does not contain the characters ',', '/', '@' or ':',
Packit 45fded
it is interpreted as an label name that may be found in the file
Packit 45fded
/etc/wodim.conf (see FILES section).
Packit 45fded
.TP
Packit 45fded
.BI gracetime= #
Packit 45fded
Set the grace time before starting to write to
Packit 45fded
.IR # " seconds.
Packit 45fded
Values below 2 seconds are not recommended to give the kernel or volume
Packit 45fded
management a chance to learn the new state.
Packit 45fded
.TP
Packit 45fded
.BI timeout= #
Packit 45fded
Set the default SCSI command timeout value to 
Packit 45fded
.IR # " seconds.
Packit 45fded
The default SCSI command timeout is the minimum timeout used for sending
Packit 45fded
SCSI commands.
Packit 45fded
If a SCSI command fails due to a timeout, you may try to raise the
Packit 45fded
default SCSI command timeout above the timeout value of the failed command.
Packit 45fded
If the command runs correctly with a raised command timeout,
Packit 45fded
please report the better timeout value and the corresponding command to 
Packit 45fded
the author of the program.
Packit 45fded
If no 
Packit 45fded
.I timeout 
Packit 45fded
option is present, a default timeout of 40 seconds is used.
Packit 45fded
.TP
Packit 45fded
.BI driver= name
Packit 45fded
Allows the user to manually select a driver for the device.
Packit 45fded
The reason for the existence of the
Packit 45fded
.BI driver= name
Packit 45fded
option is to allow users to use
Packit 45fded
.B wodim
Packit 45fded
with drives that are similar to supported drives but not known
Packit 45fded
directly by
Packit 45fded
.BR wodim .
Packit 45fded
All drives made after 1997 should be MMC standard compliant and
Packit 45fded
thus supported by one of the MMC drivers.
Packit 45fded
It is most unlikely that
Packit 45fded
.B wodim
Packit 45fded
is unable to find the right driver automatically.
Packit 45fded
Use this option with extreme care. If a wrong driver is used for a
Packit 45fded
device, the possibility of creating corrupted disks is high.
Packit 45fded
The minimum problem related to a wrong driver is that the 
Packit 45fded
.B speed=
Packit 45fded
or 
Packit 45fded
.B \-dummy
Packit 45fded
will not work.
Packit 45fded
.br
Packit 45fded
.RS
Packit 45fded
.ne 8
Packit 45fded
.PP
Packit 45fded
The following driver names are supported:
Packit 45fded
.TP
Packit 45fded
.B help
Packit 45fded
To get a list of possible drivers together with a short description.
Packit 45fded
.TP
Packit 45fded
.B mmc_cd
Packit 45fded
The generic SCSI-3/mmc CD-ROM driver is auto-selected whenever
Packit 45fded
.B wodim
Packit 45fded
finds a MMC compliant drive that does not identify itself to support writing at
Packit 45fded
all, or that only identifies to support media or write modes not implemented in
Packit 45fded
.BR wodim .
Packit 45fded
.TP
Packit 45fded
.B mmc_cd_dvd
Packit 45fded
The generic SCSI-3/mmc CD/DVD driver is auto-selected whenever
Packit 45fded
.B wodim
Packit 45fded
finds a MMC-2 or MMC-3 compliant drive that seems to support more than 
Packit 45fded
one medium type and the tray is open or no medium could be found to select the
Packit 45fded
right driver.
Packit 45fded
This driver tries to close the tray, checks the medium found in the tray and then
Packit 45fded
branches to the driver that matches the current medium.
Packit 45fded
.TP
Packit 45fded
.B mmc_cdr
Packit 45fded
The generic SCSI-3/mmc CD-R/CD-RW driver is auto-selected whenever
Packit 45fded
.B wodim
Packit 45fded
find a MMC compliant drive that only supports to write CDs or a multi system
Packit 45fded
drive that contains a CD as the current medium.
Packit 45fded
.TP
Packit 45fded
.B mmc_cdr_sony
Packit 45fded
The generic SCSI-3/mmc CD-R/CD-RW driver is auto-selected whenever
Packit 45fded
.B wodim
Packit 45fded
would otherwise select the
Packit 45fded
.B mmc_cdr
Packit 45fded
driver but the device seems to be made by Sony.
Packit 45fded
The
Packit 45fded
.B mmc_cdr_sony
Packit 45fded
is definitely needed for the Sony CDU 928 as this drive does not completely
Packit 45fded
implement the MMC standard and some of the MMC SCSI commands have to be
Packit 45fded
replaced by Sony proprietary commands. It seems that all Sony drives (even
Packit 45fded
newer ones) still implement the Sony proprietary SCSI commands so it has
Packit 45fded
not yet become a problem to use this driver for all Sony drives. If you find
Packit 45fded
a newer Sony drive that does not work with this driver, please report.
Packit 45fded
.TP
Packit 45fded
.B mmc_dvd
Packit 45fded
The generic SCSI-3/mmc-2 DVD-R/DVD-RW driver is auto-selected whenever
Packit 45fded
.B wodim
Packit 45fded
finds a MMC-2 or MMC-3 compliant drive that supports to write DVDs and
Packit 45fded
an appropriate medium is loaded.
Packit 45fded
There is no Track At Once mode for DVD writers.
Packit 45fded
.TP
Packit 45fded
.B mmc_dvdplus
Packit 45fded
The generic SCSI-3/mmc-3 DVD+R/DVD+RW driver is auto-selected whenever
Packit 45fded
one of the DVD+ media types that are incompatible to each other is found.
Packit 45fded
It checks media and then 
Packit 45fded
branches to the driver that matches the current medium.
Packit 45fded
.TP
Packit 45fded
.B mmc_dvdplusr
Packit 45fded
The generic SCSI-3/mmc-3 DVD+R driver is auto-selected whenever
Packit 45fded
a DVD+R medium is found in an appropriate writer.
Packit 45fded
Note that for unknown reason, the DVD-Plus alliance does not
Packit 45fded
like that there is a simulation mode for DVD+R media.
Packit 45fded
The author of
Packit 45fded
.B wodim
Packit 45fded
tries to convince manufacturers to implement a simulation mode for DVD+R
Packit 45fded
and implement support.
Packit 45fded
DVD+R only supports one write mode that is somewhere between Track At Once
Packit 45fded
and Packet writing; this mode is selected in 
Packit 45fded
.B wodim
Packit 45fded
via a the 
Packit 45fded
.BR \-dao / \-sao
Packit 45fded
option.
Packit 45fded
.TP
Packit 45fded
.B mmc_dvdplusrw
Packit 45fded
The generic SCSI-3/mmc-3 DVD+RW driver is auto-selected whenever
Packit 45fded
a DVD+RW medium is found in an appropriate writer.
Packit 45fded
As DVD+RW media needs to be formatted before its first use, wodim
Packit 45fded
auto-detects this media state and performs a format before it starts
Packit 45fded
to write.
Packit 45fded
Note that for unknown reason, the DVD-Plus alliance does not
Packit 45fded
like that there is a simulation mode nor a way to erase DVD+RW media.
Packit 45fded
DVD+RW only supports one write mode that is close to
Packit 45fded
Packet writing; this mode is selected in 
Packit 45fded
.B wodim
Packit 45fded
via a the 
Packit 45fded
.BR \-dao / \-sao
Packit 45fded
option.
Packit 45fded
.TP
Packit 45fded
.B cw_7501
Packit 45fded
The driver for Matsushita/Panasonic CW-7501 is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds this old pre MMC drive.
Packit 45fded
.B wodim
Packit 45fded
supports all write modes for this drive type.
Packit 45fded
.TP
Packit 45fded
.B kodak_pcd_600
Packit 45fded
The driver for Kodak PCD-600 is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds this old pre MMC drive which has been the first high speed (6x)
Packit 45fded
CD writer for a long time. This drive behaves similar to the
Packit 45fded
Philips CDD-521 drive.
Packit 45fded
.TP
Packit 45fded
.B philips_cdd521
Packit 45fded
The driver for Philips CDD-521 is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds a Philips CDD-521 drive (which is the first CD writer ever made)
Packit 45fded
or one of the other drives that are known to behave similar to this
Packit 45fded
drive.
Packit 45fded
All Philips CDD-521 or similar drives (see other drivers in this list)
Packit 45fded
do not support Session At Once recording.
Packit 45fded
.TP
Packit 45fded
.B philips_cdd521_old
Packit 45fded
The driver for Philips old CDD-521 is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds a Philips CDD-521 with very old firmware which has some known limitations.
Packit 45fded
.TP
Packit 45fded
.B philips_cdd522
Packit 45fded
The driver for Philips CDD-522 is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds a Philips CDD-522 which is the successor of the 521 or one of its variants
Packit 45fded
with Kodak label.
Packit 45fded
.B wodim
Packit 45fded
does not support Session At Once recording with these drives.
Packit 45fded
.TP
Packit 45fded
.B philips_dumb
Packit 45fded
The driver for Philips CDD-521 with pessimistic assumptions is never auto-selected.
Packit 45fded
It may be used by hand with drives that behave similar to the Philips CDD-521.
Packit 45fded
.TP
Packit 45fded
.B pioneer_dws114x
Packit 45fded
The driver for Pioneer DW-S114X is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds one of the old non MMC CD writers from Pioneer.
Packit 45fded
.TP
Packit 45fded
.B plasmon_rf4100
Packit 45fded
The driver for Plasmon RF 4100 is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds this specific variant of the Philips CDD-521.
Packit 45fded
.TP
Packit 45fded
.B ricoh_ro1060c
Packit 45fded
The driver for Ricoh RO-1060C is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds this drive. There is no real support for this drive yet.
Packit 45fded
.TP
Packit 45fded
.B ricoh_ro1420c
Packit 45fded
The driver for Ricoh RO-1420C is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds a drive with this specific variant of the Philips CDD-521 command set.
Packit 45fded
.TP
Packit 45fded
.B scsi2_cd
Packit 45fded
The generic SCSI-2 CD-ROM driver is auto-selected whenever
Packit 45fded
.B wodim
Packit 45fded
finds a pre MMC drive that does not support writing or a pre MMC writer that is
Packit 45fded
not supported by
Packit 45fded
.BR wodim .
Packit 45fded
.TP
Packit 45fded
.B sony_cdu924
Packit 45fded
The driver for Sony CDU-924 / CDU-948 is auto-selected whenever
Packit 45fded
.B wodim
Packit 45fded
finds one of the old pre MMC CD writers from Sony.
Packit 45fded
.TP
Packit 45fded
.B teac_cdr50
Packit 45fded
The driver for Teac CD-R50S, Teac CD-R55S, JVC XR-W2010, Pinnacle RCD-5020
Packit 45fded
is auto-selected whenever one of the drives is found that is known to the
Packit 45fded
non MMC command set used by TEAC and JVC.
Packit 45fded
Note that many drives from JVC will not work because they do not correctly implement
Packit 45fded
the documented command set and JVC has been unwilling to fix or document the
Packit 45fded
bugs.
Packit 45fded
There is no support for the Session At Once write mode yet.
Packit 45fded
.TP
Packit 45fded
.B tyuden_ew50
Packit 45fded
The driver for Taiyo Yuden EW-50 is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds a drive with this specific variant of the Philips CDD-521 command set.
Packit 45fded
.TP
Packit 45fded
.B yamaha_cdr100
Packit 45fded
The driver for Yamaha CDR-100 / CDR-102 is auto-selected when
Packit 45fded
.B wodim
Packit 45fded
finds one of the old pre MMC CD writers from Yamaha.
Packit 45fded
There is no support for the Session At Once write mode yet.
Packit 45fded
.TP
Packit 45fded
.B cdr_simul
Packit 45fded
The simulation CD-R driver allows to run timing and speed tests
Packit 45fded
with parameters that match the behavior of CD writers.
Packit 45fded
.TP
Packit 45fded
.B dvd_simul
Packit 45fded
The simulation DVD-R driver allows to run timing and speed tests
Packit 45fded
with parameters that match the behavior of DVD writers.
Packit 45fded
.PP
Packit 45fded
Packit 45fded
.sp
Packit 45fded
There are two special driver entries in the list:
Packit 45fded
.B cdr_simul
Packit 45fded
and
Packit 45fded
.BR dvd_simul .
Packit 45fded
These driver entries are designed to make timing tests at any speed
Packit 45fded
or timing tests for drives that do not support the 
Packit 45fded
.B \-dummy
Packit 45fded
option.
Packit 45fded
The simulation drivers implement a drive with a buffer size of 1\ MB
Packit 45fded
that can be changed via the 
Packit 45fded
.B CDR_SIMUL_BUFSIZE
Packit 45fded
environment variable.
Packit 45fded
The simulation driver correctly simulates even a buffer underrun condition.
Packit 45fded
If the 
Packit 45fded
.B \-dummy 
Packit 45fded
option is present, the simulation is not aborted in case of a buffer underrun.
Packit 45fded
.RE
Packit 45fded
.TP
Packit 45fded
.BI driveropts= "option list"
Packit 45fded
Set driver specific options. The options are specified a comma separated list.
Packit 45fded
To get a list of valid options use 
Packit 45fded
.BI driveropts= help
Packit 45fded
together with the 
Packit 45fded
.I \-checkdrive
Packit 45fded
option.
Packit 45fded
If you like to set driver options without running a typical
Packit 45fded
.B wodim
Packit 45fded
task, you need to use the
Packit 45fded
.B \-setdropts
Packit 45fded
option in addition, otherwise the command line parser in
Packit 45fded
.B wodim
Packit 45fded
will complain.
Packit 45fded
Currently implemented driver options are:
Packit 45fded
.RS
Packit 45fded
.TP
Packit 45fded
.B burnfree 
Packit 45fded
Turn the support for Buffer Underrun Free writing on.
Packit 45fded
This only works for drives that support Buffer Underrun Free technology, which
Packit 45fded
is available on most drives manufactured in this millennium. 
Packit 45fded
This may be called:
Packit 45fded
.BR "Sanyo BURN-Proof" ,
Packit 45fded
.BR "Ricoh Just-Link" ,
Packit 45fded
.B "Yamaha Lossless-Link"
Packit 45fded
or similar.
Packit 45fded
.sp
Packit 45fded
This option is deprecated and is mentioned here for documentation purposes
Packit 45fded
only. The BURN-Free feature is enabled by default if the drive supports it.
Packit 45fded
However, use of BURN-Free may cause decreased burning quality. Therefore it can
Packit 45fded
be useful to disable it for certain purposes, eg. when creating a master copy
Packit 45fded
for mass CD production.
Packit 45fded
.TP
Packit 45fded
.B noburnfree 
Packit 45fded
Turn the support for Buffer Underrun Free writing off.
Packit 45fded
.TP
Packit 45fded
.BI varirec= value
Packit 45fded
Turn on the 
Packit 45fded
.B "Plextor VariRec"
Packit 45fded
writing mode. The mandatory parameter
Packit 45fded
.I value
Packit 45fded
is the laser power offset and currently may be selected from
Packit 45fded
-2, -1, 0, 1, 2.
Packit 45fded
In addition, you need to set the write speed to 4 in order to allow
Packit 45fded
.B "VariRec"
Packit 45fded
to work.
Packit 45fded
.TP
Packit 45fded
.BI gigarec= value
Packit 45fded
Manage the
Packit 45fded
.B "Plextor GigaRec"
Packit 45fded
writing mode. The mandatory parameter
Packit 45fded
.I value
Packit 45fded
is the disk capacity ratio compared to normal recording and currently may be selected from
Packit 45fded
0.6, 0.7, 0.8, 1.0, 1.2, 1.3, 1.4.
Packit 45fded
If values < 1.0 are used, then the effect is similar to the
Packit 45fded
.B "Yamaha Audio Master Q. R."
Packit 45fded
feature. If values > 1.0 are used, then the disk capacity is 
Packit 45fded
increased.
Packit 45fded
.sp
Packit 45fded
Not all drives support all 
Packit 45fded
.B GigaRec
Packit 45fded
values.
Packit 45fded
When a drive uses the 
Packit 45fded
.B GigaRec
Packit 45fded
feature, the write speed is limited to 8x.
Packit 45fded
.TP
Packit 45fded
.B audiomaster
Packit 45fded
Turn on the 
Packit 45fded
.B "Yamaha Audio Master Q. R."
Packit 45fded
feature which usually should result in high quality CDs that
Packit 45fded
have less reading problems in Hi-Fi players.
Packit 45fded
As this is implemented as a variant of the 
Packit 45fded
Session at Once write mode, it will only work if you select 
Packit 45fded
SAO write mode and there is no need to turn it off.
Packit 45fded
The 
Packit 45fded
.B "Audio Master"
Packit 45fded
mode will work with a limited speed but
Packit 45fded
may also be used with data CDs. In
Packit 45fded
.B "Audio Master"
Packit 45fded
mode, the pits on the CD will be written larger then usual so the capacity
Packit 45fded
of the medium is reduced when turning this feature on.
Packit 45fded
A 74 minute CD will only have a capacity of 63 minutes if
Packit 45fded
.B "Audio Master"
Packit 45fded
is active and the capacity of a 80 minute CD will be reduced to 68 minutes.
Packit 45fded
.TP
Packit 45fded
.B forcespeed
Packit 45fded
Normally, modern drives know the highest possible speed for different
Packit 45fded
media and may reduce the speed in order to grant best write quality.
Packit 45fded
This technology may be called:
Packit 45fded
.BR "Plextor PowerRec" ,
Packit 45fded
.BR "Ricoh Just-Speed" ,
Packit 45fded
.B "Yamaha Optimum Write Speed Control"
Packit 45fded
or similar.
Packit 45fded
Some drives (e.g. Plextor, Ricoh and Yamaha) allow to force the drive to
Packit 45fded
use the selected speed even if the medium is so bad that the
Packit 45fded
write quality would be poor. This option tells such a drive to
Packit 45fded
force to use the selected speed regardless of the medium quality.
Packit 45fded
.sp
Packit 45fded
Use this option with extreme care and note that the drive should know better
Packit 45fded
which medium will work at full speed.
Packit 45fded
The default is to turn 
Packit 45fded
.B forcespeed
Packit 45fded
off, regardless of the defaults of the drive.
Packit 45fded
.TP
Packit 45fded
.B noforcespeed
Packit 45fded
Turn off the 
Packit 45fded
.B "force speed
Packit 45fded
feature.
Packit 45fded
.TP
Packit 45fded
.B speedread
Packit 45fded
Some ultra high speed drives such as 48x and faster drives from Plextor
Packit 45fded
limit the read speed for unknown media to e.g. 40x in order to avoid
Packit 45fded
damaged disks and drives.
Packit 45fded
Using this option tells the drive to read any media as fast as possible.
Packit 45fded
Be very careful as this may cause the media to break in the drive 
Packit 45fded
while reading, resulting in a damaged media and drive! 
Packit 45fded
.TP
Packit 45fded
.B nospeedread
Packit 45fded
Turn off unlimited read speed.
Packit 45fded
.TP
Packit 45fded
.B singlesession
Packit 45fded
Turn the drive into a single session only drive.
Packit 45fded
This allows to read defective or non-compliant (illegal) media with extremely
Packit 45fded
non-standard additional (broken/illegal) TOC entries in the TOC from the second
Packit 45fded
or higher session. Some of these disks become
Packit 45fded
usable if only the information from the first session is used.
Packit 45fded
You need to enable Single Session mode before you insert the defective disk!
Packit 45fded
.TP
Packit 45fded
.B nosinglesession
Packit 45fded
Turn off single session mode. The drive will again behave as usual.
Packit 45fded
.TP
Packit 45fded
.B hidecdr
Packit 45fded
Hide the fact that a medium might be a recordable medium.
Packit 45fded
This allows to make CD-Rs look like CD-ROMs and applications believe 
Packit 45fded
that the media in the drive is not a CD-R. 
Packit 45fded
.TP
Packit 45fded
.B nohidecdr
Packit 45fded
Turn off hiding CD-R media.
Packit 45fded
.TP
Packit 45fded
.B tattooinfo
Packit 45fded
Use this option together with
Packit 45fded
.B \-checkdrive
Packit 45fded
to retrieve the image size information for the
Packit 45fded
.B "Yamaha DiskT@2
Packit 45fded
feature. The images always have a line length of 3744 pixel.
Packit 45fded
Line number 0 (radius 0) is mapped to the center of the disk.
Packit 45fded
If you know the inner and outer radius you will be able to create a
Packit 45fded
pre distorted image that later may appear undistorted on the disk.
Packit 45fded
.TP
Packit 45fded
.BI tattoofile= name
Packit 45fded
Use this option together with
Packit 45fded
.B \-checkdrive
Packit 45fded
to write an image prepared for the
Packit 45fded
.B "Yamaha DiskT@2
Packit 45fded
feature to the medium.
Packit 45fded
The file must be a file with raw image B&W data (one byte per pixel) 
Packit 45fded
in a size as retrieved by a previous call to
Packit 45fded
.BI tattoofile= name
Packit 45fded
\&.
Packit 45fded
If the size of the image equals the maximum possible size
Packit 45fded
(3744 x 320 pixel), 
Packit 45fded
.B wodim
Packit 45fded
will use the first part of the file. This first part then will 
Packit 45fded
be written to the leftover space on the CD.
Packit 45fded
.sp
Packit 45fded
Note that the image must be mirrored to be readable from the pick up
Packit 45fded
side of the CD.
Packit 45fded
.RE
Packit 45fded
.TP
Packit 45fded
.B \-setdropts
Packit 45fded
Set the driveropts specified by
Packit 45fded
.BI driveropts= "option list" ,
Packit 45fded
the 
Packit 45fded
.B speed
Packit 45fded
of the drive and the 
Packit 45fded
.B dummy
Packit 45fded
flag and exit.
Packit 45fded
This allows wodim to set drive specific parameters that are not directly 
Packit 45fded
used by
Packit 45fded
.B wodim
Packit 45fded
like e.g.
Packit 45fded
.BR "single session mode" ", " "hide cdr"
Packit 45fded
and similar.
Packit 45fded
It is needed in case that 
Packit 45fded
.BI driveropts= "option list"
Packit 45fded
should be called without planning to run a typical
Packit 45fded
.B wodim
Packit 45fded
task.
Packit 45fded
.TP
Packit 45fded
.B \-checkdrive
Packit 45fded
Checks if a driver for the current drive is present and exit.
Packit 45fded
If the drive is a known drive, 
Packit 45fded
.B wodim
Packit 45fded
uses exit code 0.
Packit 45fded
.TP
Packit 45fded
.B \-prcap
Packit 45fded
Print the drive capabilities for SCSI-3/mmc compliant drives
Packit 45fded
as obtained from mode page 0x2A. Values marked with 
Packit 45fded
.I kB
Packit 45fded
use 1000 bytes as kilo-byte, values marked with
Packit 45fded
.I KB
Packit 45fded
use 1024 bytes as Kilo-byte.
Packit 45fded
.TP
Packit 45fded
.B \-inq
Packit 45fded
Do an inquiry for the drive, print the inquiry info and exit.
Packit 45fded
.TP
Packit 45fded
.B \-scanbus
Packit 45fded
Scan all SCSI devices on all SCSI busses and print the inquiry
Packit 45fded
strings. This option may be used to find SCSI address of the 
Packit 45fded
CD/DVD-Recorder on a system. If some device types are invisible, try using
Packit 45fded
.B dev=ATA:
Packit 45fded
or similar option to give a hint about the device type you are looking for.
Packit 45fded
The numbers printed out as labels are computed by: 
Packit 45fded
.B "bus * 100 + target.
Packit 45fded
On platforms and device systems without persistent SCSI number management the
Packit 45fded
results are not reliable. Use the .B \-\-devices option instead.
Packit 45fded
.TP
Packit 45fded
.B \-\-devices
Packit 45fded
Look for useable devices using the system specific functions, eg. probing with
Packit 45fded
usual device nodes in /dev/*, and display the detections using symbolic device
Packit 45fded
names in OS specific syntax.
Packit 45fded
.TP
Packit 45fded
.B \-reset
Packit 45fded
Try to reset the SCSI bus where the CD recorder is located. This works not
Packit 45fded
on all operating systems.
Packit 45fded
.TP
Packit 45fded
.B \-abort
Packit 45fded
Try to send an 
Packit 45fded
.B abort
Packit 45fded
sequence to the drive.
Packit 45fded
If you use 
Packit 45fded
.B wodim
Packit 45fded
only, this should never be needed; but other software may leave a drive 
Packit 45fded
in an unusable condition.
Packit 45fded
Calling
Packit 45fded
.B "wodim \-reset
Packit 45fded
may be needed if a previous write has been interrupted and the software did 
Packit 45fded
not tell the drive that it will not continue to write.
Packit 45fded
.TP
Packit 45fded
.B \-overburn
Packit 45fded
Allow 
Packit 45fded
.B wodim 
Packit 45fded
to write more than the official size of a medium. This feature is usually
Packit 45fded
called 
Packit 45fded
.I overburning
Packit 45fded
and depends on the fact that most blank media may hold more space than the
Packit 45fded
official size. As the official size of the lead-out area on the disk is
Packit 45fded
90 seconds (6750 sectors) and a disk usually works if there are at least
Packit 45fded
150 sectors of lead out, all media may be overburned by at least 88 seconds
Packit 45fded
(6600 sectors).
Packit 45fded
Most CD recorders only do overburning in 
Packit 45fded
.B SAO
Packit 45fded
or
Packit 45fded
.B RAW
Packit 45fded
mode. Known exceptions are TEAC CD-R50S, TEAC CD-R55S and the Panasonic
Packit 45fded
CW-7502.
Packit 45fded
Some drives do not allow to overburn as much as you might like and limit
Packit 45fded
the size of a CD to e.g. 76 minutes. This problem may be circumvented by
Packit 45fded
writing the CD in RAW mode because this way the drive has no chance to find
Packit 45fded
the size before starting to burn.
Packit 45fded
There is no guarantee that your drive supports overburning at all.
Packit 45fded
Make a test to check if your drive implements the feature.
Packit 45fded
.TP
Packit 45fded
.B \-ignsize
Packit 45fded
Ignore the known size of the medium. This option should be used with extreme
Packit 45fded
care, it exists only for debugging purposes don't use it for other reasons.
Packit 45fded
It is not needed to write disks with more than the nominal capacity.
Packit 45fded
This option implies
Packit 45fded
.BR \-overburn .
Packit 45fded
.TP
Packit 45fded
.B \-useinfo
Packit 45fded
Use
Packit 45fded
.B "*.inf
Packit 45fded
files to overwrite audio options.
Packit 45fded
If this option is used, the pregap size information is read from 
Packit 45fded
the
Packit 45fded
.B "*.inf
Packit 45fded
file that is associated with the file that contains the audio
Packit 45fded
data for a track.
Packit 45fded
.sp
Packit 45fded
If used together with the
Packit 45fded
.B \-audio
Packit 45fded
option,
Packit 45fded
.B wodim
Packit 45fded
may be used to write audio CDs from a pipe from
Packit 45fded
.B icedax
Packit 45fded
if you call
Packit 45fded
.B wodim
Packit 45fded
with the
Packit 45fded
.B *.inf
Packit 45fded
files as track parameter list instead of using audio files.
Packit 45fded
The audio data is read from 
Packit 45fded
.B stdin
Packit 45fded
in this case.
Packit 45fded
See
Packit 45fded
.B EXAMPLES
Packit 45fded
section below.
Packit 45fded
.B wodim
Packit 45fded
first verifies that 
Packit 45fded
.B stdin
Packit 45fded
is not connected to a terminal and runs some heuristic consistency checks
Packit 45fded
on the
Packit 45fded
.B *.inf
Packit 45fded
files and then sets the track lengths from the information in
Packit 45fded
the
Packit 45fded
.B *.inf
Packit 45fded
files.
Packit 45fded
.sp
Packit 45fded
If you like to write from 
Packit 45fded
.BR stdin ,
Packit 45fded
make sure that wodim is called with a large enough FIFO size, reduce the write
Packit 45fded
speed to a value below the read speed of the source drive and switch the burn-free
Packit 45fded
option for the recording drive on.
Packit 45fded
.TP
Packit 45fded
.BR defpregap= #
Packit 45fded
Set the default pre-gap size for all tracks except track number 1.
Packit 45fded
This option currently only makes sense with the TEAC drive when
Packit 45fded
creating track-at-once disks without the 2 second silence before each track.
Packit 45fded
.br
Packit 45fded
This option may go away in future. 
Packit 45fded
.TP
Packit 45fded
.B \-packet
Packit 45fded
Set 
Packit 45fded
.B "Packet writing mode. 
Packit 45fded
This is an experimental interface.
Packit 45fded
.TP
Packit 45fded
.BR pktsize= #
Packit 45fded
Set the packet size to #, forces fixed packet mode.
Packit 45fded
This is an experimental interface.
Packit 45fded
.TP
Packit 45fded
.B \-noclose
Packit 45fded
Do not close the current track, useful only when in packet writing mode.
Packit 45fded
This is an experimental interface.
Packit 45fded
.TP
Packit 45fded
.BI mcn= med_cat_nr
Packit 45fded
Set the 
Packit 45fded
.B "Media Catalog Number
Packit 45fded
of the CD to 
Packit 45fded
.IR med_cat_nr .
Packit 45fded
.TP
Packit 45fded
.B \-text
Packit 45fded
Write CD-Text information
Packit 45fded
based on information taken from a file that contains ascii information
Packit 45fded
for the text strings. 
Packit 45fded
.B wodim
Packit 45fded
supports CD-Text information based on the content of the
Packit 45fded
.B *.inf
Packit 45fded
files created by 
Packit 45fded
.B icedax 
Packit 45fded
and CD-Text information based on the content from a
Packit 45fded
.B "CUE sheet
Packit 45fded
file.
Packit 45fded
If a 
Packit 45fded
.B "CUE sheet
Packit 45fded
file contains both (binary CDTEXTFILE and text based SONGWRITER)
Packit 45fded
entries, then the information based on the CDTEXTFILE entry will win.
Packit 45fded
.sp
Packit 45fded
You need to use the
Packit 45fded
.B \-useinfo
Packit 45fded
option in addition in order to tell 
Packit 45fded
.B wodim
Packit 45fded
to read the
Packit 45fded
.B "*.inf
Packit 45fded
files or
Packit 45fded
.BI cuefile= filename
Packit 45fded
in order to tell
Packit 45fded
.B wodim
Packit 45fded
to read a
Packit 45fded
.B CUE sheet
Packit 45fded
file in addition.
Packit 45fded
If you like to write your own CD-Text information,
Packit 45fded
edit the
Packit 45fded
.B *.inf
Packit 45fded
files or the
Packit 45fded
.B "CUE sheet
Packit 45fded
file with a text editor and change the fields
Packit 45fded
that are relevant for CD-Text.
Packit 45fded
.TP
Packit 45fded
.BI textfile= filename
Packit 45fded
Write CD-Text based on information found in the binary file
Packit 45fded
.IR filename .
Packit 45fded
This file must contain information in a data format defined in the
Packit 45fded
SCSI-3 MMC-2 standard and in the Red Book. The four byte size header that is 
Packit 45fded
defined in the SCSI standard is optional and allows to make the recognition of
Packit 45fded
correct data less ambiguous.
Packit 45fded
This is the best option to be used to copy CD-Text data from existing CDs
Packit 45fded
that already carry CD-Text information. To get data in a format suitable
Packit 45fded
for this option use 
Packit 45fded
.B wodim \-vv \-toc
Packit 45fded
to extract the information from disk.
Packit 45fded
If both, 
Packit 45fded
.BI textfile= filename
Packit 45fded
and CD-Text information from
Packit 45fded
.B *.inf
Packit 45fded
or
Packit 45fded
.B *.cue
Packit 45fded
files are present,
Packit 45fded
.BI textfile= filename
Packit 45fded
will overwrite the other information.
Packit 45fded
.TP
Packit 45fded
.BI cuefile= filename
Packit 45fded
Take all recording related information from a CDRWIN compliant
Packit 45fded
.B "CUE sheet
Packit 45fded
file.
Packit 45fded
No track files are allowed when this option is present and the option
Packit 45fded
.B \-dao
Packit 45fded
is currently needed in addition.
Packit 45fded
Packit 45fded
.SH "TRACK OPTIONS
Packit 45fded
.PP
Packit 45fded
Track options may be mixed with track file names.
Packit 45fded
.TP
Packit 45fded
.BI isrc= ISRC_number
Packit 45fded
Set the 
Packit 45fded
.B "International Standard Recording Number
Packit 45fded
for the next track to
Packit 45fded
.IR ISRC_number .
Packit 45fded
.TP
Packit 45fded
.BI index= list
Packit 45fded
Sets an index list for the next track.
Packit 45fded
In index list is a comma separated list of numbers that are counting
Packit 45fded
from index 1. The first entry in this list must contain a 0, the following 
Packit 45fded
numbers must be an ascending list of numbers (counting in 1/75 seconds) that 
Packit 45fded
represent the start of the indices. An index list in the form:
Packit 45fded
0,7500,15000 sets index 1 to the start of the track, index 2 100 seconds from
Packit 45fded
the start of the track and index 3 200 seconds from the start of the track.
Packit 45fded
.TP
Packit 45fded
.B \-audio
Packit 45fded
If this flag is present, all subsequent tracks are written in
Packit 45fded
.B "CD-DA 
Packit 45fded
(similar to Red Book) audio format.
Packit 45fded
The file with data for this tracks should
Packit 45fded
contain stereo, 16-bit digital audio with 44100 samples/s.
Packit 45fded
The byte order should be the following: MSB left, LSB left, 
Packit 45fded
MSB right, LSB right, MSB left and so on. The track should be a multiple of 
Packit 45fded
2352 bytes. It is not possible to put the master image of an audio track 
Packit 45fded
on a raw disk because 
Packit 45fded
data will be read in multiple of 2352 bytes during the recording process.
Packit 45fded
.sp
Packit 45fded
If a filename ends in 
Packit 45fded
.I .au
Packit 45fded
or
Packit 45fded
.I .wav
Packit 45fded
the file is considered to be a structured audio data file.
Packit 45fded
.B wodim
Packit 45fded
assumes that the file in this case is a Sun audio file or a
Packit 45fded
Microsoft .WAV file
Packit 45fded
and extracts the audio data from the files by skipping over the
Packit 45fded
non-audio header information.
Packit 45fded
In all other cases, wodim will only work correctly if the
Packit 45fded
audio data stream does not have any header.
Packit 45fded
Because many structured audio files do not have an integral
Packit 45fded
number of blocks (1/75th second) in length,
Packit 45fded
it is often necessary to specify the
Packit 45fded
.B \-pad
Packit 45fded
option as well.
Packit 45fded
.B wodim
Packit 45fded
recognizes that audio data in a .WAV file is stored in Intel
Packit 45fded
(little-endian) byte order, and will automatically byte-swap the data
Packit 45fded
if the CD recorder requires big-endian data.  
Packit 45fded
.B wodim
Packit 45fded
will reject any audio file that does not match the Red Book requirements
Packit 45fded
of 16-bit stereo samples in PCM coding at 44100 samples/second.
Packit 45fded
.sp
Packit 45fded
Using other structured audio data formats as input to 
Packit 45fded
.B wodim
Packit 45fded
will usually work if the structure of the data is the 
Packit 45fded
structure described above (raw pcm data in big-endian byte order).
Packit 45fded
However, if the data format includes a header,
Packit 45fded
you will hear a click at the start of a track.
Packit 45fded
.TP
Packit 45fded
.I " "
Packit 45fded
If neither 
Packit 45fded
.I \-data 
Packit 45fded
nor
Packit 45fded
.I \-audio
Packit 45fded
have been specified, 
Packit 45fded
.B wodim
Packit 45fded
defaults to 
Packit 45fded
.I \-audio
Packit 45fded
for all filenames that end in
Packit 45fded
.I .au
Packit 45fded
or 
Packit 45fded
.I .wav
Packit 45fded
and to
Packit 45fded
.I \-data 
Packit 45fded
for all other files.
Packit 45fded
.TP
Packit 45fded
.B \-swab
Packit 45fded
If this flag is present, audio data is assumed to be in byte-swapped
Packit 45fded
(little-endian) order.  Some types of CD-Writers e.g. Yamaha, Sony and the
Packit 45fded
new SCSI-3/mmc drives require audio data to be presented in
Packit 45fded
little-endian order,
Packit 45fded
.\" (which is the order in which it's actually recorded on the CD) ????
Packit 45fded
while other writers require audio data to be
Packit 45fded
presented in the big-endian (network) byte order normally used by the
Packit 45fded
SCSI protocol.
Packit 45fded
.B wodim
Packit 45fded
knows if a CD-Recorder needs audio data in big- or little-endian order,
Packit 45fded
and corrects the byte order of the data stream to match the needs
Packit 45fded
of the recorder.
Packit 45fded
You only need the 
Packit 45fded
.I \-swab 
Packit 45fded
flag if your data stream is in Intel (little-endian) byte order.
Packit 45fded
.sp
Packit 45fded
Note that the verbose output of
Packit 45fded
.B wodim
Packit 45fded
will show you if swapping is necessary to make the byte order of 
Packit 45fded
the input data fit the required byte order of the recorder.
Packit 45fded
.B wodim
Packit 45fded
will not show you if the 
Packit 45fded
.I \-swab 
Packit 45fded
flag was actually present for a track.
Packit 45fded
.TP
Packit 45fded
.B \-data
Packit 45fded
If this flag is present, all subsequent tracks are written in
Packit 45fded
.B "CD-ROM mode 1
Packit 45fded
(Yellow Book) format. The data size is a multiple of 2048 bytes.
Packit 45fded
The file with track data should contain an 
Packit 45fded
.BR ISO-9660 " or " "Rock Ridge
Packit 45fded
filesystem image (see 
Packit 45fded
.B genisoimage
Packit 45fded
for more details). If the track data is an
Packit 45fded
.B ufs
Packit 45fded
filesystem image, fragment size should be set to 2\ KB or more to allow
Packit 45fded
CD-drives with 2\ KB sector size to be used for reading.
Packit 45fded
.TP
Packit 45fded
.I " "
Packit 45fded
.I \-data
Packit 45fded
is the default, if no other flag is present and the file does not
Packit 45fded
appear to be of one of the well known audio file types.
Packit 45fded
.TP
Packit 45fded
.I " "
Packit 45fded
If neither 
Packit 45fded
.I \-data 
Packit 45fded
nor
Packit 45fded
.I \-audio
Packit 45fded
have been specified, 
Packit 45fded
.B wodim
Packit 45fded
defaults to 
Packit 45fded
.I \-audio
Packit 45fded
for all filenames that end in
Packit 45fded
.I .au
Packit 45fded
or 
Packit 45fded
.I .wav
Packit 45fded
and to
Packit 45fded
.I \-data 
Packit 45fded
for all other files.
Packit 45fded
.TP
Packit 45fded
.B \-mode2
Packit 45fded
If this flag is present, all subsequent tracks are written in
Packit 45fded
.B "CD-ROM mode 2
Packit 45fded
format. The data size is a multiple of 2336 bytes.
Packit 45fded
.TP
Packit 45fded
.B \-xa
Packit 45fded
If this flag is present, all subsequent tracks are written in
Packit 45fded
.B "CD-ROM XA mode 2 form 1
Packit 45fded
format. The data size is a multiple of 2048 bytes.
Packit 45fded
The XA sector sub headers will be created by the drive.
Packit 45fded
With this option, the write mode is the same as with the
Packit 45fded
.B \-multi
Packit 45fded
option.
Packit 45fded
.TP
Packit 45fded
.B \-xa1
Packit 45fded
If this flag is present, all subsequent tracks are written in
Packit 45fded
.B "CD-ROM XA mode 2 form 1
Packit 45fded
format. The data size is a multiple of 2056 bytes.
Packit 45fded
The XA sector sub headers are part of the user data and have to be
Packit 45fded
supplied by the application that prepares the data to be written.
Packit 45fded
.TP
Packit 45fded
.B \-xa2
Packit 45fded
If this flag is present, all subsequent tracks are written in
Packit 45fded
.B "CD-ROM XA mode 2 form 2
Packit 45fded
format. The data is a multiple of 2324 bytes.
Packit 45fded
The XA sector sub headers will be created by the drive.
Packit 45fded
.TP
Packit 45fded
.B \-xamix
Packit 45fded
If this flag is present, all subsequent tracks are written in a way
Packit 45fded
that allows a mix of 
Packit 45fded
.B "CD-ROM XA mode 2 form 1/2
Packit 45fded
format. The data size is a multiple of 2332 bytes.
Packit 45fded
The XA sector sub headers are part of the user data and have to be
Packit 45fded
supplied by the application that prepares the data to be written.
Packit 45fded
The CRC and the P/Q parity ECC/EDC information (depending on the sector
Packit 45fded
type) have to be supplied by the application that prepares the data to be written.
Packit 45fded
.TP
Packit 45fded
.B \-cdi
Packit 45fded
If this flag is present, the TOC type for the disk is set to
Packit 45fded
.BR CDI .
Packit 45fded
This only makes sense with XA disks.
Packit 45fded
.TP
Packit 45fded
.B \-isosize
Packit 45fded
Use the 
Packit 45fded
.B "ISO-9660
Packit 45fded
file system size as the size of the next track.
Packit 45fded
This option is needed if you want 
Packit 45fded
.B wodim
Packit 45fded
to directly read the image of a track from
Packit 45fded
a raw disk partition or from a 
Packit 45fded
.I TAO 
Packit 45fded
master CD. In the first case the option
Packit 45fded
.B \-isosize
Packit 45fded
is needed to limit the size of the CD to the size of the ISO filesystem.
Packit 45fded
In the second case the option
Packit 45fded
.B \-isosize
Packit 45fded
is needed to prevent 
Packit 45fded
.B wodim
Packit 45fded
from reading the two run out blocks that are appended by each CD-recorder
Packit 45fded
in track at once mode. These two run out blocks cannot be read and would
Packit 45fded
cause a buffer underrun that would cause a defective copy.
Packit 45fded
Do not use this option on files created by 
Packit 45fded
.B genisoimage
Packit 45fded
and in case
Packit 45fded
.B wodim
Packit 45fded
reads the track data from 
Packit 45fded
.IR stdin .
Packit 45fded
In the first case, you would prevent 
Packit 45fded
.B wodim 
Packit 45fded
from writing the amount of padding that has been appended by
Packit 45fded
.B genisoimage
Packit 45fded
and in the latter case, it will not work because 
Packit 45fded
.I stdin
Packit 45fded
is not seekable.
Packit 45fded
.sp
Packit 45fded
If 
Packit 45fded
.B \-isosize
Packit 45fded
is used for a track, 
Packit 45fded
.B wodim
Packit 45fded
will automatically add padding for this track as if the
Packit 45fded
.B \-pad
Packit 45fded
option has been used but the amount of padding may be less than the padding
Packit 45fded
written by 
Packit 45fded
.BR  genisoimage .
Packit 45fded
Note that if you use
Packit 45fded
.B \-isosize
Packit 45fded
on a track that contains Sparc boot information, the boot information will
Packit 45fded
be lost.
Packit 45fded
.sp
Packit 45fded
Note also that
Packit 45fded
this option cannot be used to determine the size of a file system
Packit 45fded
if the multi session option is present.
Packit 45fded
.TP
Packit 45fded
.B \-pad
Packit 45fded
If the track is a data track, 15 sectors of zeroed data
Packit 45fded
will be added to the end of this and each subsequent data track.
Packit 45fded
In this case, the 
Packit 45fded
.B \-pad 
Packit 45fded
option is superseded by the 
Packit 45fded
.B padsize=
Packit 45fded
option. It will remain however as a shorthand for
Packit 45fded
.BI padsize= 15s.
Packit 45fded
If the 
Packit 45fded
.I \-pad 
Packit 45fded
option refers to an audio track,
Packit 45fded
.B wodim 
Packit 45fded
will pad the audio data to be a multiple of 2352 bytes. 
Packit 45fded
The audio data padding is done with binary zeroes which is 
Packit 45fded
equal to absolute silence.
Packit 45fded
.sp
Packit 45fded
.B \-pad 
Packit 45fded
remains valid until disabled by 
Packit 45fded
.BR \-nopad .
Packit 45fded
.TP
Packit 45fded
.BR padsize= #
Packit 45fded
Set the amount of data to be appended as padding to the next track to #.
Packit 45fded
Opposed to the behavior of the 
Packit 45fded
.B \-pad
Packit 45fded
option, the value for 
Packit 45fded
.I padsize=
Packit 45fded
is reset to zero for each new track.
Packit 45fded
wodim assumes a sector size of 2048 bytes for the
Packit 45fded
.I padsize=
Packit 45fded
option, independent from the real 
Packit 45fded
sector size and independent from the write mode.
Packit 45fded
The megabytes mentioned in the verbose mode output however are counting
Packit 45fded
the output sector size which is e.g. 2448 bytes when writing in RAW/RAW96
Packit 45fded
mode.
Packit 45fded
See
Packit 45fded
.BR fs =
Packit 45fded
option for possible arguments.
Packit 45fded
To pad the equivalent of 20 minutes on a CD, you may write
Packit 45fded
.BR padsize= 20x60x75s.
Packit 45fded
Use this option if your CD-drive is not able to read the last sectors of
Packit 45fded
a track or if you want to be able to read the CD
Packit 45fded
on a 
Packit 45fded
.B Linux 
Packit 45fded
system with the ISO-9660 filesystem read ahead bug.
Packit 45fded
If an empty file is used for track data, 
Packit 45fded
this option may be used to create a disk that is entirely made of padding.
Packit 45fded
This may e.g. be used to find out how much overburning is possible with a 
Packit 45fded
specific media.
Packit 45fded
.TP
Packit 45fded
.B \-nopad
Packit 45fded
Do not pad the following tracks \- the default.
Packit 45fded
.TP
Packit 45fded
.B \-shorttrack
Packit 45fded
Allow all subsequent tracks to violate the Red Book track length standard
Packit 45fded
which requires a minimum track length of 4 seconds.
Packit 45fded
This option is only useful when used in SAO or RAW mode.
Packit 45fded
Not all drives support this feature. The drive must accept the
Packit 45fded
resulting CUE sheet or support RAW writing.
Packit 45fded
.TP
Packit 45fded
.B \-noshorttrack
Packit 45fded
Re-enforce the Red Book track length standard. Tracks must be
Packit 45fded
at least 4 seconds.
Packit 45fded
.TP
Packit 45fded
.BR pregap= #
Packit 45fded
Set the  pre-gap size for the next track.
Packit 45fded
This option currently only makes sense with the TEAC drive when
Packit 45fded
creating track-at-once disks without the 2 second silence before each track.
Packit 45fded
.br
Packit 45fded
This option may go away in future. 
Packit 45fded
.TP
Packit 45fded
.B \-preemp
Packit 45fded
If this flag is present, all TOC entries for subsequent audio tracks 
Packit 45fded
will indicate that the audio data has been sampled with 50/15 \*msec
Packit 45fded
pre-emphasis.
Packit 45fded
The data, however is not modified during the process of transferring from file
Packit 45fded
to disk. 
Packit 45fded
This option has no effect on data tracks.
Packit 45fded
.TP
Packit 45fded
.B \-nopreemp
Packit 45fded
If this flag is present, all TOC entries for subsequent audio tracks 
Packit 45fded
will indicate that the audio data has been mastered with linear data \- 
Packit 45fded
this is the default.
Packit 45fded
.TP
Packit 45fded
.B \-copy
Packit 45fded
If this flag is present, all TOC entries for subsequent audio tracks
Packit 45fded
of the resulting CD
Packit 45fded
will indicate that the audio data has permission to be copied without limit.
Packit 45fded
This option has no effect on data tracks.
Packit 45fded
.TP
Packit 45fded
.B \-nocopy
Packit 45fded
If this flag is present, all TOC entries for subsequent audio tracks 
Packit 45fded
of the resulting CD
Packit 45fded
will indicate that the audio data has permission to be copied only once for
Packit 45fded
personal use \-
Packit 45fded
this is the default.
Packit 45fded
.TP
Packit 45fded
.B \-scms
Packit 45fded
If this flag is present, all TOC entries for subsequent audio tracks 
Packit 45fded
of the resulting CD
Packit 45fded
will indicate that the audio data has no permission to be copied anymore.
Packit 45fded
.TP
Packit 45fded
.BR tsize= #
Packit 45fded
If the master image for the next track has been stored on a raw disk, 
Packit 45fded
use this option
Packit 45fded
to specify the valid amount of data on this disk. If the image of the next 
Packit 45fded
track is stored in a regular file, the size of that file is taken to determine
Packit 45fded
the length of this track.
Packit 45fded
If the track contains an ISO 9660 filesystem image use the 
Packit 45fded
.I \-isosize
Packit 45fded
option to determine the length of that filesystem image.
Packit 45fded
.br
Packit 45fded
In Disk at Once mode and with some drives that use
Packit 45fded
the TEAC programming interface, even in Track at Once mode,
Packit 45fded
.B wodim
Packit 45fded
needs to know the size of each track before starting to write the disk.
Packit 45fded
wodim now checks this and aborts before starting to write.
Packit 45fded
If this happens you will need to run
Packit 45fded
.B "genisoimage -print-size
Packit 45fded
before and use the output (with `s' appended) as an argument to the 
Packit 45fded
.BR tsize =
Packit 45fded
option of 
Packit 45fded
.B wodim
Packit 45fded
(e.g. tsize=250000s).
Packit 45fded
.br
Packit 45fded
See
Packit 45fded
.BR fs =
Packit 45fded
option for possible arguments.
Packit 45fded
Packit 45fded
.SH EXAMPLES
Packit 45fded
.PP
Packit 45fded
For all examples below, it will be assumed that the CD/DVD-Recorder is
Packit 45fded
connected to the primary SCSI bus of the machine. The SCSI target id is
Packit 45fded
set to 2.
Packit 45fded
.PP
Packit 45fded
To record a pure CD-ROM at double speed, using data from the file
Packit 45fded
.IR cdimage.raw :
Packit 45fded
.PP
Packit 45fded
    wodim \-v speed=2 dev=2,0 cdimage.raw
Packit 45fded
.PP
Packit 45fded
To create an image for a ISO 9660 filesystem with Rock Ridge extensions:
Packit 45fded
.PP
Packit 45fded
    genisoimage \-R \-o cdimage.raw /home/joerg/master/tree
Packit 45fded
.PP
Packit 45fded
To check the resulting file before writing to CD on Solaris:
Packit 45fded
.PP
Packit 45fded
    mount \-r \-F fbk \-o type=hsfs /dev/fbk0:cdimage.raw /mnt
Packit 45fded
.PP
Packit 45fded
On Linux:
Packit 45fded
.PP
Packit 45fded
    mount cdimage.raw \-r \-t iso9660 \-o loop /mnt
Packit 45fded
.PP
Packit 45fded
Go on with:
Packit 45fded
.br
Packit 45fded
    ls \-lR /mnt
Packit 45fded
.br
Packit 45fded
    umount /mnt
Packit 45fded
.PP
Packit 45fded
If the overall speed of the system is sufficient and the structure of
Packit 45fded
the filesystem is not too complex, wodim will run without creating an
Packit 45fded
image of the ISO 9660 filesystem. Simply run the pipeline:
Packit 45fded
.PP
Packit 45fded
    genisoimage \-R /master/tree | wodim \-v fs=6m speed=2 dev=2,0 -
Packit 45fded
.PP
Packit 45fded
The recommended minimum FIFO size for running this pipeline is 4 MBytes.
Packit 45fded
As the default FIFO size is 4 MB, the 
Packit 45fded
.B fs=
Packit 45fded
option needs only be present if you want to use a different FIFO size.
Packit 45fded
If your system is loaded, you should run genisoimage in the real time class too.
Packit 45fded
To raise the priority of 
Packit 45fded
.B genisoimage
Packit 45fded
replace the command
Packit 45fded
.PP
Packit 45fded
    genisoimage \-R /master/tree
Packit 45fded
.br
Packit 45fded
by
Packit 45fded
.br
Packit 45fded
    priocntl \-e \-c RT \-p 59 genisoimage \-R /master/tree
Packit 45fded
.sp
Packit 45fded
on Solaris and by
Packit 45fded
.sp
Packit 45fded
    nice --18 genisoimage \-R /master/tree
Packit 45fded
.sp
Packit 45fded
on systems that don't have
Packit 45fded
.B "UNIX International
Packit 45fded
compliant real-time scheduling.
Packit 45fded
.PP
Packit 45fded
wodim runs at priority 59 on Solaris, you should run genisoimage
Packit 45fded
at no more than priority 58. On other systems, you should run genisoimage
Packit 45fded
at no less than nice --18.
Packit 45fded
.PP
Packit 45fded
Creating a CD-ROM without file system image on disk has been tested
Packit 45fded
on a Sparcstation-2 with a Yamaha CDR-400. It did work up to quad speed
Packit 45fded
when the machine was not loaded.
Packit 45fded
A faster machine may be able to handle quad speed also in the loaded case.
Packit 45fded
.PP
Packit 45fded
To record a pure CD-DA (audio) at single speed, with each track contained
Packit 45fded
in a file named
Packit 45fded
.IR track01.cdaudio ,
Packit 45fded
.IR track02.cdaudio ,
Packit 45fded
etc:
Packit 45fded
.PP
Packit 45fded
    wodim \-v speed=1 dev=/dev/cdrw -audio track*.cdaudio
Packit 45fded
.PP
Packit 45fded
To check if it will be ok to use double speed for the example above. 
Packit 45fded
Use the dummy write option:
Packit 45fded
.PP
Packit 45fded
    wodim \-v \-dummy speed=2 dev=/dev/cdrw \-audio track*.cdaudio
Packit 45fded
.PP
Packit 45fded
To record a mixed-mode CD with an ISO 9660 filesystem from
Packit 45fded
.I cdimage.raw
Packit 45fded
on the first track, the other tracks being audio tracks from the files
Packit 45fded
.IR track01.cdaudio ,
Packit 45fded
.IR track02.cdaudio ,
Packit 45fded
etc:
Packit 45fded
.PP
Packit 45fded
    wodim \-v dev=2,0 cdimage.raw \-audio track*.cdaudio
Packit 45fded
.PP
Packit 45fded
To handle drives that need to know the size of a track before starting to write,
Packit 45fded
first run
Packit 45fded
.PP
Packit 45fded
    genisoimage -R -q -print-size /master/tree
Packit 45fded
.PP
Packit 45fded
and then run
Packit 45fded
.PP
Packit 45fded
    genisoimage -R /master/tree | wodim speed=2 dev=2,0 tsize=XXXs -
Packit 45fded
.PP
Packit 45fded
where 
Packit 45fded
.I XXX
Packit 45fded
is replaced by the output of the previous run of genisoimage.
Packit 45fded
.PP
Packit 45fded
To copy an audio CD in the most accurate way, first run
Packit 45fded
.PP
Packit 45fded
    icedax dev=/dev/cdrom \-vall cddb=0 -B \-Owav
Packit 45fded
.PP
Packit 45fded
and then run
Packit 45fded
.PP
Packit 45fded
    wodim dev=/dev/cdrw \-v \-dao \-useinfo \-text  *.wav
Packit 45fded
.PP
Packit 45fded
This will try to copy track indices and to read CD-Text information from disk.
Packit 45fded
If there is no CD-Text information, 
Packit 45fded
.B icedax
Packit 45fded
will try to get the information from freedb.org instead.
Packit 45fded
.PP
Packit 45fded
To copy an audio CD from a pipe (without intermediate files), first run
Packit 45fded
.PP
Packit 45fded
    icedax dev=1,0 \-vall cddb=0 \-info-only
Packit 45fded
.PP
Packit 45fded
and then run
Packit 45fded
.PP
Packit 45fded
    icedax dev=1,0 \-no-infofile \-B \-Oraw \- | \\
Packit 45fded
.br
Packit 45fded
    wodim dev=2,0 \-v \-dao \-audio \-useinfo \-text *.inf
Packit 45fded
.PP
Packit 45fded
This will get all information (including track size info) from the
Packit 45fded
.B *.inf
Packit 45fded
files and then read the audio data from stdin.
Packit 45fded
.sp
Packit 45fded
If you like to write from 
Packit 45fded
.BR stdin ,
Packit 45fded
make sure that wodim is called with a large enough FIFO size (e.g.
Packit 45fded
.BR fs=128m ),
Packit 45fded
reduce the write speed to a value below the read speed of the source drive
Packit 45fded
(e.g.
Packit 45fded
.BR speed=12 ),
Packit 45fded
and get a CD/DVD drive with BURN-Free feature if it is not available yet.
Packit 45fded
.PP
Packit 45fded
To set drive options without writing a CD (e.g. to switch a drive
Packit 45fded
to single session mode), run
Packit 45fded
.PP
Packit 45fded
    wodim dev=1,0 \-setdropts driveropts=singlesession
Packit 45fded
.PP
Packit 45fded
If you like to do this when no CD is in the drive, call
Packit 45fded
.PP
Packit 45fded
    wodim dev=1,0 \-force \-setdropts driveropts=singlesession
Packit 45fded
.PP
Packit 45fded
To copy a CD in clone mode, first read the master CD using:
Packit 45fded
.PP
Packit 45fded
    readom dev=b,t,l \-clone f=somefile
Packit 45fded
.PP
Packit 45fded
or (in case the CD contains many sectors that are unreadable by intention)
Packit 45fded
by calling:
Packit 45fded
.PP
Packit 45fded
    readom dev=1,0 -clone -nocorr f=somefile
Packit 45fded
.PP
Packit 45fded
will create the files
Packit 45fded
.I somefile
Packit 45fded
and
Packit 45fded
.IR somefile.toc .
Packit 45fded
Then write the CD using:
Packit 45fded
.PP
Packit 45fded
    wodim dev=1,0 -raw96r -clone -v somefile
Packit 45fded
Packit 45fded
Packit 45fded
.SH ENVIRONMENT
Packit 45fded
.TP
Packit 45fded
.B CDR_DEVICE
Packit 45fded
This may either hold a device identifier that is suitable to the open
Packit 45fded
call of the SCSI transport library or a label in the file /etc/wodim.conf.
Packit 45fded
.TP
Packit 45fded
.B CDR_SPEED
Packit 45fded
Sets the default speed value for writing (see also 
Packit 45fded
.B speed=
Packit 45fded
option).
Packit 45fded
.TP
Packit 45fded
.B CDR_FIFOSIZE
Packit 45fded
Sets the default size of the FIFO (see also 
Packit 45fded
.BR fs= #
Packit 45fded
option).
Packit 45fded
.TP
Packit 45fded
.B CDR_FORCERAWSPEED
Packit 45fded
If this environment variable is set, 
Packit 45fded
.B wodim
Packit 45fded
will allow you to write at the full RAW encoding speed a single CPU supports.
Packit 45fded
This will create high potential of buffer underruns. Use with care.
Packit 45fded
.TP
Packit 45fded
.B CDR_FORCESPEED
Packit 45fded
If this environment variable is set, 
Packit 45fded
.B wodim
Packit 45fded
will allow you to write at the full DMA speed the system supports.
Packit 45fded
There is no DMA reserve for reading the data that is to be written from disk.
Packit 45fded
This will create high potential of buffer underruns. Use with care.
Packit 45fded
.TP
Packit 45fded
.B RSH
Packit 45fded
If the 
Packit 45fded
.B RSH
Packit 45fded
environment is present, the remote connection will not be created via
Packit 45fded
.BR rcmd (3)
Packit 45fded
but by calling the program pointed to by
Packit 45fded
.BR RSH .
Packit 45fded
Use e.g. 
Packit 45fded
.BR RSH= /usr/bin/ssh
Packit 45fded
to create a secure shell connection.
Packit 45fded
.sp
Packit 45fded
Note that this forces 
Packit 45fded
.B wodim
Packit 45fded
to create a pipe to the 
Packit 45fded
.B rsh(1)
Packit 45fded
program and disallows
Packit 45fded
.B wodim
Packit 45fded
to directly access the network socket to the remote server.
Packit 45fded
This makes it impossible to set up performance parameters and slows down
Packit 45fded
the connection compared to a 
Packit 45fded
.B root
Packit 45fded
initiated
Packit 45fded
.B rcmd(3)
Packit 45fded
connection.
Packit 45fded
.TP
Packit 45fded
.B RSCSI
Packit 45fded
If the 
Packit 45fded
.B RSCSI
Packit 45fded
environment is present, the remote SCSI server will not be the program
Packit 45fded
.B /opt/schily/sbin/rscsi
Packit 45fded
but the program pointed to by
Packit 45fded
.BR RSCSI .
Packit 45fded
Note that the remote SCSI server program name will be ignored if you log in
Packit 45fded
using an account that has been created with a remote SCSI server program as
Packit 45fded
login shell.
Packit 45fded
Packit 45fded
.SH FILES
Packit 45fded
.TP
Packit 45fded
/etc/wodim.conf
Packit 45fded
Default values can be set for the following options in /etc/wodim.conf.
Packit 45fded
For example:
Packit 45fded
.SM CDR_FIFOSIZE=8m
Packit 45fded
or
Packit 45fded
.SM CDR_SPEED=2
Packit 45fded
.RS
Packit 45fded
.TP
Packit 45fded
CDR_DEVICE
Packit 45fded
This may either hold a device identifier that is suitable to the open
Packit 45fded
call of the SCSI transport library or a label in the file /etc/wodim.conf 
Packit 45fded
that allows to identify a specific drive on the system.
Packit 45fded
.TP
Packit 45fded
CDR_SPEED
Packit 45fded
Sets the default speed value for writing (see also 
Packit 45fded
.B speed=
Packit 45fded
option).
Packit 45fded
.TP
Packit 45fded
CDR_FIFOSIZE
Packit 45fded
Sets the default size of the FIFO (see also 
Packit 45fded
.BR fs= #
Packit 45fded
option).
Packit 45fded
.TP
Packit 45fded
CDR_MAXFIFOSIZE
Packit 45fded
Sets the maximum size of the FIFO (see also 
Packit 45fded
.BR fs= #
Packit 45fded
option).
Packit 45fded
.TP
Packit 45fded
Any other keyword (label) is an identifier (symbolic name) for a specific drive
Packit 45fded
on the system.  Such an identifier may not contain the characters ',', '/', '@'
Packit 45fded
or ':'.
Packit 45fded
.sp
Packit 45fded
Each line that follows a label contains a whitespace separated list of items.
Packit 45fded
Currently, four items are recognized: the drive's target specification, the
Packit 45fded
default speed that should be used for this drive, the default FIFO size
Packit 45fded
that should be used for this drive and drive specific options. The values for 
Packit 45fded
.I speed
Packit 45fded
and
Packit 45fded
.I fifosize
Packit 45fded
may be set to -1 to tell wodim to use the global defaults.
Packit 45fded
.I target
Packit 45fded
can be -1 to use the auto-guessing of the drive (see above).
Packit 45fded
Packit 45fded
The value for driveropts may be omitted or set to "" if no driveropts are used.
Packit 45fded
A typical line may look this way:
Packit 45fded
.sp
Packit 45fded
plex760= 0,5,0	12	50m	varirec=1
Packit 45fded
.sp
Packit 45fded
pioneer= /dev/hdd	-1	-1
Packit 45fded
.sp
Packit 45fded
This tells
Packit 45fded
.B wodim
Packit 45fded
that a drive named
Packit 45fded
.I plex760
Packit 45fded
is at scsibus 0, target 5, lun 0 and should be used with speed 12 and
Packit 45fded
a FIFO size of 50 MB. It also uses some device specific parameter.
Packit 45fded
A second drive may is accessible via the device file /dev/hdd and uses the
Packit 45fded
default speed and the default FIFO size.
Packit 45fded
.RE
Packit 45fded
Packit 45fded
.SH SEE ALSO
Packit 45fded
.BR icedax (1),
Packit 45fded
.BR readom (1),
Packit 45fded
.BR genisoimage (1),
Packit 45fded
.BR ssh (1).
Packit 45fded
Packit 45fded
.SH NOTES
Packit 45fded
.PP
Packit 45fded
On Solaris you need to stop the volume management if you like to use the USCSI
Packit 45fded
fallback SCSI transport code. Even things like 
Packit 45fded
.B "wodim -scanbus
Packit 45fded
will not work if the volume management is running.
Packit 45fded
.PP
Packit 45fded
Disks made in 
Packit 45fded
.B "Track At Once 
Packit 45fded
mode are not suitable as a master for direct mass production by CD manufacturers.
Packit 45fded
You will need the 
Packit 45fded
.B "disk at once
Packit 45fded
option to record such disks.
Packit 45fded
Nevertheless the disks made in
Packit 45fded
.B "Track At Once 
Packit 45fded
will normally be read in all CD players. Some old
Packit 45fded
audio CD players however may produce a two second click between two audio tracks.
Packit 45fded
.PP
Packit 45fded
The minimal size of a track is 4 seconds or 300 sectors. If you write 
Packit 45fded
smaller tracks, the CD-Recorder will add dummy blocks. This is not an
Packit 45fded
error, even though the SCSI-error message looks this way.
Packit 45fded
.PP
Packit 45fded
The Yamaha CDR-400 and all new SCSI-3/mmc conforming drives are supported
Packit 45fded
in single and multi-session.
Packit 45fded
.PP
Packit 45fded
You should run several tests in all supported speeds of your drive with the
Packit 45fded
.B \-dummy
Packit 45fded
option turned on if you are using 
Packit 45fded
.B wodim
Packit 45fded
on an unknown system. Writing a CD is a real-time process. 
Packit 45fded
.B NFS, CIFS
Packit 45fded
and other network file systems
Packit 45fded
won't always deliver constantly the needed data rates.
Packit 45fded
If you want to use 
Packit 45fded
.B wodim 
Packit 45fded
with CD-images that are located on a
Packit 45fded
.B NFS
Packit 45fded
mounted filesystem, be sure that the FIFO size is big enough.
Packit 45fded
If you want to make sure that buffer underruns are not
Packit 45fded
caused by your source disk, you may use the command
Packit 45fded
.PP
Packit 45fded
.B "    wodim -dummy dev=2,0 padsize=600m /dev/null
Packit 45fded
.PP
Packit 45fded
to create a disk that is entirely made of dummy data.
Packit 45fded
.PP
Packit 45fded
There are also cases where you either need to be root or install
Packit 45fded
.B wodim 
Packit 45fded
executable with suid-root permissions. First, if you are using a device
Packit 45fded
manufactured before 1999 which requires a non-MMC driver, you should run
Packit 45fded
.B wodim
Packit 45fded
in dummy mode before writing data. If you find a problem doing this, please
Packit 45fded
report it to the
Packit 45fded
.B cdrkit
Packit 45fded
maintainers (see below).
Packit 45fded
.PP
Packit 45fded
Second, certain functionality may be unusable because of Linux's SCSI
Packit 45fded
command filtering. When using
Packit 45fded
.B wodim
Packit 45fded
for anything except of pure data writing, you should also test the process in
Packit 45fded
dummy mode and report trouble to the contact address below.
Packit 45fded
.PP
Packit 45fded
If you still want to run
Packit 45fded
.B wodim
Packit 45fded
with root permissions, you can set the permissions of the executable to
Packit 45fded
suid-root. See the additional notes of your system/program distribution or
Packit 45fded
README.suidroot which is part of the cdrkit source.
Packit 45fded
.PP
Packit 45fded
You should not connect old drives that do not support
Packit 45fded
disconnect/reconnect to either the SCSI bus that is connected to the
Packit 45fded
CD-Recorder or the source disk.
Packit 45fded
.PP
Packit 45fded
A Compact Disc can have no more than 99 tracks.
Packit 45fded
.PP
Packit 45fded
When creating a disc with both audio and data tracks, 
Packit 45fded
the data should be on track 1 otherwise you should create
Packit 45fded
a CDplus disk which is a multi session disk with the first session 
Packit 45fded
containing the audio tracks and the following session containing the data track.
Packit 45fded
.PP
Packit 45fded
Many operating systems are not able to read more than a single data track, or
Packit 45fded
need special software to do so.
Packit 45fded
.PP
Packit 45fded
If you have more information or SCSI command manuals for currently 
Packit 45fded
unsupported CD/DVD/BR/HD-DVD-Recorders, please contact the
Packit 45fded
.B cdrkit
Packit 45fded
maintainers (see below).
Packit 45fded
.PP
Packit 45fded
Many CD recorders have bugs and often require a firmware update to work
Packit 45fded
correctly. If you experience problems which cannot be solved or explained by the
Packit 45fded
notes above, please look for instructions on the homepage of the particular
Packit 45fded
manufacturer.
Packit 45fded
.PP
Packit 45fded
Some bugs will force you to power cycle the device or to reboot the machine.
Packit 45fded
.PP
Packit 45fded
The FIFO percent output is computed just after a block of data has been written
Packit 45fded
to the CD/DVD-Recorder. For this reason, there will never be 100% FIFO fill ratio
Packit 45fded
while the FIFO is in streaming mode.
Packit 45fded
Packit 45fded
.SH DIAGNOSTICS
Packit 45fded
.PP
Packit 45fded
You have 4 seconds to abort
Packit 45fded
.B wodim
Packit 45fded
start after you see the message:
Packit 45fded
.PP
Packit 45fded
Starting to write CD at speed %d in %s mode for %s session.
Packit 45fded
In most shells you can do that by pressing Ctrl-C.
Packit 45fded
.PP
Packit 45fded
A typical error message for a SCSI command looks like:
Packit 45fded
.sp
Packit 45fded
.RS
Packit 45fded
.nf
Packit 45fded
wodim: I/O error. test unit ready: scsi sendcmd: no error
Packit 45fded
CDB:  00 20 00 00 00 00
Packit 45fded
status: 0x2 (CHECK CONDITION)
Packit 45fded
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 25 00 00 00 00 00
Packit 45fded
Sense Key: 0x5 Illegal Request, Segment 0
Packit 45fded
Sense Code: 0x25 Qual 0x00 (logical unit not supported) Fru 0x0
Packit 45fded
Sense flags: Blk 0 (not valid)
Packit 45fded
cmd finished after 0.002s timeout 40s
Packit 45fded
.fi
Packit 45fded
.RE
Packit 45fded
.sp
Packit 45fded
The first line gives information about the transport of the command.
Packit 45fded
The text after the first colon gives the error text for the system call
Packit 45fded
from the view of the kernel. It usually is:
Packit 45fded
.B "I/O error
Packit 45fded
unless other problems happen. The next words contain a short description for
Packit 45fded
the SCSI command that fails. The rest of the line tells you if there were
Packit 45fded
any problems for the transport of the command over the SCSI bus.
Packit 45fded
.B "fatal error
Packit 45fded
means that it was not possible to transport the command (i.e. no device present
Packit 45fded
at the requested SCSI address).
Packit 45fded
.PP
Packit 45fded
The second line prints the SCSI command descriptor block for the failed command.
Packit 45fded
.PP
Packit 45fded
The third line gives information on the SCSI status code returned by the 
Packit 45fded
command, if the transport of the command succeeds. 
Packit 45fded
This is error information from the SCSI device.
Packit 45fded
.PP
Packit 45fded
The fourth line is a hex dump of the auto request sense information for the 
Packit 45fded
command.
Packit 45fded
.PP
Packit 45fded
The fifth line is the error text for the sense key if available, followed
Packit 45fded
by the segment number that is only valid if the command was a
Packit 45fded
.I copy
Packit 45fded
command. If the error message is not directly related to the current command,
Packit 45fded
the text
Packit 45fded
.I deferred error
Packit 45fded
is appended.
Packit 45fded
.PP
Packit 45fded
The sixth line is the error text for the sense code and the sense qualifier if available.
Packit 45fded
If the type of the device is known, the sense data is decoded from tables
Packit 45fded
in
Packit 45fded
.IR scsierrs.c " .
Packit 45fded
The text is followed by the error value for a field replaceable unit.
Packit 45fded
.PP
Packit 45fded
The seventh line prints the block number that is related to the failed command
Packit 45fded
and text for several error flags. The block number may not be valid.
Packit 45fded
.PP
Packit 45fded
The eight line reports the timeout set up for this command and the time
Packit 45fded
that the command really needed to complete.
Packit 45fded
.PP
Packit 45fded
The following message is not an error:
Packit 45fded
.sp
Packit 45fded
.RS
Packit 45fded
.nf
Packit 45fded
Track 01: Total bytes read/written: 2048/2048 (1 sectors).
Packit 45fded
wodim: I/O error. flush cache: scsi sendcmd: no error
Packit 45fded
CDB:  35 00 00 00 00 00 00 00 00 00
Packit 45fded
status: 0x2 (CHECK CONDITION)
Packit 45fded
Sense Bytes: F0 00 05 80 00 00 27 0A 00 00 00 00 B5 00 00 00 00 00
Packit 45fded
Sense Key: 0x5 Illegal Request, Segment 0
Packit 45fded
Sense Code: 0xB5 Qual 0x00 (dummy data blocks added) Fru 0x0
Packit 45fded
Sense flags: Blk -2147483609 (valid)
Packit 45fded
cmd finished after 0.002s timeout 40s
Packit 45fded
.fi
Packit 45fded
.RE
Packit 45fded
.sp
Packit 45fded
It simply notifies, that a track that is smaller than the minimum size has been
Packit 45fded
expanded to 300 sectors.
Packit 45fded
.SH BUGS
Packit 45fded
.PP
Packit 45fded
.B netscsid
Packit 45fded
does not work properly and is generally unmaintained. It is probably not
Packit 45fded
compatible with rscsi from 
Packit 45fded
.BR cdrtools
Packit 45fded
either. Good bugfixes are welcome, talk to Cdrkit maintainers.
Packit 45fded
.PP
Packit 45fded
.B cuefile support is very limited, only one file is allowed. For volunteers,
Packit 45fded
see TODO file in the source.
Packit 45fded
.PP
Packit 45fded
.B Specifying an audio file multiple times causes corruption of the second
Packit 45fded
track (effectively no data plus minimum padding).
Packit 45fded
.PP
Packit 45fded
Some of the bugs may be fixed in Joerg Schilling's cdrtools. See there for
Packit 45fded
details, URL attached below.
Packit 45fded
Packit 45fded
.SH CREDITS
Packit 45fded
.PP
Packit 45fded
.TP 15
Packit 45fded
Joerg Schilling (schilling@fokus.fhg.de)
Packit 45fded
.br
Packit 45fded
For writing cdrecord and libscg which represent the most parts of wodim's code.
Packit 45fded
.PP
Packit 45fded
.TP 15
Packit 45fded
Bill Swartz	(Bill_Swartz@twolf.com)
Packit 45fded
.br
Packit 45fded
For helping me with the TEAC driver support
Packit 45fded
.TP
Packit 45fded
Aaron Newsome	(aaron.d.newsome@wdc.com)
Packit 45fded
.br
Packit 45fded
For letting me develop Sony support on his drive
Packit 45fded
.TP
Packit 45fded
Eric Youngdale	(eric@andante.jic.com)
Packit 45fded
.br
Packit 45fded
For supplying mkisofs
Packit 45fded
.TP
Packit 45fded
Gadi Oxman	(gadio@netvision.net.il)
Packit 45fded
.br
Packit 45fded
For tips on the ATAPI standard
Packit 45fded
.TP
Packit 45fded
Finn Arne Gangstad	(finnag@guardian.no)
Packit 45fded
.br
Packit 45fded
For the first FIFO implementation.
Packit 45fded
.TP
Packit 45fded
Dave Platt	(dplatt@feghoot.ml.org)
Packit 45fded
.br
Packit 45fded
For creating the experimental packet writing support,
Packit 45fded
the first implementation of CD-RW blanking support,
Packit 45fded
the first .wav file decoder 
Packit 45fded
and many nice discussions on cdrecord.
Packit 45fded
.TP
Packit 45fded
Chris P. Ross (cross@eng.us.uu.net)
Packit 45fded
.br
Packit 45fded
For the first implementation of a BSDI SCSI transport.
Packit 45fded
.TP
Packit 45fded
Grant R. Guenther   (grant@torque.net)
Packit 45fded
.br
Packit 45fded
For creating the first parallel port transport implementation
Packit 45fded
for Linux.
Packit 45fded
.TP
Packit 45fded
Kenneth D. Merry (ken@kdm.org)
Packit 45fded
.br
Packit 45fded
for providing the CAM port for FreeBSD together with Michael Smith (msmith@freebsd.org)
Packit 45fded
.TP
Packit 45fded
Heiko Ei\*sfeldt (heiko@hexco.de)
Packit 45fded
for making libedc_ecc available (needed to write RAW data sectors).
Packit 45fded
Packit 45fded
.SH "MAILING LISTS
Packit 45fded
If you want to actively take part on the development of wodim,
Packit 45fded
you may join the developer mailing list via this URL:
Packit 45fded
.sp
Packit 45fded
.B
Packit 45fded
https://alioth.debian.org/mail/?group_id=31006
Packit 45fded
.PP
Packit 45fded
The mail address of the list is:
Packit 45fded
.B
Packit 45fded
debburn-devel@lists.alioth.debian.org
Packit 45fded
Packit 45fded
.SH AUTHORS
Packit 45fded
.B wodim
Packit 45fded
is currently maintained as part of the cdrkit project by its developers. Most of the code and this manual page was originally written by:
Packit 45fded
.PP
Packit 45fded
.nf
Packit 45fded
Joerg Schilling
Packit 45fded
Seestr. 110
Packit 45fded
D-13353 Berlin
Packit 45fded
Germany
Packit 45fded
.fi
Packit 45fded
.PP
Packit 45fded
This application is derived from "cdrecord" as included
Packit 45fded
in the cdrtools package [1] created by Joerg
Packit 45fded
Schilling, who deserves most of the credit for its success. However, he is not
Packit 45fded
involved into the development of this spinoff and therefore he shall not be
Packit 45fded
held responsible for any problems caused by it. Do not refer to this application
Packit 45fded
as "cdrecord", do not try to get support for wodim by contacting the original
Packit 45fded
authors.
Packit 45fded
.PP
Packit 45fded
Additional information can be found on:
Packit 45fded
.br
Packit 45fded
https://alioth.debian.org/projects/debburn/
Packit 45fded
.PP
Packit 45fded
If you have support questions, send them to
Packit 45fded
.PP
Packit 45fded
.B
Packit 45fded
debburn-devel@lists.alioth.debian.org
Packit 45fded
.br
Packit 45fded
.PP
Packit 45fded
If you have definitely found a bug, send a mail to this list or to
Packit 45fded
.PP
Packit 45fded
.B
Packit 45fded
submit@bugs.debian.org
Packit 45fded
.br
Packit 45fded
.PP
Packit 45fded
writing at least a short description into the Subject and "Package: cdrkit" in the first line of the mail body.
Packit 45fded
.SH SOURCES
Packit 45fded
.PP
Packit 45fded
.br
Packit 45fded
[1] Cdrtools 2.01.01a08 from May 2006, http://cdrecord.berlios.de
Packit 45fded