最基本的刻錄步驟
- 要使用 cdrecord,必須先找到 CD-R(W) 裝置的裝置位址,後面dev參數要用到
#cdrecord -scanbus 顯示你的計算機上所有 CD-R(W) 裝置。 Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jorg Schilling Using libscg version 'schily-0.1' scsibus0: 0,0,0 0) * 0,1,0 1) * 0,2,0 2) * 0,3,0 3) 'HP ' 'CD-Writer+ 9200 ' '1.0c' Removable CD-ROM 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * |
- 用iso檔案(前面mkisofs生成)刻錄
cdrecord -v -eject speed=4 dev=0,3,0 backup.iso |
-v verbose -eject 刻完自動彈出CD光牒 speed=4 dev=0,3,0 :四速刻錄到dev=0,3,0上(即前面的HP CD-writer) |
擦寫光驅
cdrecord --dev=0,3,0 --blank=fast |
另一個例子
[[email protected] guan]# cdrecord --scanbus
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 J枚rg Schilling
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c1.83 04/05/20 Copyright 1997 J. Schilling').
scsibus1:
1,0,0 100) 'SAMSUNG ' 'CD-ROM SC-152A ' 'C202' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *