2013年3月31日星期日

cdrecord.exe - 刻录命令行 - 可输入 ISO文件 或 光盘

cdrecord.exe - 刻录命令行


cdrecord dev=device imagefile.iso

http://fossies.org/dox/dvdrtools-0.3.1/ 源码文档


cdrecord [ general options ][ dev=device ][ track options ] track1...trackn
支持
Orange Book CD-recorder
DVD-recorder
BluRay-recorder

记录ISO文件命令
cdrecord -v speed=2 dev=/dev/cdrom -data /var/tmp/backup.iso
cdrecord -v -eject speed=4 dev=0,3,0 backup.iso
cdrecord -v -eject speed=8 dev=/dev/cdwriter driveropts=burnfree test.iso
driveropts=burnfree 启 动防缓存用光的刻录保护技术

Device naming

-scanbus 输出所有的SCSI设备列表
-dev 后跟设备名称(scsibus/target/lun

刻录模式选项

-dummy (测试之用)
The CD/DVD/BluRay-recorder will go through all steps of the recording process, but the laser is turned off during this procedure

-multi
-sao/-dao
-tao

-raw ----- 相当于指定 -raw96r
-raw96r
2352 byte sectors plus 96 bytes of raw P-W sub-channel data resulting in a sector size of 2448 bytes

-raw96p
2352 byte sectors plus 96 bytes of packed P-W sub-channel data resulting in a sector size of 2448 bytes

-raw16
2352 byte sectors plus 16 bytes of P-Q sub-channel data resulting in a sector size of 2368 bytes.




功能选项

-abort
-atip
blank=type  清空一张盘

-checkdrive 需要指定一个光驱 (-dev 3,0,0) 已经入上光盘后

scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'MATSHITA'
Identifikation : 'DVD-R   UJ-8A8  '
Revision       : 'HB14'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc-3 DVD+R driver (mmc_dvdplusr).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE
Supported modes: PACKET SAO
/cdrecord/cdrecord: Warning: Cannot read drive buffer.
/cdrecord/cdrecord: Warning: The DMA speed test has been skipped.


-clone   
cuefile=filename  CDRWIN-compliant CUE sheet file
The *.cue files are CD-structure description files introduced by CDRWIN.

defpregap=#

driver=name  指定刻录机,驱动程序
如:driver=help 打印出所有的驱动
mmc_dvdplus         generic SCSI-3/mmc-3 DVD+R/DVD+RW driver (checks media)

mmc_dvdplusr        generic SCSI-3/mmc-3 DVD+R driver
mmc_dvdplusrw       generic SCSI-3/mmc-3 DVD+RW driver


driveropts=option list
-eject   Eject disk after doing the work
-fix
-force

-format 格式化:CD-RW/DVD-RW/DVD+RW/BD-RE disc
fs=#  Set the FIFO (ring buffer) size to #
gracetime=#  (宽限期) 开始刻录倒计时?
-ignsize
-immed
-inq
-load
-lock

mcn=med_cat_nr  Media Catalog Number
minbuf=value

-minfo/-media-info  获取记录盘信息 data type/status/Size(扇区数)
Retrieve and print information about the state of the medium

Mounted media class:      DVD
Mounted media type:       DVD+R
Disk Is not erasable
data type:                standard
disk status:              empty
session status:           empty
BG format status:         none
first track:              1
number of sessions:       1
first track in last sess: 1
last track in last sess:  1
Disk Is not unrestricted (无限制/自由的)
Disk type: DVD, HD-DVD or BD
Disk appl. code: 0

Track  Sess Type   Start Addr End Addr   Size
==============================================
    1     1 Blank  0          2295103    2295104

Next writable address:              0
Remaining writable size:            2295104



-msinfo Retrieve multi-session info in a form

-noclose
-nofix

-overburn
Allow cdrecord to write more than the official size of a medium

-packet  Set Packet writing mode
pktsize=#

-prcap
print drive capabilities for MMC compliant drives

-setdropts  the speed of the drive and the dummy flag and exit
speed=#
-text
textfile=filename
-toc

-waiti
Wait for input to become available on standard input before trying to open the SCSI driver

-useinfo


SCSI 选项

dev=target

debug=#, -d
kdebug=#, kd=#
-reset
-scanbus
-silent-s  Do not print out a status report for failed SCSI commands.
timeout=#
ts=#  maximum transfer size for a single SCSI command

-V  the verbose level in respect of SCSI command transport by one
-VV will show data buffer content in addition


TRACK 选项

-audio   CD-DA (similar to Red Book) audio format
-data    CD-ROM mode 1 (Yellow Book) format

-cdi     TOC type for the disk is set to CDI
-copy  

index=list
-isosize
isrc=ISRC_number
-mode2
-nocopy

-preemp
-nopreemp

-noshorttrack
-shorttrack

-pad
padsize=#
-nopad

pregap=#
-scms
-swab
tsize=#

-xa
-xa1
-xa2
-xamix



例子:

Replicating an Audio CD

Replicating a simple CD-ROM/DVD-ROM/BD-ROM

Replicating a CD-ROM in clone mode

Creating an Audio CD

Creating a mixed Audio-Data CD

Creating a CD-ROM/DVD-ROM/BD-ROM

Setting drive options


术语,列表:

medium 媒介物,媒质



Track At Once mode 

光盘的刻录模式:
Disc-At-Once (DAO
Track-At-Once  (TAO
Session-At-Once  (SAO

scsibus/target/lun  General SCSI addressing 


Optical(光学) disc

光碟



Rock Ridge


针对 UNIX系统的 ISO-9660文件系统 ,支持文件名字母大小写、符号字符以及长文件名 
由于兼容 ISO -9660, 所以即使操作系统不支持 Rock Ridge, 也可以通过ISO-9660 查看。


Orange Book


Orange Book is the informal name for Philips and Sony's Recordable CD Standard

CD-WO, CD-MO (Magneto-Optic), and CD-RW (ReWritable)

Published in 1990, the Orange Book is a follow-up to their Red Book CD-DA (Compact Disc - Digital Audio) specifications. 

The Orange Book is divided into two sections:
Part I deals with magneto-optical (MO) drives
Part II deals with the first recordable CD format CD-R (Compact Disc - Recordable).
Part III, released separately, describes CD-RW (Compact Disc - Rewritable)

没有评论:

发表评论