> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/cdrecord.md).

# cdrecord

Linux系统下光盘刻录功能命令

## 补充说明

**cdrecord命令** 用于Linux系统下光盘刻录，它支持cd和DVD格式。linux下一般都带有cdrecord软件。

### 语法

```
cdrecord(选项)(参数)
```

### 选项

```
-v：显示刻录光盘的详细过程；
-eject：刻录完成后弹出光盘；
speed=<刻录倍速>：指定光盘刻录的倍速；
dev=<刻录机设备号>：指定使用“-scanbus”参数扫描到的刻录机的设备号；
-scanbus：扫描系统中可用的刻录机。
```

### 参数

ISO文件：指定刻录光盘使用的ISO映像文件。

### 实例

查看系统所有 CD-R(w) 设备：

```
cdrecord -scanbus
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
```

用iso文件刻录一张光盘：

```
cdrecord -v -eject speed=4 dev=0,3,0 backup.iso
```

参数解释

* -v：显示刻录光盘的详细过程
* -eject：刻完自动弹出光盘
* speed=4 dev=0,3,0：四速刻录到HP CD-writer设备上。

擦写光驱：

```
cdrecord --dev=0,3,0 --blank=fast
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/cdrecord.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
