分类: LINUX
2014-10-01 09:53:10
1、确定设备号(即刻录机设备号):
~ $ cdrecord dev=ATAPI -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J?rg Schilling
cdrecord: Warning: Running on Linux-2.6.18-gentoo
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'PIONEER ' 'DVD-RW DVR-110 ' '1.37' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
可见刻录机设备号为 ATAPI:0,0,0
2、制作ISO: mkisofs -V LabelName -J -jcharset=utf8 -r -o /home/TargetImage.iso /home/my-data-dir
这样做出来的ISO可以刻录在CD-RW DVD-RW上。
3、刻录:
a、用cdrecord刻录 CD:cdrecord dev=ATAPI:0,0,0 speed=4 fs=32m -v -eject [-dummy] /home/TargetImage.iso
b、用growisofs刻录DVD: growisofs -dvd-compat -Z /dev/dvd -V LabelName -r -J -jcharset=utf8 /home/data-dir
用growisofs刻录DVD 镜像: growisofs -dvd-compat -Z /dev/dvd=TargetImage.iso
4、清空CD-RW: cdrecord dev=ATAPI:0,0,0 speed=4 -v blank=fast
有时候用blank=fast可能无法进行,可以尝试用blank=all,不过将花费更多的时间。