]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - usr.sbin/burncd/burncd.8
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
[FreeBSD/stable/9.git] / usr.sbin / burncd / burncd.8
1 .\"
2 .\" Copyright (c) 2000,2001,2002 Søren Schmidt <sos@FreeBSD.org>
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer,
10 .\"    without modification, immediately at the beginning of the file.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\" 3. The name of the author may not be used to endorse or promote products
15 .\"    derived from this software without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 .\"
28 .\" $FreeBSD$
29 .\"
30 .Dd December 21, 2009
31 .Dt BURNCD 8
32 .Os
33 .Sh NAME
34 .Nm burncd
35 .Nd control the ATAPI CD-R/RW driver
36 .Sh SYNOPSIS
37 .Nm
38 .Op Fl deFlmnpqtv
39 .Op Fl f Ar device
40 .Op Fl s Ar speed
41 .Op Ar command
42 .Op Ar command Ar
43 .Sh DESCRIPTION
44 The
45 .Nm
46 utility is used to burn CD-R/RW media using the ATAPI cd driver.
47 .Pp
48 Available options and operands:
49 .Bl -tag -width XXXXXXXXXXXX
50 .It Fl d
51 burn the CD-R/RW in DAO (disk at once) mode.
52 .It Fl e
53 eject the medium when done.
54 .It Fl f Ar device
55 set the device to use for the burning process.
56 .It Fl F
57 force operation regardless of warnings.
58 .It Fl l
59 read a list of image files from filename.
60 .It Fl m
61 close disk in multisession mode (otherwise disk is closed as singlesession).
62 .It Fl n
63 do not write gaps between data tracks in DAO mode.
64 .It Fl p
65 use preemphasis on audio tracks.
66 .It Fl q
67 quiet, do not print progress messages.
68 .It Fl s Ar speed
69 set the speed of the burner device.
70 Defaults to 4.
71 Specify
72 .Dq Li max
73 to use the drive's fastest speed.
74 .It Fl t
75 test write, do not actually write on the media.
76 .It Fl v
77 verbose, print extra progress messages.
78 .El
79 .Pp
80 .Ar command
81 may be one of:
82 .Bl -tag -width XXXXXXXXXXXX
83 .It Cm msinfo
84 Show the first LBA of the last track on the media
85 and the next writeable address on the media for use with the
86 .Xr mkisofs 8 Ns 's Pq Pa ports/sysutils/cdrtools
87 .Fl C
88 switch when adding additional data to ISO file systems with extra sessions.
89 .It Cm blank
90 Blank a CD-RW medium.
91 This uses the fast blanking method, so data are not physically overwritten,
92 only those areas that make the media appear blank for further usage are erased.
93 .It Cm eject
94 Eject the medium when done.
95 This is equivalent to the
96 .Fl e
97 option.
98 .It Cm erase
99 Erase a CD-RW medium.
100 This erases the entire media.
101 Can take up to 1 hour to finish.
102 .It Cm format Brq Cm dvd+rw | dvd-rw
103 Formats a DVD+RW or DVD-RW media to the default max size and 2048 byte blocks.
104 This operation can take a long time to finish.
105 Progress reporting is done during the process.
106 .It Cm fixate
107 Fixate the medium so that the TOC is generated and the media can be used
108 in an ordinary CD drive.
109 The driver defaults to creating singlesession media (see
110 .Fl m
111 option).
112 Ignored in DAO mode (see
113 .Fl d
114 option).
115 .It Cm raw | audio
116 Set the write mode to produce audio (raw mode) tracks for the following
117 images on the command line.
118 .It Cm data | mode1
119 Set the write mode to produce data (mode1) tracks for the following
120 image files
121 on the command line.
122 .It Cm mode2
123 Set the write mode to produce data (mode2) tracks for the following
124 image files
125 on the command line.
126 .It Cm XAmode1
127 Set the write mode to produce data (XAmode1) tracks for the following image
128 files on the command line.
129 .It Cm XAmode2
130 Set the write mode to produce data (XAmode2) tracks for the following image
131 files on the command line.
132 .It Cm vcd
133 Set the write mode to produce VCD/SVCD tracks for the following image files
134 on the command line.
135 This automatically sets DAO
136 .Pq Fl d
137 and
138 .Dq "no gaps"
139 .Pq Fl n
140 modes.
141 .It Cm dvdrw
142 Set the write mode to write a DVD+RW from the following image.
143 DVDs only have one track.
144 .It Ar file
145 All other arguments are treated as filenames of images to write to the media,
146 or in case the
147 .Fl l
148 option is used as files containing lists of images.
149 .El
150 .Pp
151 Files whose length are not a multiple of the current media blocksize are
152 quietly zero padded to fit the blocksize requirement.
153 The conventional filename
154 .Fl
155 refers to stdin, and can only be used once.
156 .Sh ENVIRONMENT
157 The following environment variables affect the execution of
158 .Nm :
159 .Bl -tag -width ".Ev BURNCD_SPEED"
160 .It Ev BURNCD_SPEED
161 The write speed to use if one is not specified with the
162 .Fl s
163 flag.
164 .It Ev CDROM
165 The CD device to use if one is not specified with the
166 .Fl f
167 flag.
168 .El
169 .Sh FILES
170 .Bl -tag -width ".Pa /dev/acd0"
171 .It Pa /dev/acd0
172 The default device, if not overridden by the
173 .Ev CDROM
174 environment variable or the
175 .Fl f
176 option.
177 .El
178 .Sh EXAMPLES
179 The typical usage for burning a data CD-R:
180 .Pp
181 .Dl "burncd -f /dev/acd0 data file1 fixate"
182 .Pp
183 The typical usage for burning an audio CD-R:
184 .Pp
185 .Dl "burncd -f /dev/acd0 audio file1 file2 file3 fixate"
186 .Pp
187 The typical usage for burning an audio CD-R in DAO mode:
188 .Pp
189 .Dl "burncd -f /dev/acd0 -d audio file1 file2 file3"
190 .Pp
191 The typical usage for burning a mixed mode CD-R:
192 .Pp
193 .Dl "burncd -f /dev/acd0 data file1 audio file2 file3 fixate"
194 .Pp
195 The typical usage for burning from a compressed image file on stdin:
196 .Pp
197 .Dl "gunzip -c file.iso.gz | burncd -f /dev/acd0 data - fixate"
198 .Pp
199 In the examples above, the files burned to data CD-Rs are assumed to
200 be ISO9660 file systems.
201 .Xr mkisofs 8 ,
202 available in the
203 .Fx
204 Ports Collection,
205 as part of the
206 .Pa sysutils/cdrtools
207 port, is commonly used to create ISO9660 file system images
208 from a given directory tree.
209 .Sh HISTORY
210 The
211 .Nm
212 utility appeared in
213 .Fx 4.0 .
214 .Sh AUTHORS
215 The
216 .Nm
217 utility and this manpage was contributed by
218 .An S\(/oren Schmidt ,
219 Denmark
220 .Aq sos@FreeBSD.org .
221 .Sh BUGS
222 Probably, please report when found.