summaryrefslogtreecommitdiffstats
path: root/upstream/archlinux/man1/cdrecord.1
blob: b3c94afd932823f2a1484e66e0a850f1f8009daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
.\" @(#)cdrecord.1	1.154 17/09/21 Copyright 1996-2017 J. Schilling
.\"
.\" The contents of this file are subject to the terms of the
.\" Common Development and Distribution License, Version 1.0 only
.\" (the "License").  You may not use this file except in compliance
.\" with the License.
.\"
.\" See the file CDDL.Schily.txt in this distribution for details.
.\" A copy of the CDDL is also available via the Internet at
.\" http://www.opensource.org/licenses/cddl1.txt
.\"
.\" When distributing Covered Code, include this CDDL HEADER in each
.\" file and include the License file CDDL.Schily.txt from this distribution.
.\"
.if t .ds a \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'a
.if t .ds o \v'-0.55m'\h'0.00n'\z.\h'0.45n'\z.\v'0.55m'\h'-0.45n'o
.if t .ds u \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'u
.if t .ds A \v'-0.77m'\h'0.25n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.70n'A
.if t .ds O \v'-0.77m'\h'0.25n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.70n'O
.if t .ds U \v'-0.77m'\h'0.30n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.75n'U
.if t .ds s \\(*b
.if t .ds S SS
.if n .ds a ae
.if n .ds o oe
.if n .ds u ue
.if n .ds s sz
.if t .ds m \\(*m
.if n .ds m micro
.TH CDRECORD 1 "Version 3.02 2017/09/21" "J\*org Schilling" "Schily\'s USER COMMANDS"
.SH NAME
cdrecord \- record audio or data CD, DVD or BluRay
.SH SYNOPSIS
.B cdrecord
[
.I "general options
][
.BI dev= device
][
.I track options
]
.IR track1 .\|.\|. trackn

.SH DESCRIPTION
.B Cdrecord
is used to record data or audio Compact Discs on an Orange Book
CD-recorder, to write DVD media on a DVD-recorder or to write
BluRay media on a BluRay-recorder.
.PP
.SS "Device naming"
Most users do not need to care about device naming at all.
If no
.B dev=
option was specified, 
.B cdrecord
implements 
.B auto target
support and automagically finds the drive in case that exactly
one CD-ROM type drive is available in the system.
In case that more than one CD-ROM type drive exists on the system,
a list of possible device name parameters may be retrieved with
.B "cdrecord \-scanbus
or from the target example from the output of
.BR "cdrecord dev=help" ,
then the
.B dev=
parameter may be set based on the device listing.
.PP
The
.I device
parameter to the
.B dev=
option
explained below refers to the
.B SCSI\ CAM
standard notation for
.IR scsibus / target / lun
of the CD/DVD/BluRay-recorder.
If a file /etc/default/cdrecord exists, the parameter to the
.B dev=
option may also be a drive name label in said file (see FILES section).

.ne 6
.SS "Constraints for running cdrecord"
.PP
On 
.B SVr4 
compliant systems, 
.B cdrecord 
uses the real-time class to get the highest scheduling priority that is
possible (higher than all kernel processes).
On systems with 
.B POSIX real-time scheduling
cdrecord uses real-time scheduling too, 
but may not be able to gain a priority that is higher than all kernel processes.
.PP
In order to be able to use the SCSI transport subsystem of the OS, run at highest
priority and lock itself into core
.B
cdrecord
either needs to be run as root, needs to be installed suid root or
must be called via a
fine grained privileges mechanism, such as the Solaris
.BR privileges (5)
mechanism via
.BR exec_attr (4)
or the Linux
.BR capabilities (7)
mechanism via
.BR setcap (8)
to allow cdrecord to be used as an ordinary user.

.ne 6
.SS "File to track mapping"
.PP
In 
.I Track At Once 
mode, each
.I track
corresponds to a single file that contains the prepared data for that track.
If the argument is 
.RB ` \- ',
standard input is used for that track. 
Only one track may be taken from 
.IR stdin .
In the other write modes, the direct file to track relation may not be implemented.
In 
.B \-clone
mode, a single file contains all data for the whole disk.
To allow DVD writing on platforms that do not implement large file support,
.B cdrecord
concatenates all file arguments to a single track when writing to DVD media.

.SH "GENERAL OPTIONS
.PP
General options must be before any track file name or track option.
.SS "Informative options"
.TP
.B \-help
display version information for
.B cdrecord
on standard output.
.TP
.B \-version
Print version information and exit.
.TP
.B \-v
Increment the level of general verbosity by one.
This is used e.g. to display the progress of the writing process.
.SS "Media write mode options"
.TP
.B \-dummy
The
.B \-dummy
option modifies the current write strategy.
The CD/DVD/BluRay-recorder will go through all steps of the recording process,
but the laser is turned off during this procedure.
It is recommended to run several tests before actually writing to a 
Compact Disk or Digital Versatile Disk,
if the timing and load response of the current system is not yet known.
.sp
The
.B \-dummy
option does not work with all media and write modes.
DVD+ media and BluRay media does not support
.B dummy
writes and most CD-recorders do not support
.B dummy
writes in raw mode.
.TP
.B \-multi
Allow multi-session CDs or multi-border DVDs to be made. 
This flag needs to be present
on all sessions of a multi-session or multi-border disk,
except you want to create a session on a CD that will be 
the last session on the CD-media.
.sp
For CD-media,
the fixation will be done in a way that allows the CD/DVD/BluRay-recorder to
append additional sessions later. This is done by generating a TOC
with a link to the next program area. The so generated media is not
100% compatible to manufactured CDs (except for CDplus). 
Use only for recording of multi-session CDs.
If this option is present, the default track type is
.BR "CD-ROM XA mode 2 form 1"
and the sector size is 2048 bytes. 
The XA sector subheaders will be created by the drive. 
The 
.I Sony 
drives have no hardware support for 
.BR "CD-ROM XA mode 2 form 1" .
You have to specify the 
.B \-data 
option in order to create multi-session disks on these drives.
If you like to record a multi-session disk in SAO mode,
you need to force 
.B CD-ROM
sectors by including the
.B \-data
option.
Not all drives allow multi-session CDs in SAO mode.
.sp
For DVD media,
.B \-multi
switches the write mode to 
.BR "incremental packet recording" .
There is currently no way to prevent the ability to append further
sessions and there is currently only support for DVD-R/DVD-RW media.
To reuse a DVD-RW that has previously been written in
.B "incremental packet recording"
mode for different write modes, you need to blank the entire media before.
.TP
.B \-dao
.TP
.B \-sao
Set 
.B "SAO (Session At Once)
mode which is usually called
.BR "Disk At Once " mode.
This currently only works with MMC drives that support
.B "Session At Once
mode.
Note that cdrecord needs to know the size of each track in advance for this mode
(see the
.B "mkisofs \-print\-size"
option and the 
.I EXAMPLES
section for more information).
.sp
There are several CD writers with bad firmware
that result in broken disks when writing in TAO or SAO mode.
If you find any problems with the layout of a disk or with subchannel 
content (e.g. wrong times on the display when playing the CD) and your drive
supports to write in 
.B \-raw96r
or
.B \-raw16
mode, you should give it a try.
.TP
.B \-tao
Set
.B "TAO (Track At Once) writing mode.
This is the default write mode in previous
.B cdrecord
versions.
With most drives, this write mode is required for multi-session recording.
.sp
There are several CD writers with bad firmware
that result in broken disks when writing in TAO or SAO mode.
If you find any problems with the layout of a disk or with subchannel 
content (e.g. wrong times on the display when playing the CD) and your drive
supports to write in 
.B \-raw96r
or
.B \-raw16
mode, you should give it a try.
.TP
.B \-raw
Set
.B "RAW writing mode.
Using this option defaults to 
.BR \-raw96r .
Note that cdrecord needs to know the size of each track in advance for this mode
(see the
.B "mkisofs \-print\-size"
option and the 
.I EXAMPLES
section for more information).
.TP
.B \-raw96r
Set
.B "RAW writing mode
with 2352 byte sectors plus 96 bytes of raw P-W sub-channel data resulting
in a sector size of 2448 bytes.
This is the preferred raw writing mode as it gives best control over the
CD-writing process.
Writing data disks in raw mode needs significantly more CPU time than other
write modes. If your CPU is too slow, this may result in buffer underruns.
Note that cdrecord needs to know the size of each track in advance for this mode
(see the
.B "mkisofs \-print\-size"
option and the 
.I EXAMPLES
section for more information).
.TP
.B \-raw96p
Set
.B "RAW writing mode
with 2352 byte sectors plus 96 bytes of packed P-W sub-channel data resulting
in a sector size of 2448 bytes.
This is the less preferred raw writing mode as only a few recorders support
it and some of these recorders have bugs in the firmware implementation.
Don't use this mode if your recorder supports
.B \-raw96r
or
.BR \-raw16 .
Writing data disks in raw mode needs significantly more CPU time than other
write modes. If your CPU is too slow, this may result in buffer underruns.
Note that cdrecord needs to know the size of each track in advance for this mode
(see the
.B "mkisofs \-print\-size"
option and the 
.I EXAMPLES
section for more information).
.TP
.B \-raw16
Set
.B "RAW writing mode
with 2352 byte sectors plus 16 bytes of P-Q sub-channel data resulting
in a sector size of 2368 bytes.
If a recorder does not support 
.BR \-raw96r ,
this is the preferred raw writing mode.
It does not allow to write
.I CD-Text
or
.I CD+Graphics
but it is the only raw writing mode in cheap CD-writers,
as these cheap writers in most cases do not support
.B \-dao
mode.
Don't use this mode if your recorder supports
.BR \-raw96r .
Writing data disks in raw mode needs significantly more CPU time than other
write modes. If your CPU is too slow, this may result in buffer underruns.
Note that cdrecord needs to know the size of each track in advance for this mode
(see the
.B "mkisofs \-print-size"
option and the 
.I EXAMPLES
section for more information).
.SS "Cdrecord functional options"
.TP
.B \-abort
Try to send an 
.B abort
sequence to the drive.
If you use 
.B cdrecord
only, this should never be needed; but other software may leave a drive 
in an unusable condition.
Calling
.B "cdrecord \-reset
may be needed if a previous write has been interrupted and the software did 
not tell the drive that it will not continue to write.
.TP
.B \-atip
Retrieve and print out the ATIP (Absolute Time In Pre-groove) info of a CD/DVD/BluRay
recordable or CD/DVD/BluRay re-writable media.
With this option, 
.B cdrecord
will try to retrieve the ATIP info. If the actual drive does not support
to read the ATIP info, it may be that only a reduced set of information
records or even nothing is displayed. Only a limited number of MMC-compliant
drives support to read the ATIP info.
.sp
If 
.B cdrecord
is able to retrieve the lead-in start time for the first session, it will try to
decode and print the manufacturer info from the media.
DVD media does not have ATIP information but there is equivalent prerecorded
information that is read out and printed.
.TP
.BI blank= type
Blank a CD-RW and exit or blank a CD-RW before writing. The blanking type may be one of:
.RS
.TP 12
help
Display a list of possible blanking types.
.TP
all
Blank the entire disk. This may take a long time.
.TP
fast
Minimally blank the disk. This results in erasing the PMA, the TOC and the pregap.
.TP
track
Blank the last track.
.TP
unreserve
Unreserve a reserved track.
.TP
trtail
Blank the tail of a track.
.TP
unclose
Unclose last session.
.TP
session
Blank the last session.
.PP
Not all drives support all blanking types. It may be necessary to use
.B "blank=all
if a drive reports a specified command as being invalid.
If used together with the 
.B \-force
flag, this option may be used to blank CD-RW disks that otherwise cannot be
blanked. Note that you may need to specify
.BI blank= all
because some drives will not continue with certain types of bad CD-RW
disks. Note also that
.B cdrecord
does its best if the 
.B \-force 
flag is used but it finally depends on the drive's firmware 
whether the blanking operation will succeed or not.
.RE
.TP
.B \-checkdrive
Checks if a driver for the current drive is present and exit.
If the drive is a known drive, 
.B cdrecord
uses exit code 0.
.TP
.B \-clone
Tells 
.B cdrecord
to handle images created by
.IR "readcd \-clone" .
The
.B \-clone
write mode may only be used in conjunction with the
.B \-raw96r
or
.B \-raw16
option.
Using
.B \-clone
together with
.B \-raw96r
is preferred as it allows to write all sub-channel data.
The
.B \-raw16
option should only be used with drives that do not support to write in
.B \-raw96r
mode.
.sp
Note that copying in
.B clone
mode disables certain levels of error correction and thus always results 
in a quality degradation. 
Avoid copying audio CDs in
.B clone
mode for this reason.
.TP
.BI cuefile= filename
Take all recording-related information from a CDRWIN-compliant
.B "CUE sheet
file.
No track-file arguments to 
.B cdrecord
are allowed when this option is present and one of the following options:
.BR \-dao ,
.BR \-sao ,
.BR \-raw ,
.BR \-raw16 ,
.B \-raw96r
is needed in addition.
.TP
.BR defpregap= #
Set the default pre-gap size for all tracks except track number 1.
This option currently only makes sense with the following drives:
.sp
.BR "Teac CD-R50S" , 
.BR "Teac CD-R55S" ,
.BR "JVC XR-W2010" ,
.B Pinnacle RCD-5020
.sp
when
creating track-at-once disks without the 2-second silence before each track.
.br
This option may go away in the future. 
.TP
.BI driver= name
Allows the user to manually select a driver for the device.
The reason for the existence of the
.BI driver= name
option is to allow users to use
.B cdrecord
with drives that are similar to supported drives but not known
directly by
.BR cdrecord .
All drives made after 1997 should be MMC-standard-compliant and
thus supported by one of the MMC drivers.
It is most unlikely that
.B cdrecord
is unable to find the right driver automatically.
Use this option with extreme care. If a wrong driver is used for a
device, the possibility of creating corrupted disks is high.
The minimum problem related to a wrong driver is that the 
.B \-speed
or 
.B \-dummy
will not work.
.br
.RS
.ne 8
.PP
The following driver names are supported:
.TP
.B help
To get a list of possible drivers together with a short description.
.TP
.B mmc_bd
The generic SCSI-3/mmc BluRay driver is auto-selected whenever
.B cdrecord
finds an MMC-compliant drive that does support to write BluRay media or a
multi system that contains a BluRay disk as the current medium.
This driver tries to close the tray, checks the medium found in the tray and then 
branches to the driver that matches the current medium.
.TP
.B mmc_bdr
The generic SCSI-3/mmc BluRay driver is auto-selected whenever
.B cdrecord
finds an MMC-compliant drive that does support to write BluRay BD-R media or a
multi system that contains a BluRay BD-R disk as the current medium.
.TP
.B mmc_bdre
The generic SCSI-3/mmc BluRay driver is auto-selected whenever
.B cdrecord
finds an MMC-compliant drive that does support to write BluRay BD-RE media or a
multi system that contains a BluRay BD-RE disk as the current medium.
.TP
.B mmc_cd
The generic SCSI-3/mmc CD-ROM driver is auto-selected whenever
.B cdrecord
finds an MMC-compliant drive that does not identify itself to support writing at
all, or that only identifies to support media or write modes not implemented in
.BR cdrecord .
.TP
.B mmc_cd_dvd
The generic SCSI-3/mmc CD/DVD/BluRay driver is auto-selected whenever
.B cdrecord
finds an MMC-2 or MMC-3-compliant drive that seems to support more than 
one medium type and the tray is open or no medium could be found to select the
right driver.
This driver tries to close the tray, checks the medium found in the tray and then
branches to the driver that matches the current medium.
.TP
.B mmc_cdr
The generic SCSI-3/mmc CD-R/CD-RW driver is auto-selected whenever
.B cdrecord
finds an MMC-compliant drive that only supports to write CDs or a multi system
drive that contains a CD as the current medium.
.TP
.B mmc_cdr_sony
The generic SCSI-3/mmc CD-R/CD-RW driver is auto-selected whenever
.B cdrecord
would otherwise select the
.B mmc_cdr
driver but the device seems to be made by Sony.
The
.B mmc_cdr_sony
is definitely needed for the Sony CDU 928 as this drive does not completely
implement the MMC standard and some of the MMC SCSI commands have to be
replaced by Sony proprietary commands. It seems that all Sony drives (even
newer ones) still implement the Sony proprietary SCSI commands so it has
not yet become a problem to use this driver for all Sony drives. If you find
a newer Sony drive that does not work with this driver, please report.
.TP
.B mmc_dvd
The generic SCSI-3/mmc-2 DVD-R/DVD-RW driver is auto-selected whenever
.B cdrecord
finds an MMC-2 or MMC-3-compliant drive that supports to write DVDs and
an appropriate medium is loaded.
There is no Track At Once mode for DVD writers.
.TP
.B mmc_dvdplus
The generic SCSI-3/mmc-3 DVD+R/DVD+RW driver is auto-selected whenever
one of the DVD+ media types that are incompatible to each other is found.
It checks media and then 
branches to the driver that matches the current medium.
.TP
.B mmc_dvdplusr
The generic SCSI-3/mmc-3 DVD+R driver is auto-selected whenever
a DVD+R medium is found in an appropriate writer.
Note that for unknown reason, the DVD+RW Alliance does not
like that there is a simulation mode for DVD+R media.
The author of
.B cdrecord
tries to convince manufacturers to implement a simulation mode for DVD+R
and implement support.
DVD+R only supports one write mode that is somewhere between Track At Once
and Packet writing; this mode is selected in 
.B cdrecord
via the 
.BR \-dao / \-sao
option.
.TP
.B mmc_dvdplusrw
The generic SCSI-3/mmc-3 DVD+RW driver is auto-selected whenever
a DVD+RW medium is found in an appropriate writer.
As DVD+RW media need to be formatted before their first use, cdrecord
auto-detects this medium state and performs a format before it starts
to write.
Note that for unknown reason, the DVD+RW Alliance does not
like that there is a simulation mode nor a way to erase DVD+RW media.
DVD+RW only supports one write mode that is close to
Packet writing; this mode is selected in 
.B cdrecord
via the 
.BR \-dao / \-sao
option.
.TP
.B cw_7501
The driver for Matsushita/Panasonic CW-7501 is auto-selected when
.B cdrecord
finds this old pre-MMC drive.
.B Cdrecord
supports all write modes for this drive type.
.TP
.B kodak_pcd_600
The driver for Kodak PCD-600 is auto-selected when
.B cdrecord
finds this old pre-MMC drive which has been the first high speed (6x)
CD-writer for a long time. This drive behaves similarly to the
Philips CDD-521 drive.
.TP
.B philips_cdd521
The driver for Philips CDD-521 is auto-selected when
.B cdrecord
finds a Philips CDD-521 drive (which is the first CD-writer ever made)
or one of the other drives that are known to behave similarly to this
drive.
All Philips CDD-521 or similar drives (see other drivers in this list)
do not support Session At Once recording.
.TP
.B philips_cdd521_old
The driver for Philips old CDD-521 is auto-selected when
.B cdrecord
finds a Philips CDD-521 with very old firmware which has some known limitations.
.TP
.B philips_cdd522
The driver for Philips CDD-522 is auto-selected when
.B cdrecord
finds a Philips CDD-522 which is the successor of the 521 or one of its variants
with Kodak label.
.B Cdrecord
does not support Session At Once recording with these drives.
.TP
.B philips_dumb
The driver for Philips CDD-521 with pessimistic assumptions is never auto-selected.
It may be used by hand with drives that behave similarly to the Philips CDD-521.
.TP
.B pioneer_dws114x
The driver for Pioneer DW-S114X is auto-selected when
.B cdrecord
finds one of the old non-MMC CD-writers from Pioneer.
.TP
.B plasmon_rf4100
The driver for Plasmon RF 4100 is auto-selected when
.B cdrecord
finds this specific variant of the Philips CDD-521.
.TP
.B ricoh_ro1060c
The driver for Ricoh RO-1060C is auto-selected when
.B cdrecord
finds this drive. There is no real support for this drive yet.
.TP
.B ricoh_ro1420c
The driver for Ricoh RO-1420C is auto-selected when
.B cdrecord
finds a drive with this specific variant of the Philips CDD-521 command set.
.TP
.B scsi2_cd
The generic SCSI-2 CD-ROM driver is auto-selected whenever
.B cdrecord
finds a pre-MMC drive that does not support writing or a pre-MMC writer that is
not supported by
.BR cdrecord .
.TP
.B sony_cdu924
The driver for Sony CDU-924 / CDU-948 is auto-selected whenever
.B cdrecord
finds one of the old pre-MMC CD-writers from Sony.
.TP
.B teac_cdr50
The driver for Teac CD-R50S, Teac CD-R55S, JVC XR-W2010, Pinnacle RCD-5020
is auto-selected whenever one of the drives is found that is known to use the
non-MMC command set used by TEAC and JVC.
Note that many drives from JVC will not work because they do not correctly implement
the documented command set and JVC has been unwilling to fix or document the
bugs.
There is no support for the Session At Once write mode yet.
.TP
.B tyuden_ew50
The driver for Taiyo Yuden EW-50 is auto-selected when
.B cdrecord
finds a drive with this specific variant of the Philips CDD-521 command set.
.TP
.B yamaha_cdr100
The driver for Yamaha CDR-100 / CDR-102 is auto-selected when
.B cdrecord
finds one of the old pre-MMC CD-writers from Yamaha.
There is no support for the Session At Once write mode yet.
.TP
.B bd_simul
The simulation BluRay driver allows to run timing and speed tests
with parameters that match the behavior of BluRay writers.
.TP
.B cdr_simul
The simulation CD-R driver allows to run timing and speed tests
with parameters that match the behavior of CD-writers.
.TP
.B dvd_simul
The simulation DVD-R driver allows to run timing and speed tests
with parameters that match the behavior of DVD writers.
.PP

.sp
There are two special driver entries in the list:
.B cdr_simul
and
.BR dvd_simul .
These driver entries are designed to make timing tests at any speed
or timing tests for drives that do not support the 
.B \-dummy
option.
The simulation drivers implement a drive with a buffer size of 1\ MB
that can be changed via the 
.B CDR_SIMUL_BUFSIZE
environment variable.
The simulation driver correctly simulates even a buffer underrun condition.
If the 
.B \-dummy 
option is present, the simulation is not aborted in case of a buffer underrun.
.RE
.TP
.BI driveropts= "option list"
Set driver specific options. The options are specified as a comma separated list.
To get a list of valid options use 
.BI driveropts= help
together with the 
.I \-checkdrive
option.
If you like to set driver options without running a typical
.B cdrecord
task, you need to use the
.B \-setdropts
option in addition, otherwise the command line parser in
.B cdrecord
will complain.
Currently implemented driver options are:
.RS
.TP
.B burnfree 
Turn the support for Buffer Underrun Free writing on.
This only works for drives that support Buffer Underrun Free technology.
This may be called:
.BR "Sanyo BURN-Proof" ,
.BR "Ricoh Just-Link" ,
.B "Yamaha Lossless-Link"
or similar.
.sp
The default is to turn 
.B BURN-Free
off, regardless of the defaults of the drive.
.TP
.B noburnfree 
Turn the support for Buffer Underrun Free writing off.
.TP
.BI varirec= value
Turn on the 
.B "Plextor VariRec"
writing mode. The mandatory parameter
.I value
is the laser power offset and currently may be selected from
\-2, \-1, 0, 1, 2.
In addition, you need to set the write speed to 4 in order to allow
.B "VariRec"
to work.
.TP
.BI gigarec= value
Manage the
.B "Plextor GigaRec"
writing mode. The mandatory parameter
.I value
is the disk capacity ratio compared to normal recording and currently may be selected from
0.6, 0.7, 0.8, 0.9, 1.0, 1,1, 1.2, 1.3, 1.4.
If values < 1.0 are used, then the effect is similar to the
.B "Yamaha Audio Master Q. R."
feature. If values > 1.0 are used, then the disk capacity is 
increased.
.sp
Not all drives support all 
.B GigaRec
values.
When a drive uses the 
.B GigaRec
feature, the write speed is limited to 8x.
.TP
.B audiomaster
Turn on the 
.B "Yamaha Audio Master Q. R."
feature which usually should result in high quality CDs that
have less reading problems in Hi-Fi players.
As this is implemented as a variant of the 
Session At Once write mode, it will only work if you select 
SAO write mode and there is no need to turn it off.
The 
.B "Audio Master"
mode will work with a limited speed but
may also be used with data CDs. In
.B "Audio Master"
mode, the pits on the CD will be written larger than usual so the capacity
of the medium is reduced when turning this feature on.
A 74-minute CD will only have a capacity of 63 minutes if
.B "Audio Master"
is active and the capacity of a 80-minute CD will be reduced to 68 minutes,
the capacity in will be reduced to 85% of the original capacity.
On newer Plextor drives, this feature is also present but the capacity
will be reduced to 86.66% of the original capacity. For other factors
on Plextor drives, see the
.B gigarec
option above.
.TP
.B forcespeed
Normally, modern drives know the highest possible speed for different
media and may reduce the speed in order to grant best write quality.
This technology may be called:
.BR "Plextor PowerRec" ,
.BR "Ricoh Just-Speed" ,
.B "Yamaha Optimum Write Speed Control"
or similar.
Some drives (e.g. Plextor, Ricoh and Yamaha) allow to force the drive to
use the selected speed even if the medium is so bad that the
write quality would be poor. This option tells such a drive to
force to use the selected speed regardless of the medium quality.
.sp
Use this option with extreme care and note that the drive should know better
which medium will work at full speed.
The default is to turn 
.B forcespeed
off, regardless of the defaults of the drive.
.TP
.B noforcespeed
Turn off the 
.B "force speed
feature.
.TP
.B speedread
Some ultra high speed drives such as 48x and faster drives from Plextor
limit the read speed for unknown media to e.g. 40x in order to avoid
damaged disks and drives.
Using this option tells the drive to read any media as fast as possible.
Be very careful as this may cause the media to break in the drive 
while reading, resulting in damaged media and drive! 
.TP
.B nospeedread
Turn off unlimited read speed.
.TP
.B singlesession
Turn the drive into a single-session only drive.
This allows to read defective or non-compliant (illegal) media with extremely
non-standard additional (broken/illegal) TOC entries in the TOC from the second
or higher session. Some of these disks become
usable if only the information from the first session is used.
You need to enable Single Session mode before you insert the defective disk!
.TP
.B nosinglesession
Turn off single-session mode. The drive will again behave as usual.
.TP
.B hidecdr
Hide the fact that a medium might be a recordable medium.
This allows to make CD-Rs look like CD-ROMs and applications believe 
that the media in the drive is not a CD-R. 
.TP
.B nohidecdr
Turn off hiding CD-R media.
.TP
.B tattooinfo
Use this option together with
.B \-checkdrive
to retrieve the image size information for the
.B "Yamaha DiskT@2
feature. The images always have a line length of 3744 pixels.
Line number 0 (radius 0) is mapped to the center of the disk.
If you know the inner and outer radii you will be able to create a
pre distorted image that later may appear undistorted on the disk.
.TP
.BI tattoofile= name
Use this option together with
.B \-checkdrive
to write an image prepared for the
.B "Yamaha DiskT@2
feature to the medium.
The file must be a file with raw image B&W data (one byte per pixel) 
in a size as retrieved by a previous call to
.BR tattooinfo .
If the size of the image equals the maximum possible size
(3744 x 320 pixels), 
.B cdrecord
will use the first part of the file. This first part then will 
be written to the leftover space on the CD.
.sp
Note that the image must be mirrored to be readable from the pick up
side of the CD.
.TP
.B layerbreak
Switch a drive with DVD-R/DL medium into 
.B "layer jump recording
recording mode and use automatic layer-break position setup.
.sp
By default, DVD-R/DL media is written in
.B "sequential recording
mode that completely fills up both layers.
.TP
.BI layerbreak= value
Set up a manual layer-break value for DVD-R/DL and DVD+R/DL.
The specified layer-break value must not be set to less than half of the recorded
data size and must not be set to more than the remaining
.I "Layer 0 size
of the medium.
The manual layer-break value needs to be a multiple of the ECC sector
size which is 16 logical 2048 byte sectors in case of DVD media
and 32 logical 2048 byte sectors in case of HD-DVD or BD media.
.sp
.B Cdrecord
does not allow to write DL media in case that the total amount of data is
less then the
.I "Layer 0 size
of the medium except when a manual layer-break has been specified by using the
.BI layerbreak= value
option.
.RE
.TP
.B \-eject
Eject disk after doing the work.
Some devices (e.g. Philips) need to eject the medium before creating a new
disk. Doing a \-dummy test and immediately creating a real disk would not
work on these devices.
.TP
.B \-fix
The disk will only be fixated (i.e. a TOC for a CD-reader will be written). 
This may be used, if for some reason the disk has been written but not
fixated. This option currently does not work with old TEAC drives (CD-R50S and
CD-R55S).
.TP
.B \-force
Force to continue on some errors. Be careful when using this option.
.B Cdrecord
implements several checks that prevent you from doing unwanted things
like damaging CD-RW media by improper drives. Many of the sanity checks are 
disabled when the 
.B \-force
option is used.
.sp
This option also implements some tricks that will allow 
you to blank bad CD-RW disks.
.TP
.B \-format
Format a CD-RW/DVD-RW/DVD+RW/BD-RE disc.
Formatting is currently only implemented for DVD+RW and BD-RE media.
A 'maiden' DVD+RW or BD-RE medium needs to
be formatted before you may write to it.
However, as
.B cdrecord
autodetects the need for formatting in this case and auto formats the medium
before it starts writing, the
.B \-format
option is only needed if you like to forcibly reformat a DVD+RW or BD-RE medium.
.TP
.BR fs= #
Set the FIFO (ring buffer) size to #.
You may use the same syntax as in 
.BR dd (1),
.BR sdd (1)
or
.BR star (1).
The number representing the size is taken in bytes unless otherwise specified.
If a number is followed directly by the letter `b', `k', `m', `s' or `f',
the size is multiplied by 512, 1024, 1024*1024, 2048 or 2352.
If the size consists of numbers separated by `x' or `*', multiplication of the 
two numbers is performed.
Thus 
.I "fs=10x63k
will specify a FIFO size of 630\ kBytes.
.sp
The size specified by the 
.I fs=
argument includes the shared memory that is needed for administration. This
is at least one page of memory.
If no
.IR fs =
option is present, 
.B cdrecord
will try to get the FIFO size value from the 
.B CDR_FIFOSIZE
environment.
The default FIFO size is currently 4 MB.
.sp
The FIFO is used to increase buffering for the real-time writing process.
It allows to run a pipe from 
.B mkisofs
directly into 
.BR cdrecord .
If the FIFO is active and a pipe from 
.B mkisofs
into 
.B cdrecord
is used to create a CD, 
.B cdrecord
will abort prior to do any modifications on the disk if 
.B mkisofs 
dies before writing starts.
The recommended FIFO size is between 4 and 128\ MBytes.
As a rule of thumb, the FIFO size should be at least equal to the size
of the internal buffer of the CD/DVD/BluRay-recorder and no more than half of
the physical amount of RAM available in the machine.
If the FIFO size is big enough, the FIFO statistics will print a FIFO
empty count of zero and a FIFO min fill not below 20%.
It is not wise to use too much space for the FIFO. If you need more
than 8 MB to write a CD at a speed less than 20x from an image on a
local file system on an idle machine, your machine is either underpowered,
has hardware problems or is mis-configured.
If you like to write DVDs or to write CDs at higher speed, it makes sense
to use at least 16\ MB for the FIFO.
.sp
On old and small machines, you need to be more careful with the FIFO size.
If your machine has less than 256\ MB of physical RAM, you should not
set up a FIFO size that is more than 32\ MB.
The sun4c architecture (e.g. a Sparcstation-2) has only MMU page table entries
for 16\ MBytes per process. Using more than 14\ MBytes for the FIFO
may cause the operating system in this case to spend much time to constantly
reload the MMU tables. Newer machines from Sun do not have this MMU
hardware problem. The author has no information on PC hardware reflecting
this problem.
.sp
Old Linux systems for non-x86 platforms have broken definitions for
the shared memory size. You need to fix them and rebuild the kernel
or manually tell
.B cdrecord
to use a smaller FIFO.
.sp
If you have buffer underruns or similar problems (like a constantly empty
drive-buffer) and observe a zero
.IR "fifo empty count" ,
you have hardware problems that prevent the data from flowing fast enough
from the kernel memory to the drive. The FIFO size in this case is sufficient,
but you should check for a working DMA setup.
.TP
.BI gracetime= #
Set the grace time before starting to write to
.IR # " seconds.
Values below 3 seconds are not allowed in order to prevent the volume management
from interrupting the write process.
.TP
.B \-ignsize
Ignore the known size of the medium. This option should be used with extreme
care, it exists only for debugging purposes so do not use it for other reasons.
It is not needed to write disks with more than the nominal capacity.
This option implies
.BR \-overburn .
.TP
.B \-immed
Tell cdrecord to set the
.B "SCSI IMMED"
flag in certain commands
(load, eject, blank, close_track, close_session).
This can be useful
on broken systems with ATAPI hard-disk and CD/DVD/BluRay writer on the same bus or
with SCSI systems that do not use disconnect/reconnect.
These systems will freeze while blanking or fixating a CD/DVD/BluRay or while a DVD
writer is filling up a session to the minimum amount (approx. 800 MB).
Setting the
.B \-immed
flag will request the command to return immediately
while the operation proceeds in background, making
the bus usable for the other devices and avoiding the system freeze.
This is an experimental feature which may work or not, depending on the model
of the CD/DVD/BluRay writer.
A correct solution would be to set up a correct cabling but there seem to be 
notebooks around that have been set up the wrong way by the manufacturer.
As it is impossible to fix this problem in notebooks, the
.B \-immed
option has been added.
.sp
A second experimental feature of the
.B \-immed
flag is to tell cdrecord to try to wait short times while writing to the
media. This is expected to free the IDE bus if the CD/DVD/BluRay writer and the
data source are connected to the same IDE cable. In this case, the CD/DVD/BluRay
writer would otherwise usually block the IDE bus for nearly all the time
making it impossible to fetch data from the source drive. See also the
.B minbuf=
and
.B \-v
options.
.sp
Use both features at your own risk.
If it turns out that it would make sense to have a separate option
for the wait feature, write to the author and convince him.
.TP
.B \-inq
Do an inquiry for the drive, print the inquiry info for the drive and exit.
.TP
.B \-load
Load the media and exit. This only works with a tray-loading mechanism
but seems to be useful when using the Kodak disk transporter.
.TP
.B \-lock
Load the media, lock the door and exit. This only works with a tray-loading mechanism
but seems to be useful when using the Kodak disk transporter.
.TP
.BI mcn= med_cat_nr
Set the 
.B "Media Catalog Number
of the CD to 
.IR med_cat_nr .
.TP
.BI minbuf= value
The
.B minbuf=
option allows to define the minimum drive-buffer fill ratio for the
experimental ATAPI wait mode that is intended to free the IDE bus
to allow hard disk and CD/DVD/BluRay writer to be on the same IDE cable.
As the wait mode currently only works when the verbose option
.B \-v
has been specified, 
.B cdrecord
implies the verbose option in case the 
.B \-immed
or
.B minbuf=
option has been specified.
Valid values for 
.B minbuf= 
are between 25 and 95 for 25%.\|.\|.95% minimum drive-buffer fill ratio.
.TP
.B \-media\-info
.TP
.B \-minfo
Retrieve and print information about the state of the medium.
This option currently only works for MMC-compliant drives.
.TP
.B \-msinfo
Retrieve multi-session info in a form suitable for 
.B "mkisofs-1.10" 
or later.
.sp
This option makes only sense with a CD that contains at least
one closed session and is appendable (not finally closed yet). 
Some drives create error messages if you try to get the 
multi-session info for a disk that is not suitable for this 
operation.
.TP
.B \-noclose
Do not close the current track, useful only when in packet writing mode.
This is an experimental interface.
.TP
.B \-nofix
Do not fixate the disk after writing the tracks. This may be used
to create an audio disk in steps. An un-fixated disk can usually not be used
on a non CD-writer type drive but there are audio CD-players that will
be able to play such a disk.
.TP
.B \-overburn
Allow 
.B cdrecord 
to write more than the official size of a medium. This feature is usually
called 
.I overburning
and depends on the fact that most blank media may hold more space than the
official size. As the official size of the lead-out area on the disk is
90 seconds (6750 sectors) and a disk usually works if there are at least
150 sectors of lead out, all media may be overburned by at least 88 seconds
(6600 sectors).
Most CD-recorders only do overburning in 
.B SAO
or
.B RAW
mode. Known exceptions are TEAC CD-R50S, TEAC CD-R55S and the Panasonic
CW-7502.
Some drives do not allow to overburn as much as you might like and limit
the size of a CD to e.g. 76 minutes. This problem may be circumvented by
writing the CD in RAW mode because this way the drive has no chance to find
the size before starting to burn.
There is no guarantee that your drive supports overburning at all.
Make a test to check if your drive implements the feature.
.TP
.B \-packet
Set 
.B "Packet writing mode. 
This is an experimental interface.
.TP
.BR pktsize= #
Set the packet size to #, forces fixed packet mode.
This is an experimental interface.
.TP
.B \-prcap
Print the drive capabilities for SCSI-3/mmc-compliant drives
as obtained from mode page 0x2A. Values marked with 
.I kB
use 1000 bytes as kilo-byte, values marked with
.I KB
use 1024 bytes as Kilo-byte.
.TP
.B \-setdropts
Set the driveropts specified by
.BI driveropts= "option list" ,
the 
.B speed
of the drive and the 
.B dummy
flag and exit.
This allows cdrecord to set drive specific parameters that are not directly 
used by
.B cdrecord
like e.g.
.BR "single session mode" ", " "hide cdr"
and similar.
It is needed in case that 
.BI driveropts= "option list"
should be called without planning to run a typical
.B cdrecord
task.
.TP
.BR speed= #
Set the speed factor of the writing process to #.
# is an integer, representing a multiple of what has been defined as single speed
for the medium.
.sp
For CD-media, single speed is the audio playback speed.
This is about 150\ KB/s for CD-ROM and about 172\ KB/s for CD-Audio.
Single speed is about 1385\ kB/s for DVD media and about 4496\ kB/s for BluRay media.
.sp
If no 
.I speed
option is present,
.B cdrecord
will try to get a drive specific speed value from the file
.B /etc/default/cdrecord
and if it cannot find one, it will try to get the speed value from the
.B CDR_SPEED
environment and later from the 
.B CDR_SPEED=
entry in
.BR /etc/default/cdrecord .
If no speed value could be found, cdrecord uses a drive specific default speed.
The default for all new (MMC-compliant) drives is to use the maximum supported by the drive.
If you use 
.I "speed=0"
with a MMC-compliant drive,
.B cdrecord
will switch to the lowest possible speed for drive and medium.
If you are using an old (non-MMC) drive that has problems with
.I "speed=2" 
or 
.IR "speed=4" , 
you should try 
.IR "speed=0" .
.TP
.B \-text
Write CD-Text information
based on information taken from a file that contains ascii information
for the text strings. 
.B Cdrecord
supports CD-Text information based on the content of the
.B "*.inf
files created by 
.B cdda2wav 
and CD-Text information based on the content from a
.B "CUE sheet
file.
If a 
.B "CUE sheet
file contains both (binary CDTEXTFILE and text based SONGWRITER)
entries, then the information based on the CDTEXTFILE entry will win.
.sp
You need to use the
.B \-useinfo
option in addition in order to tell 
.B cdrecord
to read the
.B "*.inf
files or
.BI cuefile= filename
in order to tell
.B cdrecord
to read a
.B "CUE sheet
file in addition.
If you like to write your own CD-Text information,
edit the
.B "*.inf
files or the
.B "CUE sheet
file with a text editor and change the fields
that are relevant for CD-Text.
.TP
.BI textfile= filename
Write CD-Text based on information found in the binary file
.IR filename .
This file must contain information in a data format defined in the
SCSI-3 MMC-2 standard and in the Red Book. The four-byte-sized header that is 
defined in the SCSI standard is optional and allows to make the recognition of
correct data less ambiguous.
This is the best option to be used to copy CD-Text data from existing CDs
that already carry CD-Text information. To get data in a format suitable
for this option use 
.B cdrecord \-vv \-toc
to extract the information from disk.
If both, 
.BI textfile= filename
and CD-Text information from
.B "*.inf
or
.B "*.cue
files are present,
.BI textfile= filename
will overwrite the other information.
.TP
.B \-toc
Retrieve and print out the table of contents or PMA of a CD.
With this option, 
.B cdrecord
will work with CD-R drives and with CD-ROM drives.
.TP
.B \-waiti
Wait for input to become available on standard input before trying to open
the SCSI driver. This allows 
.B cdrecord
to read its input from a pipe even
when writing additional sessions to a multi-session disk.
When writing another session to a multi-session disk,
.B mkisofs 
needs to read the old session from the device before writing output.
This cannot be done if
.B cdrecord 
opens the SCSI driver at the same time.
.TP
.B \-useinfo
Use
.B "*.inf
files to overwrite audio options.
If this option is used, the pregap size information, 
the index information,
the pre-emphasis information
and the CD-Text information
is read from 
the
.B "*.inf
file that is associated with the file that contains the audio
data for a track.
.sp
If used together with the
.B \-audio
option,
.B cdrecord
may be used to write audio CDs from a pipe from
.B cdda2wav
if you call
.B cdrecord
with the
.B "*.inf
files as track parameter list instead of using audio files.
The audio data is read from 
.B stdin
in this case.
See
.I EXAMPLES
section below.
.B Cdrecord
first verifies that 
.B stdin
is not connected to a terminal and runs some heuristic consistency checks
on the
.B "*.inf
files and then sets the track lengths from the information in
the
.B "*.inf
files.
.sp
If you like to write from 
.BR stdin ,
make sure that cdrecord is called with a large enough FIFO size, reduce the write
speed to a value below the read speed of the source drive and switch the burn-free
option for the recording drive on.

.SS "SCSI options"
.TP
.BI dev= target
Set the SCSI target for the CD/DVD/BluRay-recorder, see notes above.
A typical target device specification is
.BI dev= 1,6,0
\&.
If a filename must be provided together with the numerical target 
specification, the filename is implementation specific.
The correct filename in this case can be found in the system specific
manuals of the target operating system.
On a 
.I FreeBSD
system without 
.I CAM
support, you need to use the control device (e.g.
.IR /dev/rcd0.ctl ).
A correct device specification in this case may be
.BI dev= /dev/rcd0.ctl:@
\&.
.sp
.B \h'-2m'General SCSI addressing
.br
The
.I target device
to the 
.B dev=
option
refers to the
.B SCSI\ CAM
standard notation for
.IR scsibus / target / lun
of the CD/DVD/BluRay-recorder. Communication on 
.I SunOS
is done with the SCSI general driver
.B scg.
Other operating systems are using a library simulation of this driver.
Possible syntax is:
.B dev=
.IR scsibus , target , lun
or
.B dev=
.IR target , lun .
In the latter case, the CD/DVD/BluRay-recorder has to be connected to the default 
SCSI bus of the machine.
.IR Scsibus ,
.I target 
and 
.I lun
are integer numbers. 
Some operating systems or SCSI transport implementations may require to
specify a filename in addition.
In this case the correct syntax for the device is:
.B dev=
.IR devicename : scsibus , target , lun
or
.B dev=
.IR devicename : target , lun .
If the name of the device node that has been specified on such a system
refers to exactly one SCSI device, a shorthand in the form
.B dev=
.IR devicename : @
or
.B dev=
.IR devicename : @ , lun
may be used instead of
.B dev=
.IR devicename : scsibus , target , lun .
.sp
.B \h'-2m'Remote SCSI addressing
.br
To access remote SCSI devices, you need to prepend the SCSI device name by
a remote device indicator. The remote device indicator is either
.BI REMOTE: user@host:
or
.BI REMOTE: host:
A valid remote SCSI device name may be:
.BI REMOTE: user@host:
to allow remote SCSI bus scanning or
.BI REMOTE: user@host:1,0,0
to access the SCSI device at 
.I host
connected to SCSI bus # 1,target 0, lun 0.
In order to allow remote access to a specific
.IR host ,
the
.BR rscsi (1)
program needs to be present and configured on the
.IR host .
.sp
.B \h'-2m'Alternate SCSI transports
.br
.B Cdrecord
is completely based on 
.B SCSI
commands but this is no problem as all CD/DVD/BluRay writers
ever made use
.B SCSI
commands for the communication. Even
.B ATAPI
drives are just
.B SCSI
drives that inherently use the 
.I "ATA packet interface
as
.B SCSI
command transport layer build into the IDE (ATA) transport.
You may need to specify an alternate transport layer on the command  line
if your OS does not implement a fully integrated kernel driver subsystem that
allows to access any drive using
.B SCSI
commands via a single unique user interface.
.sp
To access SCSI devices via alternate transport layers,
you need to prepend the SCSI device name by a transport layer indicator.
The transport layer indicator may be something like
.B USCSI: 
or
.BR ATAPI: .
To get a list of supported transport layers for your platform, use 
.B dev=
.IR HELP :
.sp
.B \h'-2m'Portability Background
.br
To make 
.B cdrecord
portable to all \s-2UNIX\s0 platforms, the syntax
.B dev=
.IR devicename : scsibus , target , lun
is preferred as it hides OS specific knowledge about device names from the user.
A specific OS may not necessarily support a way to specify a real device file name nor a
way to specify 
.IR scsibus , target , lun .
.sp
.I Scsibus 
0 is the default SCSI bus on the machine. Watch the boot messages for more 
information or look into 
.B /var/adm/messages 
for more information about the SCSI configuration of your machine.
If you have problems to figure out what values for 
.IR scsibus , target , lun
should be used, try the 
.B \-scanbus
option of 
.B cdrecord
described below.
.sp
.B \h'-2m'Using logical names for devices
.br
If no 
.I dev
option is present, 
.B cdrecord
will try to get the device from the 
.B CDR_DEVICE
environment.
.sp
If a file /etc/default/cdrecord exists, and
if the argument to the
.B dev=
option
or the
.B CDR_DEVICE
environment
does not contain the characters ',', '/', '@' or ':',
it is interpreted as a device label name that was defined in the file
/etc/default/cdrecord (see FILES section).
.sp
.B \h'-2m'Autotarget Mode
.br
If no 
.B dev=
option 
and no
.B CDR_DEVICE
environment
is present, or if it
only contains a transport specifier but no address notation,
.B cdrecord
tries to scan the SCSI address space for CD-ROM drives.
If exactly one is found, this is used by default.
.TP
.BI debug= "#, " \-d
Set the misc debug value to # (with debug=#) or increment
the misc debug level by one (with \-d). If you specify
.I \-dd,
this equals to 
.BI debug= 2.
This may help to find problems while opening a driver for libscg
as well as with sector sizes and sector types.
Using
.B \-debug
slows down the process and may be the reason for a buffer underrun.
.TP
.BR kdebug= "#, " kd= #
Tell the 
.BR scg -driver
to modify the kernel debug value while SCSI commands are running.
.TP
.B \-reset
Try to reset the SCSI bus where the CD-recorder is located. This does not work
on all operating systems.
.TP
.B \-scanbus
Scan all SCSI devices on all SCSI busses and print the inquiry
strings. This option may be used to find SCSI address of the 
CD/DVD/BluRay-recorder on a system.
The numbers printed out as labels are computed by: 
.B "bus * 100 + target
.TP
.BI scgopts= list
A comma separated list of SCSI options that are handled by libscg.
The implemented options may be uptated indepentendly from applications.
Currently, one option:
.B ignore\-resid
is supported to work around a Linux kernel bug.
.TP
.BR \-silent ", " \-s
Do not print out a status report for failed SCSI commands.
.TP
.BI timeout= #
Set the default SCSI command timeout value to 
.IR # " seconds.
The default SCSI command timeout is the minimum timeout used for sending
SCSI commands.
If a SCSI command fails due to a timeout, you may try to raise the
default SCSI command timeout above the timeout value of the failed command.
If the command runs correctly with a raised command timeout,
please report the better timeout value and the corresponding command to 
the author of the program.
If no 
.B timeout=
option is present, a default timeout of 40 seconds is used.
.TP
.BR ts= #
Set the maximum transfer size for a single SCSI command to #.
The syntax for the 
.B ts=
option is the same as for cdrecord fs=# or sdd bs=#.
.sp
If no 
.B ts=
option has been specified,
.B cdrecord
defaults to a transfer size of 63\ kB. If libscg gets lower values from the
operating system, the value is reduced to the maximum value that is possible
with the current operating system.
Sometimes, it may help to further reduce the transfer size or to enhance it,
but note that it may take a long time to find a better value by experimenting
with the
.B ts=
option.
.TP
.B \-V
Increment the verbose level in respect of SCSI command transport by one.
This helps to debug problems
during the writing process, that occur in the CD/DVD/BluRay-recorder. 
If you get incomprehensible error messages you should use this flag
to get more detailed output.
.B \-VV
will show data buffer content in addition.
Using
.B \-V
or
.B \-VV
slows down the process and may be the reason for a buffer underrun.

.SH "TRACK OPTIONS
.PP
Track options may be mixed with track file names.
.TP
.B \-audio
If this flag is present, all subsequent tracks are written in
.B "CD-DA 
(similar to Red Book) audio format.
The file with data for this tracks should
contain stereo, 16-bit digital audio with 44100 samples/s.
The byte order should be the following: MSB left, LSB left, 
MSB right, LSB right, MSB left and so on. The track should be a multiple of 
2352 bytes. It is not possible to put the master image of an audio track 
on a raw disk because 
data will be read in multiple of 2352 bytes during the recording process.
.sp
If a filename ends in 
.I .au
or
.I .wav
the file is considered to be a structured audio data file.
.B Cdrecord
assumes that the file in this case is a Sun audio file or a
Microsoft .WAV file
and extracts the audio data from the files by skipping over the
non-audio header information.
In all other cases, cdrecord will only work correctly if the
audio data stream does not have any header.
Because many structured audio files do not have an integral
number of blocks (1/75th second each) in length,
it is often necessary to specify the
.B \-pad
option as well.
.B cdrecord
recognizes that audio data in a .WAV file is stored in Intel
(little-endian) byte order, and will automatically byte-swap the data
if the CD-recorder requires big-endian data.  
.B Cdrecord
will reject any audio file that does not match the Red Book requirements
of 16-bit stereo samples in PCM coding at 44100 samples/second.
.sp
Using other structured audio data formats as input to 
.B cdrecord
will usually work if the structure of the data is the 
structure described above (raw pcm data in big-endian byte order).
However, if the data format includes a header,
you will hear a click at the start of the track.
.TP
.I " "
If neither 
.I \-data 
nor
.I \-audio
have been specified, 
.B cdrecord
defaults to 
.I \-audio
for all filenames that end in
.I .au
or 
.I .wav
and to
.I \-data 
for all other files.
.TP
.B \-cdi
If this flag is present, the TOC type for the disk is set to
.BR CDI .
This only makes sense with XA disks.
.TP
.B \-copy
If this flag is present, all TOC entries for subsequent audio tracks
of the resulting CD
will indicate that the audio data has permission to be copied without limit.
This option has no effect on data tracks.
.TP
.B \-data
If this flag is present, all subsequent tracks are written in
.B "CD-ROM mode 1
(Yellow Book) format. The data size is a multiple of 2048 bytes.
The file with track data should contain an 
.BR ISO-9660 " or " "Rock Ridge
filesystem image (see 
.B mkisofs
for more details). If the track data is an
.B ufs
filesystem image, fragment size should be set to 2\ KB or more to allow
CD-drives with 2\ KB sector size to be used for reading.
.TP
.I " "
.I \-data
is the default, if no other flag is present and the file does not
appear to be of one of the well known audio file types.
.TP
.I " "
If neither 
.I \-data 
nor
.I \-audio
have been specified, 
.B cdrecord
defaults to 
.I \-audio
for all filenames that end in
.I .au
or 
.I .wav
and to
.I \-data 
for all other files.
.TP
.BI index= list
Sets an index list for the next track.
In index list is a comma separated list of numbers that are counting
from index 1. The first entry in this list must contain a 0, the following 
numbers must be an ascending list of numbers (counting in 1/75 seconds) that 
represent the start of the indices. An index list in the form:
0,7500,15000 sets index 1 to the start of the track, index 2 100 seconds from
the start of the track and index 3 200 seconds from the start of the track.
.TP
.B \-isosize
Use the 
.B "ISO-9660
file system size as the size of the next track.
This option is needed if you want 
.B cdrecord
to directly read the image of a track from
a raw disk partition or from a 
.I TAO 
master CD. In the first case the option
.B \-isosize
is needed to limit the size of the CD to the size of the ISO filesystem.
In the second case the option
.B \-isosize
is needed to prevent 
.B cdrecord
from reading the two run-out blocks that are appended by each CD-recorder
in track-at-once mode. These two run-out blocks cannot be read and would
cause a buffer underrun that would cause a defective copy.
.sp
Note that if this option is used on files created by 
.BR mkisofs ,
the padding data that was added by
.B mkisofs
is lost and replaced by padding added by cdrecord. 
This may also change the amount of padding.
.sp
In case
.B cdrecord
reads the track data from 
.IR stdin ,
only the first track may be used with the
.B \-isosize
option.
.sp
If 
.B \-isosize
is used for a track, 
.B cdrecord
will automatically add padding for this track as if the
.B \-pad
option had been used but the amount of padding may be less than the padding
written by 
.BR  mkisofs .
Note that if you use
.B \-isosize
on a track that contains Sparc boot information, the boot information will
be lost.
.sp
Note also that
this option cannot be used to determine the size of a file system
if the
.B \-multi
option is present.
.TP
.BI isrc= ISRC_number
Set the 
.B "International Standard Recording Number
for the next track to
.IR ISRC_number .
.TP
.B \-mode2
If this flag is present, all subsequent tracks are written in
.B "CD-ROM mode 2
format. The data size is a multiple of 2336 bytes.
.TP
.B \-nocopy
If this flag is present, all TOC entries for subsequent audio tracks 
of the resulting CD
will indicate that the audio data has permission to be copied only once for
personal use \-
this is the default.
.TP
.B \-nopad
Do not pad the following tracks \- the default.
.TP
.B \-nopreemp
If this flag is present, all TOC entries for subsequent audio tracks 
will indicate that the audio data has been mastered with linear data \- 
this is the default.
.TP
.B \-noshorttrack
Re-enforce the Red Book track length standard. Tracks must be
at least 4 seconds.
.TP
.B \-pad
If the track is a data track, 15 sectors of zeroed data
will be added to the end of this and each subsequent data track.
In this case, the 
.B \-pad 
option is superseded by the 
.B padsize=
option. It will remain however as a shorthand for
.BI padsize= 15s.
If the 
.I \-pad 
option refers to an audio track,
.B cdrecord 
will pad the audio data to be a multiple of 2352 bytes. 
The audio data padding is done with binary zeroes which is 
equal to absolute silence.
.sp
.B \-pad 
remains valid until disabled by 
.BR \-nopad .
.TP
.BR padsize= #
Set the amount of data to be appended as padding to the next track to #.
Opposed to the behavior of the 
.B \-pad
option, the value for 
.I padsize=
is reset to zero for each new track.
Cdrecord assumes a sector size of 2048 bytes for the
.I padsize=
option, independent from the real 
sector size and independent from the write mode.
The megabytes mentioned in the verbose mode output however are counting
the output sector size which is e.g. 2448 bytes when writing in RAW/RAW96
mode.
See the
.BR fs =
option for possible arguments.
To pad the equivalent of 20 minutes on a CD, you may write
.BR padsize= 20x60x75s.
Use this option if your CD-drive is not able to read the last sectors of
a track or if you want to be able to read the CD
on a 
.B Linux 
system with the ISO-9660 filesystem read-ahead bug.
If an empty file is used for track data, 
this option may be used to create a disk that is entirely made of padding.
This may e.g. be used to find out how much overburning is possible with a 
specific medium.
.TP
.B \-preemp
If this flag is present, all TOC entries for subsequent audio tracks 
will indicate that the audio data has been sampled with 50/15 \*msec
pre-emphasis.
The data however is not modified during the process of transferring from file
to disk. 
This option has no effect on data tracks.
.TP
.BR pregap= #
Set the  pre-gap size for the next track.
This option currently only makes sense with the TEAC drive when
creating track-at-once disks without the 2-second silence before each track.
.br
This option may go away in the future. 
.TP
.B \-scms
If this flag is present, all TOC entries for subsequent audio tracks 
of the resulting CD
will indicate that the audio data has no permission to be copied anymore.
.TP
.B \-shorttrack
Allow all subsequent tracks to violate the Red Book track length standard
which requires a minimum track length of 4 seconds.
This option is only useful when used in SAO or RAW mode.
Not all drives support this feature. The drive must accept the
resulting CUE sheet or support RAW writing.
.TP
.B \-swab
If this flag is present, audio data is assumed to be in byte-swapped
(little-endian) order.  Some types of CD-writers e.g. Yamaha, Sony and the
new SCSI-3/mmc drives require audio data to be presented in
little-endian order,
.\" (which is the order in which it's actually recorded on the CD) ????
while other writers require audio data to be
presented in the big-endian (network) byte order normally used by the
SCSI protocol.
.B Cdrecord
knows if a CD-recorder needs audio data in big- or little-endian order,
and corrects the byte order of the data stream to match the needs
of the recorder.
You only need the 
.I \-swab 
flag if your data stream is in Intel (little-endian) byte order.
.sp
Note that the verbose output of
.B cdrecord
will show you if swapping is necessary to make the byte order of 
the input data fit the required byte order of the recorder.
.B Cdrecord
will not show you if the 
.I \-swab 
flag was actually present for a track.
.TP
.BR tsize= #
If the master image for the next track has been stored on a raw disk, 
use this option
to specify the valid amount of data on this disk. If the image of the next 
track is stored in a regular file, the size of that file is taken to determine
the length of this track.
If the track contains an ISO-9660 filesystem image use the 
.I \-isosize
option to determine the length of that filesystem image.
.br
In Disk At Once mode and with some drives that use
the TEAC programming interface, even in Track At Once mode,
.B cdrecord
needs to know the size of each track before starting to write the disk.
Cdrecord now checks this and aborts before starting to write.
If this happens you will need to run
.B "mkisofs \-print\-size
before and use the output (with `s' appended) as an argument to the 
.BR tsize =
option of 
.B cdrecord
(e.g. tsize=250000s).
.br
See
.BR fs =
option for possible arguments.
.TP
.B \-xa
If this flag is present, all subsequent tracks are written in
.B "CD-ROM XA mode 2 form 1
format. The data size is a multiple of 2048 bytes.
The XA sector sub-headers will be created by the drive.
With this option, the write mode is the same as with the
.B \-multi
option.
.TP
.B \-xa1
If this flag is present, all subsequent tracks are written in
.B "CD-ROM XA mode 2 form 1
format. The data size is a multiple of 2056 bytes.
The XA sector sub-headers are part of the user data and have to be
supplied by the application that prepares the data to be written.
.TP
.B \-xa2
If this flag is present, all subsequent tracks are written in
.B "CD-ROM XA mode 2 form 2
format. The data is a multiple of 2324 bytes.
The XA sector sub-headers will be created by the drive.
.TP
.B \-xamix
If this flag is present, all subsequent tracks are written in a way
that allows a mix of 
.B "CD-ROM XA mode 2 form 1/2
format. The data size is a multiple of 2332 bytes.
The XA sector sub-headers are part of the user data and have to be
supplied by the application that prepares the data to be written.
The CRC and the P/Q parity ECC/EDC information (depending on the sector
type) have to be supplied by the application that prepares the data to be written.

.SH EXAMPLES
.PP
For all examples below, it will be assumed that the machine includes two drives.
The reader is assumed to be target 1 on the primary SCSI bus.
The CD/DVD/BluRay-recorder is assumed to be target 2 on the primary SCSI bus 
of the machine.
.PP
If there is only one drive in the machine, the
.B dev=
option may be omitted in the examples below, but in this case the examples for
replication without intermediate files do not apply.

.PP
.SS "Replicating an Audio CD"
To copy an audio CD in the most accurate way, first run
.PP
    cdda2wav dev=1,0 paraopts=proof \-vall cddb=0 \-B \-Owav
.PP
and then run
.PP
    cdrecord dev=2,0 \-v \-dao \-useinfo \-text  *.wav
.PP
This will try to copy track indices and to read CD-Text information from disk.
If there is no CD-Text information, 
.B cdda2wav
will try to get the information from freedb.org instead.
.PP
To copy an audio CD from a pipe (without intermediate files), first run
.PP
    cdda2wav dev=1,0 \-vall cddb=0 \-info\-only
.PP
and then run
.PP
    cdda2wav dev=1,0 \-no\-infofile \-B \-Oraw \- | \\
.br
    cdrecord dev=2,0 \-v \-dao \-audio \-useinfo \-text *.inf
.PP
This will get all information (including track size info) from the
.B "*.inf
files and then read the audio data from stdin.
.sp
If you like to write from 
.BR stdin ,
make sure that cdrecord is called with a large enough FIFO size (e.g.
.BR fs=128m ),
reduce the write speed to a value below the read speed of the source drive
(e.g.
.BR speed=12 ),
and switch the burn-free
option for the recording drive on by adding
.BR driveropts=burnfree .
For the same reason, it is not recommended to extract the audio data in
paranoia mode in this case.

.PP
.SS "Replicating a simple CD-ROM/DVD-ROM/BD-ROM
To copy a simple disk, first read the master using:
.PP
    readcd dev=1,0 f=somefile
.PP
Then write the disk using:
.PP
    cdrecord dev=2,0 \-v somefile

.PP
.SS "Replicating a CD-ROM in clone mode
To copy a CD in clone mode, first read the master CD using:
.PP
    readcd dev=1,0 \-clone f=somefile
.PP
or (in case the CD contains many sectors that are unreadable by intention)
by calling:
.PP
    readcd dev=1,0 \-clone \-nocorr f=somefile
.PP
This will create the files
.I somefile
and
.IR somefile.toc .
Then write the CD using:
.PP
    cdrecord dev=2,0 \-raw96r \-clone \-v somefile

.SS "Creating an Audio CD
To record a pure CD-DA (audio) at single speed, with each track contained
in files named
.IR track01.cdaudio ,
.IR track02.cdaudio ,
etc.:
.PP
    cdrecord \-v speed=1 dev=2,0 \-dao \-audio track*.cdaudio
.PP
To check if it will be OK to use double speed for the example above,
use the dummy write option:
.PP
    cdrecord \-v \-dummy speed=2 dev=2,0 \-dao \-audio track*.cdaudio
.PP
.SS "Creating a mixed Audio-Data CD
To record a mixed-mode CD with an ISO-9660 filesystem from
.I cdimage.raw
on the first track, the other tracks being audio tracks from the files
.IR track01.cdaudio ,
.IR track02.cdaudio ,
etc.:
.PP
    cdrecord \-v dev=2,0 \-dao cdimage.raw \-audio track*.cdaudio
.PP
.SS "Creating a CD-ROM/DVD-ROM/BD-ROM
To record a pure disk at double speed, using data from the file
.IR cdimage.raw :
.PP
    cdrecord \-v speed=2 dev=2,0 \-dao cdimage.raw
.PP
To create an image for an ISO-9660 filesystem with Rock Ridge extensions:
.PP
    mkisofs \-R \-o cdimage.raw /home/joerg/master/tree
.PP
To check the resulting file before writing to disk on Solaris:
.PP
    mount \-r \-F fbk \-o type=hsfs /dev/fbk0:cdimage.raw /mnt
.PP
The
.B fbk
driver first appeared in 1988.
.PP
Solaris 9 or newer comes with a variant of the original 
.B fbk
idea called
.BR lofi .
The command for the lofi variant is:
.PP
	mount \-r \-F hsfs ` lofiadm \-a /tmp/cdimage.raw ` /mnt
.PP
Note that lofiadm needs absolute path names.
.PP
On Linux:
.PP
    mount cdimage.raw \-r \-t iso9660 \-o loop /mnt
.PP
Go on with:
.br
    ls \-lR /mnt
.br
    umount /mnt
.PP
If the overall speed of the system is sufficient and the structure of
the filesystem is not too complex, cdrecord will run without creating an
image of the ISO-9660 filesystem. Simply run the pipeline:
.PP
    mkisofs \-R /master/tree | cdrecord \-v \-dao fs=6m speed=2 dev=2,0 \-
.PP
The recommended minimum FIFO size for running this pipeline is 4 MBytes.
As the default FIFO size is 4 MB, the 
.B fs=
option needs to be present only if you want to use a different FIFO size.
If your system is loaded, you should run mkisofs in the real-time class too.
To raise the priority of 
.B mkisofs
replace the command
.PP
    mkisofs \-R /master/tree
.br
by
.br
    priocntl \-e \-c RT \-p 59 mkisofs \-R /master/tree
.sp
on Solaris and by
.sp
    nice \-\-18 mkisofs \-R /master/tree
.sp
on systems that do not have
.BR "UNIX International" -compliant
real-time scheduling.
.PP
Cdrecord runs at priority 59 on Solaris, you should run mkisofs
at no more than priority 58. On other systems, you should run mkisofs
at no less than nice \-\-18.
.PP
Creating a CD-ROM without file system image on disk has been tested
on a Sparcstation-2 with a Yamaha CDR-400. It did work up to quad speed
when the machine was not loaded.
A faster machine may be able to handle quad speed also in the loaded case.

.PP
To handle drives that need to know the size of a track before starting to write,
first run
.PP
    mkisofs \-R \-quiet \-print\-size /master/tree
.PP
and then run
.PP
    mkisofs \-R /master/tree | cdrecord \-v \-dao speed=2 dev=2,0 tsize=XXXs \-
.PP
where 
.I XXX
is replaced by the output of the previous run of mkisofs.

.PP
.SS "Setting drive options
To set drive options without writing a disk (e.g. to switch a drive
to single-session mode), run
.PP
    cdrecord dev=2,0 \-setdropts driveropts=singlesession
.PP
If you like to do this when no disk is in the drive, call
.PP
    cdrecord dev=2,0 \-force \-setdropts driveropts=singlesession

.SH ENVIRONMENT
.TP
.B CDR_DEVICE
This may either hold a device identifier that is suitable to the open
call of the SCSI transport library or a label in the file /etc/default/cdrecord.
.TP
.B CDR_SPEED
Sets the default speed value for writing (see also 
.B \-speed
option).
.TP
.B CDR_FIFOSIZE
Sets the default size of the FIFO (see also 
.BR fs= #
option).
.TP
.B CDR_FORCERAWSPEED
If this environment variable is set, 
.B cdrecord
will allow you to write at the full RAW encoding speed a single CPU supports.
This will create high potential of buffer underruns. Use with care.
.TP
.B CDR_FORCESPEED
If this environment variable is set, 
.B cdrecord
will allow you to write at the full DMA speed the system supports.
There is no DMA reserve for reading the data that is to be written from disk.
This will create high potential of buffer underruns. Use with care.
.sp
If this environment variable is set to the value
.BR any ,
.B cdrecord
allows to write at any speed even though it may fail later with a buffer underrun.
.TP
.B RSH
If the 
.B RSH
environment is present, the remote connection will not be created via
.BR rcmd (3)
but by calling the program pointed to by
.BR RSH .
Use e.g. 
.BR RSH= /usr/bin/ssh
to create a secure shell connection.
.sp
Note that this forces 
.B cdrecord
to create a pipe to the 
.B rsh(1)
program and disallows
.B cdrecord
to directly access the network socket to the remote server.
This makes it impossible to set up performance parameters and slows down
the connection compared to a 
.BR root -initiated
.B rcmd(3)
connection.
.TP
.B RSCSI
If the 
.B RSCSI
environment is present, the remote SCSI server will not be the program
.B /opt/schily/sbin/rscsi
but the program pointed to by
.BR RSCSI .
Note that the remote SCSI server program name will be ignored if you log in
using an account that has been created with a remote SCSI server program as
login shell.

.SH EXIT STATUS
The following exit codes are used:
.TP
.B 0
No error appeared.
.TP
.B \-1
A specific error appeared. This may be a usage error caused by an illegal command line
or another error with a problem specific error message from
.BR cdrecord .
.TP
.B \-2
An unspecified error appeared during the process of talking to the drive.
See SCSI error message for more informations. The section
.B DIAGNOSTICS
below contains an explanation on how to read SCSI error messages.
.TP
other
The
.B errno
value from a failed system call.
.LP
Note that older operating systems and older shells may not support the full 32 bit
range of the exit code
and mask the value with 0xFF. This results in shortened exit codes in the range
.BR 0 .. 255
where
.B \-1
is mapped to
.BR 255 .

.SH FILES
.TP
.B /etc/default/cdrecord
Default values can be set for the following options in /etc/default/cdrecord.
For example:
.SM CDR_FIFOSIZE=8m
or
.SM CDR_SPEED=2
.RS
.TP
.B CDR_DEVICE
This may either hold a device identifier that is suitable to the open
call of the SCSI transport library or a label in the file /etc/default/cdrecord 
that allows to identify a specific drive on the system.
.TP
.B CDR_SPEED
Sets the default speed value for writing (see also 
.B \-speed
option).
.TP
.B CDR_FIFOSIZE
Sets the default size of the FIFO (see also 
.BR fs= #
option).
.TP
.B CDR_MAXFIFOSIZE
Sets the maximum size of the FIFO (see also 
.BR fs= #
option).
.TP
.B Any other label
is an identifier for a specific drive on the system.
Such an identifier may not contain the characters ',', '/', '@' or ':'.
.sp
Each line that follows a label contains a TAB separated list of items.
Currently, four items are recognized: the SCSI ID of the drive, the
default speed that should be used for this drive, the default FIFO size
that should be used for this drive and drive specific options. The values for 
.I speed
and
.I fifosize
may be set to \-1 to tell cdrecord to use the global defaults.
The value for driveropts may be set to "" if no driveropts are used.
A typical line may look this way:
.sp
teac1= 0,5,0	4	8m	""
.sp
yamaha= 1,6,0	\-1	\-1	burnfree
.sp
This tells
.B cdrecord
that a drive named
.I teac1
is at scsibus 0, target 5, lun 0 and should be used with speed 4 and
a FIFO size of 8 MB.
A second drive may be found at scsibus 1, target 6, lun 0 and uses the
default speed and the default FIFO size.
.RE

.TP
.B "*.inf
The
.B "*.inf
files are created by
.B cdda2wav
where
.B "*
is replaced by the actual audio file prefix.
They are read and used by
.B cdrecord
in case cdrecord was called with the
.B \-useinfo
option.
.sp
There are three general types of parameters:
.RS
.TP
.B numerical parameters
A numerical parameter is a number and directly follows the tag label
without any quoting.
.TP
.B unquoted string type parameters
An unquoted parameter is make from one or more words that directly follow the tag label.
How many words from the parameter list are used by cdrecord depends on the tag label.
.TP
.B quoted string type parameters
A string type parameter is enclosed in single quotes. The string starts
after the first single quote character that follows the tag label and
ends before the last single quote on the same line.
It needs no escape sequences in case that a single quote appears inside the string.
Any text to the right of the rightmost single quote character is ignored.
.PP
The order of the tag labels in the file is not important.
.RE
.RS
.PP
The following tag labels may appear in a 
.B "*.inf
file:
.TP
.B CDINDEX_DISCID=
The cdindex disk ID is used by the
.B musicbrainz
CD-database.
.sp
This tag label uses a quoted string type parameter.
.sp
This tag label is ignored by
.BR cdrecord .
.TP
.B CDDB_DISCID=
The cddb disk ID is used by the
.B cddb
and the
.B freedb
CD-database.
.sp
This tag label uses a numerical parameter.
.sp
This tag label is ignored by
.BR cdrecord .
.TP
.B MCN=
The Media Catalog Number (MCN) is a 13 digit number that follows UPC/EAN-13 rules.
.sp
The data is used by cdrecord to create sub-channel data.
.TP
.B ISRC=
The International Standard Recording Code (ISRC) is a 12 byte string that
is created from two uppercase characters for the country code, followed
by three uppercase characters for the owner, followed by two digits for the
year of recording followed by five digits for the recording serial number.
.sp
To increase the readability of the ISRC tag, there may be a minus sign
between every two fields of the ISRC string.
.sp
The data is used by cdrecord to create sub-channel data.
.TP
.B Albumtitle=
The
.B Album Title
is the name of the disk in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Tracktitle=
The
.B Track Title
is the name of the current track in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Albumperformer=
The
.B Album Performer
is the global name of the of the performer of the disk in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Performer=
The
.B Performer
is the name of the of the performer of the current track in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Albumsongwriter=
The
.B Album Songwriter
is the global name of the of the songwriter of the disk in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Songwriter=
The
.B Songwriter
is the name of the of the songwriter of the current track in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Albumcomposer=
The
.B Album Composer
is the global name of the of the composer of the disk in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Composer=
The
.B Composer
is the name of the of the composer of the current track in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Albumarranger=
The
.B Album Arranger
is the global name of the of the arranger of the disk in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Arranger=
The
.B Arranger
is the name of the of the arranger of the current track in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Albummessage=
The
.B Album Message
is the global message text of the disk in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Message=
The
.B Message
is the message text of the current track in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Albumclosed_info=
The
.B Album Closed_info
is the global closed info text of the disk in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Closed_info=
The
.B Closed_info
is the closed info text of the current track in the CD-Text information.
.sp
This tag label uses a quoted string type parameter.
.TP
.B Track=
The parameter contains the relative number of the current track on the original disk.
The first track always has the track number 1, a hidden track uses track number 0.
.sp
This tag label uses a numerical parameter.
.sp
This tag label is ignored by 
.B cdrecord
except when checking the the
.B Trackstart
for track #1.
.TP
.B Tracknumber=
The parameter contains the absolute number of the current track,
taken from the TOC on the original disk.
The first track on the original disk may have a number greater than 1,
a hidden track always uses track number 0.
.sp
This tag label uses a numerical parameter.
.sp
This tag label is currently ignored by 
.B cdrecord
as cdrecord assigns track numbers when compiling the disk information.
.TP
.B Trackstart=
The parameter contains the track start offset in sectors on the original disk.
If the current track becomes the first track on the new disk and if the track 
was the first track on the original disk.
.B cdrecord
uses this number to set up the offset for index 1 on the new disk.
.sp
This tag label uses a numerical parameter.
.TP
.B Tracklength=
The parameter is used by
.B cdrecord
to set up the size of the track on the new disk.
.sp
This tag label uses an unquoted string type parameter
in the form "sectors, samples".
.sp
This label is mandatory for
.BR cdrecord .
.TP
.B Pre-emphasis=
The pre-emphasis parameter controls whether the related pre-emphasis
bit in the sub-channel data is set by cdrecord.
Permitted values for this parameter are
.B yes
and
.BR no .
.sp
This tag label uses an unquoted string type parameter.
Valid values are
.B yes
and
.BR no .
.TP
.B Channels=
The parameter of this tag is the number of channels on the disk.
All CD-audio disks use stereo recording and thus a 2 is the correct parameter.
.sp
This tag label uses a numerical parameter.
.sp
This label is currently ignored by
.BR cdrecord .
.TP
.B Copy_permitted=
The parameter for this tag label contains information about the copyright state
of a track on the original disk.
.sp
This tag label uses an unquoted string type parameter.
Valid values are:
.RS
.TP
.B yes
The
.B digital copy permitted
bit is set in the TOC and in the sub-channel data.
If this bit is set, the related track is not copyright
protected and may be copied infinitely.
.TP
.B no
The
.B digital copy permitted
bit is not set in the TOC.
The
.B digital copy permitted
bit in the sub-channel data alters with 9.375 Hz.
This is called 
.BR "Serial Copy Management System (SCMS)" .
The sense of this track state is to flag that the creator
of the CD does not have the copyright permission to create
copies of the related track. The related track is copyright
protected and the creator of the CD thus is
just given the permission to create one single copy from 
fair use rights and no further copies are permitted from this source.
.TP
.B once
The
.B digital copy permitted
bit is not set in the TOC and in the sub-channel data.
The sense of this track state is to flag that the related
track is copyright protected and thus may not be coped infinitely.
One single copy from fair use rights is permitted.
.PP
Note that many CDs sold by the music industry have
.B SCMS
flagged for one or more tracks, signalling that the related
content company does not own the copyright to make copies
from this track.
.RE
.TP
.B Endianess=
The parameter for this tag is the byte order used in the 
audio data file that was created for this track.
.sp
This tag label uses an unquoted string type parameter.
Valid values are
.B little
and
.BR big .
.sp
This label is ignored by
.B cdrecord
as the endianess is retrieved from the audio file format.
.TP
.B Index=
The parameter list for this tag is a list of numbers that
are sector numbers counting relatively to the logical beginning of the track 
(which always is at index #1). As any track needs to have an entry
for index #1, the first entry in the list is always 0.
If more entries are present for this tag, there are more offset values
that correspond to index values greater than 1.
.sp
This tag label uses an unquoted string type parameter
that contains a list of space separated index offset numbers.
.TP
.B Index0=
The parameter for this tag is a number that represents the number
of sectors relatively to the beginning (index #1) of this track.
This number identifies where index #0 of the
next track begins. It the parameter is set to -1, the next track has
no index #0, resulting in pregap size 0 for the next track.
.sp
Note that
.B cdrecord
strictly follows the CD-standard that defines that the logical beginning of
a track is at the location where index #1 starts in this track.
If index #0 for track
.B n
contains audio data, the related audio data is a logical part of track
.BR "n-1" .
.sp
This tag label uses a numerical parameter.
.TP
.B MD5-offset=
The parameter for this tag is the byte offset where the raw audio
data begins in the related audio file.
.sp
This tag label uses a numerical parameter.
.sp
This label is ignored by
.BR cdrecord .
.TP
.B MD5-size=
The parameter for this tag is the number of bytes of raw audio data
in the related audio file.
.sp
This tag label uses a numerical parameter.
.sp
This label is ignored by
.BR cdrecord .
.TP
.B MD5-sum=
The parameter for this tag is the md5 sum for the raw audio data in
the related audio file.
.sp
This tag label uses a numerical parameter.
.sp
This label is ignored by
.BR cdrecord .
.RE

.TP
.B *.cue
The
.B "*.cue
files are CD-structure description files introduced by
.BR CDRWIN .
They are read and used by
.B cdrecord
in case cdrecord was called with the
.BI cuefile= name.cue
option.
.sp
The following commands are supported in CUE files:
.RS
.TP
.BI ARRANGER " arranger-string
This command is used to specify the name of a arranger for a disk that
includes CD-Text enhancements.
.sp
The parameter is the name of a arranger. If the string contains any spaces,
it must be enclosed in quotation marks.
.sp
If the 
.B ARRANGER
command
appears before any
.B TRACK
command, the string parameter will be encoded as the arranger of the entire disk.
If the
.B ARRANGER
command appears after a
.B TRACK
command, the string parameter will be encoded the the arranger of the current track.
.sp
This command is only accepted if the
.B cdrecord
specific CUE extensions are permitted.
.TP
.BI CATALOG " media-catalog-number
This command is used to specify the disc's
.BR "Media Catalog Number" .
The
.I media-catalog-number
is a 13 digit number that follows UPC/EAN-13 rules.
.sp
This command can appear only once in the CUE SHEET file.
It must appear before any
.B TRACK
command.
.TP
.BI CDTEXTFILE " filename
This command is used to specify the name of a file that contains binary
encoded CD-Text information.
.B CDRWIN
only accepts headerless binary encoded CD-Text information, but
.B cdrecord
also accepts binary encoded CD-Text information with an MMC-compliant header.
The CD-Text information is ignored by
.B cdrecord
unless the
.B \-text
option is used.
.sp
If the filename contains spaces, it must be enclosed in quotation marks.
.TP
.BI COMPOSER " composer-string
This command is used to specify the name of a composer for a disk that
includes CD-Text enhancements.
.sp
The parameter is the name of a composer. If the string contains any spaces,
it must be enclosed in quotation marks.
.sp
If the 
.B COMPOSER
command
appears before any
.B TRACK
command, the string parameter will be encoded as the composer of the entire disk.
If the
.B COMPOSER
command appears after a
.B TRACK
command, the string parameter will be encoded the the composer of the current track.
.sp
This command is only accepted if the
.B cdrecord
specific CUE extensions are permitted.
.TP
.BI FILE " filename filetype"
This command is used to specify a data or audio file that contains data
to be written to the medium.
.sp
If the filename contains spaces, it must be enclosed in quotation marks.
.sp
The following values are allowed for the file type parameter:
.RS
.TP 12
.B BINARY
Intel binary file (LSB first)
.TP
.B MOTOTOLA
Motorola binary file (MSB first)
.TP
.B AIFF
Audio AIFF file
.TP
.B WAVE
Audio WAVE file
.TP
.B MP3
Audio MP3 file
.TP
.B AU
Audio AU file
(only permitted if
.B cdrecord
CUE extensions are enabled)
.TP
.B OGG
Audio OGG file
(only permitted if
.B cdrecord
CUE extensions are enabled)
.PP
All audio files (WAVE, AIFF, MP3, AU and OGG) must be in 44100 Hz 16 bit
stereo format.
MP3 and OGG is currently unsupported.
.PP
If an audio file is not an exact multiple of a CDROM sector (2352 bytes), then
is is padded with zeroes to fill up to the needed size.
.PP
All 
.B FILE
commands need to be before a related
.B TRACK
command and after the last
.B INDEX
command or
.B POSTGAP
command for the previous track.
.PP
If the 
.B cdrecord
specific CUE extensions are enabled, then a 
.B FILE
command may also appear between an
.B INDEX 00
and an
.B INDEX 01
command.
This allows to let the user create one file per track where the file
starts at
.B INDEX 01
of the track and ends after
.B INDEX 00
of the following track.
In this case, no
.B FILE
command is allowed before the related
.B TRACK
command.
.RE
.TP
.BI FLAGS " flags
This command is used to set special subcode flags within a track.
.sp
The following flags are supported:
.RS
.TP 12
.B DCP
Digital copy permitted
.TP
.B 4CH
Four channel audio
.TP
.B PRE
Pre-emphasis enabled (audio tracks only)
.TP
.B SCMS
Serial copy management system (not supported by all recorders)
.PP
More than one flag type argument may appear after the FLAGS command (e.g
FLAGS DCP PRE).
.PP
The
.B FLAGS
command must appear after a
.B TRACK
command but before any
.B INDEX
command.
Only one
.B FLAGS
command is allower per
.B TRACK command.
.PP
The fourth subcode flag that marks data tracks is set automatically for data tracks.
.RE
.TP
.BI INDEX " number mm:ss:ff
This command is used to specify indexes within a track.
.sp
The first parameter is the index number in the range 0-99.
.sp
The second parameter is a relative time in minutes,
seconds and frames (there are 75 frames/second).
.sp
All index numbers must be between 0 and 99 inclusive.
The first index for a track must be either 0 or 1 with all
indexes being sequential to the first one.
The first index for a file must start at 00:00.00.
.RS
.TP 10
.B INDEX 00
specifies the starting time of the
.B pregap
of the track.
.TP
.B INDEX 01
specifies the starting time of the track.
This is the index that is stored in the table of content for the disk
as the track start.
.TP
.B INDEX > 1
specifies a subindex within a track.
.RE
.TP
.BI ISRC " recording code
This command is used to specify the
.B "International Standard Recording Code (ISRC)
of a track. This is a code that should exist for all
commercial audio tracks.
.sp
The ISRC code must be 12 characters in length.
The first two characters
are characters that are from the two character country code.
The next three characters are alphanumeric and describe the
studio code.
The next two characters are the last two digits from the
recording year.
The last 5 characters are digits that form a serial number that
is unique for the same studio and year.
.sp
If 
.B cdrecord
specific CUE extensions are permitted, the four fields of the ISRC
may be separated by a minus sign.
.sp
If the
.B ISRC
command is used, it must appear after a
.B TRACK
command but before any
.B INDEX
command.
.TP
.BI MESSAGE " message-string
This command is used to specify the test of a message for a disk that
includes CD-Text enhancements.
.sp
The parameter is the test of a message. If the string contains any spaces,
it must be enclosed in quotation marks.
.sp
If the 
.B MESSAGE
command
appears before any
.B TRACK
command, the string parameter will be encoded as the message of the entire disk.
If the
.B MESSAGE
command appears after a
.B TRACK
command, the string parameter will be encoded the the message of the current track.
.sp
This command is only accepted if the
.B cdrecord
specific CUE extensions are permitted.
.TP
.BI PERFORMER " performer-string
This command is used to specify the name of a performer for a disk that
includes CD-Text enhancements.
.sp
The parameter is the name of the performer. If the string contains any spaces,
it must be enclosed in quotation marks.
.sp
If the 
.B PERFORMER
command
appears before any
.B TRACK
command, the string parameter will be encoded as the performer of the entire disk.
If the
.B PERFORMER
command appears after a
.B TRACK
command, the string parameter will be encoded the the performer of the current track.
.TP
.BI POSTGAP " mm:ss:ff
This command is used to specify the length of a postgap at the end of a track.
The postgap data is generated internally by
.BR cdrecord .
No data is consumed from the current data file.
.sp
The parameter specifies the postgap length in minutes, seconds and frames.
.sp
The 
.B POSTGAP
command must appear after all
.B INDEX
commands for the current track.
Only one
.B POSTGAP
command is allowed per track.
.TP
.BI PREGAP " mm:ss:ff
This command is used to specify the length of a pregap at the beginning
of a track. 
The pregap data is generated internally by
.BR cdrecord .
No data is consumed from the current data file.
.sp
The parameter specifies the postgap length in minutes, seconds and frames.
.sp
The 
.B PREGAP
command must appear after a
.B TRACK
command but before any
.B INDEX
command.
Only one
.B PREGAP
command is allowed per track.
.TP
.BI REM " comment
This command is used to put comments into a CUE file.
.sp
The text that appears in the line after a 
.B REM
command is usually ignored. There is an exception: The special
comment
.B "REM CDRTOOLS
is used to enable
.B cdrecord
specific CUE extensions in the parser.
.TP
.BI SONGWRITER " songwriter-string
This command is used to specify the name of a songwriter for a disk that
includes CD-Text enhancements.
.sp
The parameter is the name of a songwriter. If the string contains any spaces,
it must be enclosed in quotation marks.
.sp
If the 
.B SONGWRITER
command
appears before any
.B TRACK
command, the string parameter will be encoded as the songwriter of the entire disk.
If the
.B SONGWRITER
command appears after a
.B TRACK
command, the string parameter will be encoded the the songwriter of the current track.
.TP
.BI TITLE " title-string
This command is used to specify a title for a disk that
includes CD-Text enhancements.
.sp
The parameter is the title for a track or for the disk. If the string contains any spaces,
it must be enclosed in quotation marks.
.sp
If the 
.B TITLE
command
appears before any
.B TRACK
command, the string parameter will be encoded as the title of the entire disk.
If the
.B TITLE
command appears after a
.B TRACK
command, the string parameter will be encoded the the title of the current track.
.TP
.BI TRACK " number datatype
This command is used to start a new
.BR TRACK .
.sp
The first parameter is a track number in the range 1-99.
.sp
The second parameter specifies the track data type.
.sp
The following datatypes are permitted:
.RS
.TP 12
.B AUDIO
Audio/Music (2352) 
.TP
.B CDG
Karaoke CD+G (2448) 
.TP
.B MODE1/2048
CDROM Mode1 Data (cooked) 
.TP
.B MODE1/2352
CDROM Mode1 Data (raw) 
.TP
.B MODE2/2336
CDROM-XA Mode2 Data 
.TP
.B MODE2/2352
CDROM-XA Mode2 Data 
.TP
.B CDI/2336
CDI Mode2 Data 
.TP
.B CDI/2352
CDI Mode2 Data 
.PP
All track numbers must be between 1 and 99 inclusive.
The first track number can be greater than one, but all track numbers
after the first must be sequential.
There must be at least one track per file.
.RE
.RE

.SH SEE ALSO
.BR cdda2wav (1),
.BR readcd (1),
.BR scg (7),
.BR fbk (7),
.BR mkisofs (8),
.BR rcmd (3),
.BR ssh (1).

.SH NOTES
.PP
Not all options described in this manual may be supported by the OpenSource variant
of cdrecord. Cdrecord issues a warning if an attempt is made to use an option
that has been disabled in the OpenSource variant.
.PP
On Solaris before Solaris 10 Update 1,
you need to stop the volume management if you like to use the USCSI
fallback SCSI transport code. Even things like 
.B "cdrecord -scanbus
will not work if the volume management is running.
.PP
Disks made in 
.B "Track At Once 
mode are not suitable as a master for direct mass production by CD-manufacturers.
You will need the 
.B "disk at once
option to record such disks.
Nevertheless the disks made in
.B "Track At Once 
will normally be read in all CD-players. Some old
audio CD-players however may produce a two second click between two audio tracks.
.PP
The minimal size of a track is 4 seconds or 300 sectors. If you write 
smaller tracks, the CD-recorder will add dummy blocks. This is not an
error, even though the SCSI-error message looks this way.
.PP
.B Cdrecord
has been tested on an upgraded Philips CDD-521 recorder at single and 
double speed on a SparcStation 20/502 with no problems, slower computer systems
should work also. 
The newer Philips/HP/Plasmon/Grundig
drives as well as Yamaha CDR-100 and CDR-102 work also. The Plasmon RF-4100
works, but has not been tested in multi-session.
A Philips CDD-521 that has not been upgraded will not work.
The Sony CDU-924 has been tested, but does not support XA-mode2 in hardware.
The Sony therefore cannot create conforming multi-session disks.
The Ricoh RO-1420C works, but some people seem to have problems to 
use them with speed=2, try speed=0 in this case.
.PP
The Yamaha CDR-400 and all new SCSI-3/mmc conforming drives are supported
in single and multi-session.
.PP
You should run several tests in all supported speeds of your drive with the
.B \-dummy
option turned on if you are using 
.B cdrecord
on an unknown system. Writing a CD is a real-time process. 
.B NFS
will not always deliver constantly the needed data rates.
If you want to use 
.B cdrecord 
with CD-images that are located on a
.B NFS
mounted filesystem, be sure that the FIFO size is big enough.
The author used
.B cdrecord 
with medium load on a SS20/502 and even at quad speed 
on a Sparcstation-2 which was heavily loaded, 
but it is recommended to leave the system
as lightly loaded as possible while writing a CD.
If you want to make sure that buffer underruns are not
caused by your source disk, you may use the command
.PP
.B "    cdrecord \-dummy dev=2,0 padsize=600m /dev/null
.PP
to create a disk that is entirely made of dummy data.
.B Cdrecord
needs to run as root to get access to the 
.B /dev/scg?
device nodes and to be able to lock itself into memory.
.PP
If you don't want to allow users to become root on your system,
.B cdrecord
may safely be installed suid root. This allows all users or a group of
users with no root privileges to use 
.B cdrecord.
.B Cdrecord 
in this case checks if the real user would have been able to read 
the specified files.
To give all users access to use 
.B cdrecord, 
enter:
.PP
	chown root /opt/schily/bin/cdrecord
.br
	chmod 4711 /opt/schily/bin/cdrecord
.PP
To give a restricted group of users access to cdrecord enter:
.PP
	chown root /opt/schily/bin/cdrecord
.br
	chgrp cdburners /opt/schily/bin/cdrecord
.br
	chmod 4710 /opt/schily/bin/cdrecord
.PP
and add a group 
.I cdburners
on your system.
.PP
Never give write permissions for non root users to the 
.I /dev/scg?
devices unless you would allow anybody to read/write/format
all your disks.
.PP
You should not connect old drives that do not support
disconnect/reconnect to either the SCSI bus that is connected to the
CD-recorder or the source disk.
.PP
A Compact Disc can have no more than 99 tracks.
.PP
When creating a disc with both audio and data tracks, 
the data should be on track 1 otherwise you should create
a CDplus disk which is a multi-session disk with the first session 
containing the audio tracks and the following session containing the data track.
.PP
Many operating systems are not able to read more than a single data track, or
need special software to do so.
.PP
More information on the SCSI command set of a HP CD-recorder can be found at:
.PP
	http://www.hp.com/isgsupport/cdr/index.html
.PP
If you have more information or SCSI command manuals for currently 
unsupported CD/DVD/BluRay-recorders please contact the author.
.PP
The Philips CDD 521 CD-recorder (even in the upgraded version)
has several firmware bugs. Some of them will
force you to power cycle the device or to reboot the machine.
.PP
When using 
.B cdrecord
with the 
.BR "Linux SCSI generic driver" ,
you should note that 
.B cdrecord
uses a layer, that tries to emulate the functionality of the scg driver
on top of the drives of the local operating system.
Unfortunately, the sg driver on 
.B Linux
has several flaws:
.TP
\(bu
It cannot see if a SCSI command could not be sent at all.
.TP
\(bu
It cannot get the SCSI status byte. 
.B Cdrecord
for that reason cannot report failing SCSI commands in some
situations.
.TP
\(bu
It cannot get real DMA count of transfer. 
.B Cdrecord
cannot tell you if there is a DMA residual count.
.TP
\(bu
It cannot get number of bytes valid in auto sense data.
.B Cdrecord
cannot tell you if device transfers no sense data at all.
.TP
\(bu
It fetches too few data in auto request sense (CCS/SCSI-2/SCSI-3 needs >= 18).
.PP
The FIFO percent output is computed just after a block of data has been written
to the CD/DVD/BluRay-recorder. For this reason, there will never be 100% FIFO fill ratio
while the FIFO is in streaming mode.

.SH DIAGNOSTICS
.PP
You have 9 seconds to type ^C to abort 
.B cdrecord
after you see the message:
.PP
Starting to write CD at speed %d in %s mode for %s session.
.PP
A typical error message for a SCSI command looks like:
.sp
.RS
.nf
cdrecord: I/O error. test unit ready: scsi sendcmd: no error
CDB:  00 20 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 25 00 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x25 Qual 0x00 (logical unit not supported) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.002s timeout 40s
.fi
.RE
.sp
The first line gives information about the transport of the command.
The text after the first colon gives the error text for the system call
from the view of the kernel. It usually is:
.B "I/O error
unless other problems happen. The next words contain a short description for
the SCSI command that fails. The rest of the line tells you if there were
any problems for the transport of the command over the SCSI bus.
.B "fatal error
means that it was not possible to transport the command (i.e. no device present
at the requested SCSI address).
.PP
The second line prints the SCSI command descriptor block for the failed command.
.PP
The third line gives information on the SCSI status code returned by the 
command, if the transport of the command succeeds. 
This is error information from the SCSI device.
.PP
The fourth line is a hex dump of the auto request sense information for the 
command.
.PP
The fifth line is the error text for the sense key if available, followed
by the segment number which is only valid if the command was a
.I copy
command. If the error message is not directly related to the current command,
the text
.I deferred error
is appended.
.PP
The sixth line is the error text for the sense code and the sense qualifier if available.
If the type of the device is known, the sense data is decoded from tables
in
.IR scsierrs.c " .
The text is followed by the error value for a field replaceable unit.
.PP
The seventh line prints the block number that is related to the failed command
and text for several error flags. The block number may not be valid.
.PP
The eighth line reports the timeout set up for this command and the time
that the command really needed to complete.
.PP
The following message is not an error:
.sp
.RS
.nf
Track 01: Total bytes read/written: 2048/2048 (1 sectors).
cdrecord: I/O error. flush cache: scsi sendcmd: no error
CDB:  35 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: F0 00 05 80 00 00 27 0A 00 00 00 00 B5 00 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0xB5 Qual 0x00 (dummy data blocks added) Fru 0x0
Sense flags: Blk \-2147483609 (valid)
cmd finished after 0.002s timeout 40s
.fi
.RE
.sp
It simply notifies that a track that is smaller than the minimum size has been
expanded to 300 sectors.
.SH BUGS
.PP
.B Cdrecord
has even more options than 
.BR ls .
.PP
There should be a recover option to make disks usable, that have been written
during a power failure.

.SH CREDITS
.PP
.TP 15
Bill Swartz	(Bill_Swartz@twolf.com)
.br
For helping me with the TEAC driver support
.TP
Aaron Newsome	(aaron.d.newsome@wdc.com)
.br
For letting me develop Sony support on his drive
.TP
Eric Youngdale	(eric@andante.jic.com)
.br
For supplying mkisofs
.TP
Gadi Oxman	(gadio@netvision.net.il)
.br
For tips on the ATAPI standard
.TP
Finn Arne Gangstad	(finnag@guardian.no)
.br
For the first FIFO implementation.
.TP
Dave Platt	(dplatt@feghoot.ml.org)
.br
For creating the experimental packet writing support,
the first implementation of CD-RW blanking support,
the first .wav file decoder 
and many nice discussions on cdrecord.
.TP
Chris P. Ross (cross@eng.us.uu.net)
.br
For the first implementation of a BSDI SCSI transport.
.TP
Grant R. Guenther   (grant@torque.net)
.br
For creating the first parallel port transport implementation
for Linux.
.TP
Kenneth D. Merry (ken@kdm.org)
.br
for providing the CAM port for FreeBSD together with Michael Smith (msmith@freebsd.org)
.TP
Heiko Ei\*sfeldt (heiko@hexco.de)
for making libedc_ecc available (needed to write RAW data sectors).

.SH "MAILING LISTS
If you want to actively take part on the development of cdrecord,
you may join the developer mailing list via this URL:
.sp
.B
https://lists.sourceforge.net/lists/listinfo/cdrtools-developers

.SH AUTHOR
.nf
J\*org Schilling
Seestr. 110
D-13353 Berlin
Germany
.fi
.PP
Additional information can be found on:
.br
http://cdrecord.org/private/cdrecord.html
.PP
If you have support questions, send them to:
.PP
.B
cdrtools-support@lists.sourceforge.net
.PP
If you have definitely found a bug, send a mail to:
.PP
.B
cdrtools-developers@lists.sourceforge.net
.br
or
.B
joerg.schilling@fokus.fraunhofer.de
.PP
To subscribe, use:
.PP
.B
https://lists.sourceforge.net/lists/listinfo/cdrtools-developers
.br
or
.B
https://lists.sourceforge.net/lists/listinfo/cdrtools-support
.br
.ne 7
.SH "INTERFACE STABILITY
The interfaces provided by 
.B cdrecord
are designed for long term stability.
As
.B cdrecord
depends on interfaces provided by the underlying operating system,
the stability of the interfaces offered by
.B cdrecord
depends on the interface stability of the OS interfaces. 
Modified interfaces in the OS may enforce modified interfaces
in 
.BR cdrecord .