]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - usr.sbin/burncd/burncd.8
MFC r308437 and r308461:
[FreeBSD/stable/8.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 October 9, 2011
31 .Dt BURNCD 8
32 .Os
33 .Sh NAME
34 .Nm burncd
35 .Nd control the ATAPI CD-R/RW driver
36 .Pp
37 This utility was
38 .Em deprecated
39 in
40 .Fx 9.0 .
41 See
42 .Sx NOTES .
43 .Sh SYNOPSIS
44 .Nm
45 .Op Fl deFlmnpqtv
46 .Op Fl f Ar device
47 .Op Fl s Ar speed
48 .Op Ar command
49 .Op Ar command Ar
50 .Sh DESCRIPTION
51 The
52 .Nm
53 utility is used to burn CD-R/RW media using the ATAPI cd driver.
54 .Pp
55 Available options and operands:
56 .Pp
57 .Bl -tag -width XXXXXXXXXXXX
58 .It Fl d
59 burn the CD-R/RW in DAO (disk at once) mode.
60 .It Fl e
61 eject the medium when done.
62 .It Fl f Ar device
63 set the device to use for the burning process.
64 .It Fl F
65 force operation regardless of warnings.
66 .It Fl l
67 read a list of image files from filename.
68 .It Fl m
69 close disk in multisession mode (otherwise disk is closed as singlesession).
70 .It Fl n
71 do not write gaps between data tracks in DAO mode.
72 .It Fl p
73 use preemphasis on audio tracks.
74 .It Fl q
75 quiet, do not print progress messages.
76 .It Fl s Ar speed
77 set the speed of the burner device.
78 Defaults to 4.
79 Specify
80 .Dq Li max
81 to use the drive's fastest speed.
82 .It Fl t
83 test write, do not actually write on the media.
84 .It Fl v
85 verbose, print extra progress messages.
86 .El
87 .Pp
88 .Ar command
89 may be one of:
90 .Pp
91 .Bl -tag -width XXXXXXXXXXXX
92 .It Cm msinfo
93 Show the first LBA of the last track on the media
94 and the next writeable address on the media for use with the
95 .Xr mkisofs 8 Ns 's Pq Pa ports/sysutils/cdrtools
96 .Fl C
97 switch when adding additional data to ISO file systems with extra sessions.
98 .It Cm blank
99 Blank a CD-RW medium.
100 This uses the fast blanking method, so data are not physically overwritten,
101 only those areas that make the media appear blank for further usage are erased.
102 .It Cm eject
103 Eject the medium when done.
104 This is equivalent to the
105 .Fl e
106 option.
107 .It Cm erase
108 Erase a CD-RW medium.
109 This erases the entire media.
110 Can take up to 1 hour to finish.
111 .It Cm format Brq Cm dvd+rw | dvd-rw
112 Formats a DVD+RW or DVD-RW media to the default max size and 2048 byte blocks.
113 This operation can take a long time to finish.
114 Progress reporting is done during the process.
115 .It Cm fixate
116 Fixate the medium so that the TOC is generated and the media can be used
117 in an ordinary CD drive.
118 The driver defaults to creating singlesession media (see
119 .Fl m
120 option).
121 Ignored in DAO mode (see
122 .Fl d
123 option).
124 .It Cm raw | audio
125 Set the write mode to produce audio (raw mode) tracks for the following
126 images on the command line.
127 .It Cm data | mode1
128 Set the write mode to produce data (mode1) tracks for the following
129 image files
130 on the command line.
131 .It Cm mode2
132 Set the write mode to produce data (mode2) tracks for the following
133 image files
134 on the command line.
135 .It Cm XAmode1
136 Set the write mode to produce data (XAmode1) tracks for the following image
137 files on the command line.
138 .It Cm XAmode2
139 Set the write mode to produce data (XAmode2) tracks for the following image
140 files on the command line.
141 .It Cm vcd
142 Set the write mode to produce VCD/SVCD tracks for the following image files
143 on the command line.
144 This automatically sets DAO
145 .Pq Fl d
146 and
147 .Dq "no gaps"
148 .Pq Fl n
149 modes.
150 .It Cm dvdrw
151 Set the write mode to write a DVD+RW from the following image.
152 DVDs only have one track.
153 .It Ar file
154 All other arguments are treated as filenames of images to write to the media,
155 or in case the
156 .Fl l
157 option is used as files containing lists of images.
158 .El
159 .Pp
160 Files whose length are not a multiple of the current media blocksize are
161 quietly zero padded to fit the blocksize requirement.
162 The conventional filename
163 .Fl
164 refers to stdin, and can only be used once.
165 .Sh ENVIRONMENT
166 The following environment variables affect the execution of
167 .Nm :
168 .Bl -tag -width ".Ev BURNCD_SPEED"
169 .It Ev BURNCD_SPEED
170 The write speed to use if one is not specified with the
171 .Fl s
172 flag.
173 .It Ev CDROM
174 The CD device to use if one is not specified with the
175 .Fl f
176 flag.
177 .El
178 .Sh FILES
179 .Bl -tag -width ".Pa /dev/acd0"
180 .It Pa /dev/acd0
181 The default device, if not overridden by the
182 .Ev CDROM
183 environment variable or the
184 .Fl f
185 option.
186 .El
187 .Sh EXAMPLES
188 The typical usage for burning a data CD-R:
189 .Pp
190 .Dl "burncd -f /dev/acd0 data file1 fixate"
191 .Pp
192 The typical usage for burning an audio CD-R:
193 .Pp
194 .Dl "burncd -f /dev/acd0 audio file1 file2 file3 fixate"
195 .Pp
196 The typical usage for burning an audio CD-R in DAO mode:
197 .Pp
198 .Dl "burncd -f /dev/acd0 -d audio file1 file2 file3"
199 .Pp
200 The typical usage for burning a mixed mode CD-R:
201 .Pp
202 .Dl "burncd -f /dev/acd0 data file1 audio file2 file3 fixate"
203 .Pp
204 The typical usage for burning from a compressed image file on stdin:
205 .Pp
206 .Dl "gunzip -c file.iso.gz | burncd -f /dev/acd0 data - fixate"
207 .Pp
208 In the examples above, the files burned to data CD-Rs are assumed to
209 be ISO9660 file systems.
210 .Xr mkisofs 8 ,
211 available in the
212 .Fx
213 Ports Collection,
214 as part of the
215 .Pa sysutils/cdrtools
216 port, is commonly used to create ISO9660 file system images
217 from a given directory tree.
218 .Sh HISTORY
219 The
220 .Nm
221 utility appeared in
222 .Fx 4.0 .
223 .Pp
224 .Nm
225 was deprecated in
226 .Fx 9.0 .
227 .Sh AUTHORS
228 The
229 .Nm
230 utility and this manpage was contributed by
231 .An S\(/oren Schmidt ,
232 Denmark
233 .Aq sos@FreeBSD.org .
234 .Sh BUGS
235 Probably, please report when found.
236 .Sh NOTES
237 When
238 .Bd -ragged -offset indent
239 .Cd "options ATA_CAM"
240 .Ed
241 .Pp
242 is compiled into the kernel, then
243 .Xr cdrecord 1 ,
244 available in the
245 .Fx
246 Ports Collection as part of the
247 .Pa sysutils/cdrtools
248 port, must be used instead.
249 Refer to:
250 .Pp
251 http://www.freebsd.org/doc/handbook/creating-cds.html#CDRECORD