mkisofs and cdrecord to burn CD / DVD Console This short tutorial was tested on CentOS 5 but it works for any version of Linux, in the end the console is the same for everyone.
console to burn, we need have a CD burner / DVD, Enough CD / DVD where you burn, what we burn and install the following programs below.
# yum-y install cdrecord mkisofs need to create one. ISO of what we want to burn. For this we use the mkisofs command
# mkisofs-r-l-o imagen_que_quiero_crear.iso / home / data_que_quiero_quemar More or less we will leave the following information
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem, use
-input-charset to override.
1.98% done, Estimated finish Thu July 3 10:28:10 2008
3.96% done, estimate finish Thu Jul 3 10:28:10 2008
5.94% done, estimate finish Thu Jul 3 10:28:10 2008
7.92% done, estimate finish Thu Jul 3 10:28:10 2008
9.89% done, estimate finish Thu Jul 3 10:28:10 2008
11.87% done, estimate finish Thu Jul 3 10:28:10 2008
13.85% done, estimate finish Thu Jul 3 10:28:10 2008
15.83% done, estimate finish Thu Jul 3 10:28:10 2008
17.80% done, estimate finish Thu Jul 3 10:28:10 2008
19.79% done, estimate finish Thu Jul 3 10:28:10 2008
21.76% done, estimate finish Thu Jul 3 10:28:10 2008
23.74% done, estimate finish Thu Jul 3 10:28:10 2008
25.72% done, estimate finish Thu Jul 3 10:28:10 2008
27.70% done, estimate finish Thu Jul 3 10:28:10 2008
29.67% done, estimate finish Thu Jul 3 10:28:10 2008
31.66% done, estimate finish Thu Jul 3 10:28:10 2008
33.63% done, estimate finish Thu Jul 3 10:28:10 2008
35.61% done, estimate finish Thu Jul 3 10:28:10 2008
37.59% done, estimate finish Thu Jul 3 10:28:10 2008
39.57% done, estimate finish Thu Jul 3 10:28:10 2008
41.54% done, estimate finish Thu Jul 3 10:28:10 2008
43.52% done, estimate finish Thu Jul 3 10:28:10 2008
45.50% done, estimate finish Thu Jul 3 10:28:10 2008
47.48% done, estimate finish Thu Jul 3 10:28:10 2008
49.46% done, estimate finish Thu Jul 3 10:28:10 2008
51.44% done, estimate finish Thu Jul 3 10:28:10 2008
53.41% done, estimate finish Thu Jul 3 10:28:10 2008
55.39% done, estimate finish Thu Jul 3 10:28:10 2008
57.37% done, estimate finish Thu Jul 3 10:28:10 2008
59.35% done, estimate finish Thu Jul 3 10:28:11 2008
61.33% done, estimate finish Thu Jul 3 10:28:11 2008
63.31% done, estimate finish Thu Jul 3 10:28:11 2008
65.28% done, estimate finish Thu Jul 3 10:28:11 2008
67.26% done, estimate finish Thu Jul 3 10:28:11 2008
69.24% done, estimate finish Thu Jul 3 10:28:11 2008
71.22% done, estimate finish Thu Jul 3 10:28:11 2008
73.20% done, estimate finish Thu Jul 3 10:28:11 2008
75.18% done, estimate finish Thu Jul 3 10:28:11 2008
77.15% done, estimate finish Thu Jul 3 10:28:11 2008
79.13% done, estimate finish Thu Jul 3 10:28:11 2008
81.11% done, estimate finish Thu Jul 3 10:28:11 2008
83.09% done, estimate finish Thu Jul 3 10:28:11 2008
85.06% done, estimate finish Thu Jul 3 10:28:11 2008
87.05% done, estimate finish Thu Jul 3 10:28:11 2008
89.02% done, estimate finish Thu Jul 3 10:28:11 2008
91.00% done, estimate finish Thu Jul 3 10:28:11 2008
92.98% done, estimate finish Thu Jul 3 10:28:11 2008
94.96% done, Estimated finish Thu July 3
10:28:11 2008 96.93% done, Estimated finish Thu July 3
10:28:11 2008 98.92% done, Estimated finish Thu July 3 10:28:11 2008 Total translation
table size: 0 Total Rockridge
attributes bytes: 264
Total directory bytes: 0 Path table
size (bytes): 10 Max brk space
252750 0 Used extents Written (493 MB) indicates that you have not created a image of 493 MB
burn Before we first need to identify the device (in this case the burner) then scan the device
# cdrecord-scanbus Linux sg driver version: 3.5.1927 Using
libscg version 'Schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (Schily - Red Hat-scsi-linux-1.83-RH sg.c'@(#)-scsi-linux-1.83 04/05/1920 sg.c Copyright 1997 J. Schilling ').
scsibus4:
4,0,0 400) 'HL-DT-ST' 'DVD-RAM GSA-H55N' '1 .02 'Removable CD-ROM
4,1,0 401) * 4,2,0
402) * 4,3,0
403)
* 4,4,0 404) *
4,5,0 405) * 4,6,0
406)
* 4,7,0 407) * With this we note that our burner is identified in
4,0,0 400) 'HL-DT-ST' 'DVD-RAM GSA-H55N' '1 .02 'Removable CD-ROM proceed to burn, where dev = xxx option devemos identifier indicate in our burner, which came out in the previous step.
# cdrecord-v dev = 4,0,0 speed = 10 imagen_que_quiero_crear.iso generic SCSI-3/mmc Using CD-R/CD-RW driver (mmc_cdr).
Driver flags: MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size: 1114112 = 1088 KB Drive
DMA Speed: 129024 kB / s 733x CD 93x DVD
FIFO size: 4194304 = 4096 KB
Track 01: data 493 MB
Total size: 566 MB (56:10.02) = 252752 sectors
Lout start: 567 MB (56:12/02) = 252752 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 7
Is not unrestricted
Is not erasable
ATIP start of lead in: -11597 (97:27/28)
ATIP start of lead out: 359849 (79:59/74)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 20
Manufacturer: Princo Corporation
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 107097
Starting to write CD/DVD at speed 16 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
trackno=0
BURN-Free is ON.
Turning BURN-Free off
Performing OPC...
Starting new track at sector: 0
Track 01: 493 of 493 MB written (fifo 100%) [buf 93%] 16.4x.
Track 01: Total bytes read / written: 517632000/517632000 (252750 sectors).
Writing time: 224.775s
Average write speed 15.0x .
WAS Min drive buffer fill 90%
Fixating ... Fixating
time: 18.114s
cdrecord: fifo Had 8154 puts and 8154 gets.
cdrecord: fifo WAS 0 times empty and 8011 times full, min fill WAS
This is all our cd drive out and ready to eject.
PD: no need to be root to do all these steps.