---
title: "Linux命令刻录光盘"
author: "hecal"
date: "2008-06-19T15:02:00Z"
tags: []
slug: "linux"
draft: false
lastmod: "2011-12-07T18:09:44Z"
id: 1296512
url: "https://hecal.iteye.com/blog/1296512"
---

1\. 通过cdrecord -scanbus命令查看光驱。

\[root@localhost software]# cdrecord -scanbus

Cdrecord-Clone 2.01a32-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 J旦rg Schilling  
Note: This version is an unofficial (modified) version with DVD support  
Note: and therefore may have bugs that are not present in the original.  
Note: Please send bug reports or support requests to [http://bugzilla.redhat.com/bugzilla](http://bugzilla.redhat.com/bugzilla)  
Note: The author of cdrecord should not be bothered with problems in this version.  
Linux sg driver version: 3.1.25  
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.c](mailto:'@%28#%29scsi-linux-sg.c) 1.83 04/05/20 Copyrig  
ht 1997 J. Schilling').  
scsibus0:  
0,0,0 0) 'ATA ' 'WDC WD800JD-75MS' '10.0' Disk  
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) *  
scsibus2:  
2,0,0 200) 'SONY ' 'DVD RW DRU-840A ' 'SS01' Removable CD-ROM  
2,1,0 201) *  
2,2,0 202) *  
2,3,0 203) *  
2,4,0 204) *  
2,5,0 205) *  
2,6,0 206) *  
2,7,0 207) *

上述的0,0,0是cd光驱，2,0,0是刻录光驱。

2\. 生成镜像文件

dd if=/dev/cdrom of=/tmp/luan.iso

3.刻录文件

cdrecord dev=2,0,0 speed=8 fs=8m -v -eject /tmp/luan.iso