📄 cdrecord.1..txt
字号:
Creating a CD-ROM without file system image on disk has been testedon a Sparcstation-2 with a Yamaha CDR-400. It did work up to quad speedwhen the machine was not loaded.A faster machine may be able to handle quad speed also in the loaded case..PPTo record a pure CD-DA (audio) at single speed, with each track containedin a file named.IR track01.cdaudio ,.IR track02.cdaudio ,etc:.PP cdrecord \-v speed=1 dev=2,0 -audio track*.cdaudio.PPTo 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 \-audio track*.cdaudio.PPTo record a mixed-mode CD with an ISO 9660 filesystem from.I cdimage.rawon the first track, the other tracks being audio tracks from the files.IR track01.cdaudio ,.IR track02.cdaudio ,etc:.PP cdrecord \-v \-dummy dev=2,0 cdimage.raw \-audio track*.cdaudio.PPTo handle drives that need to know the size of a track before starting to write,first run.PP mkisofs -R -q -print-size /master/tree.PPand then run.PP mkisofs -R /master/tree | cdrecord speed=2 dev=2,0 tsize=XXXs -.PPwhere .I XXXis replaced by the output of the previous run of mkisofs..SH SEE ALSO.BR mkisofs (1),.BR scg (7),.BR fbk (7)..SH NOTESThe current version of.B cdrecordwill only record.B "track at onceDiscs.If the so made disks contain more than one track,they are not suitable for direct mass production by CD manufacturers.You will need the .B "disk at onceoption to record such disks.Nevertheless the disks made with.B cdrecordwill normally be read in all CD players. Some oldaudio CD players however may produce a two second click between two audio tracks..PPThe 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 anerror, even though the SCSI-error message looks this way..PP.B Cdrecordhas been tested on an upgraded Philips CDD-521 recorder at single and double speed on a SparcStation 20/502 with no problems, slower computer systemsshould work also. The newer Philips/HP/Plasmon/Grundigdrives as well as Yamaha CDR-100 and CDR-102 work also. The Plasmon RF-4100work, but has not 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..PPThe Yamaha CDR-400 and all new SCSI-3/mmc conforming drives are supportedin single and multi-session..PPYou should run several tests in all supported speeds of your drive with the.B \-dummyoption turned on if you are using .B cdrecordon an unknown system. Writing a CD is a realtime process. .B NFSwill not always deliver constantly the needed data rates.If you want to use .B cdrecord with CD-images that are located on a.B NFSmounted filesystem, be sure that the fifo size is big enough.I used.B cdrecord with 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 systemas lightly loaded as possible while writing a CD.If you want to make sure that buffer underrungs are notcaused by your source disk, you may use the command.PP.B " cdrecord -dummy dev=2,0 padsize=600m /dev/null.PPto create a disk that is entirely made of dummy data..B Cdrecordneeds to run as root to get access to the .B /dev/scg?device nodes and to be able to lock itself into memory..PPIf you don't want to allow users to become root on your system,.B cdrecordmay safely be installed suid root. This allows all users or a group ofusers 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 user access to use .B cdrecord, enter:.PP chmod 4711 /usr/local/bin/cdrecord.PPTo give a restricted group of users access to cdrecord enter:.PP chmod 4710 /usr/local/bin/cdrecord.br chgrp cdburners /usr/local/bin/cdrecord.PPand add a group .I cdburnerson your system..PPNever give write permissions for non root users to the .I /dev/scg?devices unless you would allow anybody to read/write/formatall your disks..PPYou should not connect old drives that do not supportdisconnect/reconnect to either the SCSI bus that is connected to theCD-Recorder or the source disk..PPA Compact Disc can have no more than 99 tracks..PPWhen creating a disc with both audio and data tracks, the data should be on track 1 otherwise you should createa CDplus disk which is a multi session disk with the first session containing the audio tracks and the following session containing the data track..PPMany operating systems are not able to read more than a single data track, orneed special software to do so..PPMore information on the SCSI command set of a HP CD-Recorder can be found at:.PP http://www.hp.com/isgsupport/cdr/index.html.PPIf you have more information or SCSI command manuals for currently unsupported CD-Recorders please contact the author..PPThe Philips CDD 521 CD-Recorder (even in the upgraded version)has several firmware bugs. Some of them willforce you to power cycle the device or to reboot the machine..PPWhen using .B cdrecordwith the broken .B "Linux SCSI generic driver."You should note that .B cdrecorduses a hack, that tries to emulate the functionality of the scg driver.Unfortunately, the sg driver on .B Linuxhas several severe bugs:.TP\(buIt cannot see if a SCSI command could not be sent at all..TP\(buIt cannot get the SCSI status byte. .B Cdrecordfor that reason cannot report failing SCSI commands in somesituations..TP\(buIt cannot get real DMA count of transfer. .B Cdrecordcannot tell you if there is an DMA residual count..TP\(buIt cannot get number of bytes valid in auto sense data..B Cdrecordcannot tell you if device transfers no sense data at all..TP\(buIt fetches to few data in auto request sense (CCS/SCSI-2/SCSI-3 needs >= 18)..PPThe fifo percent output is computed just after a block of data has been writtento the CD-Recorder. For this reason, there will never be 100% fifo fill,while the fifo is in streaming mode..SH DIAGNOSTICS.PPYou have 9 seconds to type ^C to abort .B cdrecordafter you see the message:.PPStarting to write CD at speed %d in %s mode for %s session..PPA typical error message for a SCSI command looks like:.sp.RS.nfcdrecord: I/O error. test unit ready: scsi sendcmd: no errorCDB: 00 20 00 00 00 00status: 0x2 (CHECK CONDITION)Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 25 00 00 00 00 00Sense Key: 0x5 Illegal Request, Segment 0Sense Code: 0x25 Qual 0x00 (logical unit not supported) Fru 0x0Sense flags: Blk 0 (not valid).fi.sp.REThe first line gives information about the transport of the command.The text after the first colon gives the error text for the system callfrom the view of the kernel. It usually is:.B "I/O errorunless other problems happen. The next words contain a short description forthe SCSI command that fails. The rest of the line tells you if there wereany problems for the transport of the command over the SCSI bus..B "fatal errormeans that it was not possible to transport the command (i.e. no device presentat the requested SCSI address)..PPThe second line prints the SCSI command descriptor block for the failed command..PPThe 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..PPThe fourth line is a hex dump of the auto request sense information for the command..PPThe fifth line is the error text for the sense key if available, followedby the segment number that is only valid if the command was a.I copycommand. If the error message is not directly related to the current command,the text.I deferred erroris appended..PPThe 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 tablesin.IR scsierrs.c " .The text is followed by the error value for a field replaceable unit..PPThe seventh line prints the block number that is related to the failed commandand text for several error flags. The block number may not be valid..PPThe following message is not an error:..sp.RS.nfTrack 01: Total bytes read/written: 2048/2048 (1 sectors).cdrecord: I/O error. flush cache: scsi sendcmd: no errorCDB: 35 00 00 00 00 00 00 00 00 00status: 0x2 (CHECK CONDITION)Sense Bytes: F0 00 05 80 00 00 27 0A 00 00 00 00 B5 00 00 00 00 00Sense Key: 0x5 Illegal Request, Segment 0Sense Code: 0xB5 Qual 0x00 (dummy data blocks added) Fru 0x0Sense flags: Blk -2147483609 (valid).fi.sp.REIt simply notifies, that a track that is smaller than the minimum size has beenexpanded to 300 sectors..SH BUGS.PP.B Cdrecordhas even more options than .BR ls ..PP.B Cdrecordcurrently only warns if the input data will not fit on the disk.If you don't abort the command you will get unpredictable results..PPThere should be an option to write index numbers for audio tracks..PPThere should be a recover option to make disks usable, that have been writtenduring a power failure..SH CREDITS.PP.TP 15Bill Swartz (Bill_Swartz@twolf.com).brFor helping me with the TEAC driver support.TPAaron Newsome (aaron.d.newsome@wdc.com).brFor letting me develop Sony support on his drive.TPEric Youngdale (eric@andante.jic.com).brFor supplying mkisofs.TPGadi Oxman (gadio@netvision.net.il).brFor tips on the ATAPI standard.TPFinn Arne Gangstad (finnag@guardian.no).brFor the first FIFO implementation..TPDave Platt (dplatt@feghoot.ml.org).brFor 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..TPChris P. Ross" (cross@eng.us.uu.net).brFor the first implementation os a BSDI SCSI rtansport..TPGrant R. Guenther (grant@torque.net).brFor creating the first parallel port transport implementationfor Linux..SH "MAILING LISTSIf you want to actively take part on the development of cdrecord,you may join the cdwriting mailing list by sending mail to:.nf.sp cdwrite-request@lists.debian.org.sp.fiand include the word .I subscribein the body.The mail address of the list is:.nf.sp cdwrite@lists.debian.org.fi.SH AUTHOR.nfJ\*org SchillingSeestr. 110D-13353 BerlinGermany.fi.PPAdditional information can be found on:.brhttp://www.fokus.gmd.de/nthp/employees/schilling/cdrecord.html.PPMail bugs and suggestions to:.PP.Bjoerg@schily.isdn.cs.tu-berlin.deor.Bjs@cs.tu-berlin.deor.Bschilling@fokus.gmd.de
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -