3 cdfs, cddb \- optical disc (CD, DVD, BD) track reader and writer file system
14 .B "grep aux/cddb /mnt/cd/ctl | rc
33 serves a one and a half level directory
38 that provides access to the tracks
39 on discs placed in the disc reader or writer
46 Any MMC-compliant compact disc (CD), DVD,
47 or Blu-ray disc (BD) drive should work.
48 On DVDs and BDs, access to data tracks only is implemented.
50 The top level directory contains one file
66 If the device can write discs
67 and contains a writable disc, the top-level
68 directory also contains an empty directory
73 Files created in these directories
74 appear in the top-level directory
75 as new data or audio tracks, respectively, regardless of name.
77 At any time, any number of tracks
78 may be open for reading or a single track
79 may be open for writing.
80 Writing a disc track is a quasi-real-time operation:
81 the disc writer should be kept saturated with
82 new data to avoid buffer underruns,
83 but modern drives will be told to cope with underruns transparently.
84 To ensure saturation, copying from a file system
85 stored on local disk or memory is recommended.
87 To fixate a disc (close a recordable disc by writing
88 its permanent table of contents), simply
94 The directory removed selects whether
95 the disc is fixated as an audio or data disc;
96 since each track carries its own type information,
97 very few readers care which fixation type was used.
98 Rewritable discs do not require fixation.
100 The top level directory
103 file, into which control messages
105 The current control messages are:
109 Format the rewritable disc (\c
117 Blank the entire rewritable disc in the drive.
120 Blank only the table of contents on the rewritable
124 .\" Close any open tracks on the current disc but do not finalize (fixate) the disc.
127 Eject the disc in the drive.
130 Ingest a disc into the drive.
133 Set the reading and writing speed to use,
134 in units of 1,000-bytes-per-second.
137 requests the optimal speed for the current drive and disc.
147 Drives may round down the speed to one they support.
148 To set reading and writing speeds separately,
149 prefix the speeds with
163 Note that most drives reset the reading and writing speed
164 each time a new disc is inserted.
169 file yields information about the drive.
170 If the drive contains an audio CD, the first line
173 command that can be run to query
174 an internet CD database
175 to get a table of contents.
176 Subsequent lines contain the current and maximum
177 reading and writing speeds.
178 Additional lines may further describe the current disc.
181 takes 5 optional arguments.
188 for the query instead of
192 option causes the raw database response from the server to be dumped
196 option causes the time of each track to be appended to the normal output.
200 but prints a final line with the total time.
203 option will print rc commands using
204 .IR audio/flacenc (1)
205 to encode and tag audio tracks from the disc to output directory
208 Backup to a BD-R disc:
215 tar cf /mnt/cd/wd/x /n/boot
220 Copy the audio tracks from a CD:
225 cp /mnt/cd/a* /tmp/songs
228 Copy the tracks onto a blank CD inserted in the drive,
229 and then fixate the disk as an audio CD.
232 cp /tmp/songs/* /mnt/cd/wa
244 .TF "\fLhttp://www.t10.org\fP"
246 .B http://www.t10.org
247 optical disc interface standards
250 Fixating a BD-R disc records only the first track in the disc's TOC.
251 Any other tracks are still there and their data accessible via
253 There's no need to fixate data discs, except to prevent adding new tracks.
255 Closing a just-written DVD-R track can take minutes
256 while the drive burns the unused part of the track reservation
257 (for the whole disc).
258 Thus only a single DVD-R track can be written on a DVD-R disc;
259 use other media if you need more than one track per disc.
261 There are too many combinations of optical media, each with unique quirks,
263 the cross-product of these tuples:
265 (single-layer dual-layer),
268 Only MMC-compliant disc readers and writers
269 are supported, but it would be easy to add
270 support for early CD writers if desired.