# 在mac上从iso镜像创建启动U盘

> 本文摘自 [在Mac上安装Gentoo Linux](https://github.com/huataihuang/cloud-atlas-draft/tree/6f3204fffc11cf006abd394631e2598d98b415c3/os/linux/gentoo/install_gentoo_on_macbook/README.md) 中有关启动U盘制作部分，专注于制作操作系统安装U盘。

```
hdiutil convert -format UDRW -o CentOS-7-x86_64-DVD-1611.img CentOS-7-x86_64-DVD-1611.iso
```

* 检查U盘挂载

```
$ df -h
...
/dev/disk2s1                        30Gi   11Mi   30Gi     1%       0          0  100%   /Volumes/U
```

* 卸载U盘

```
diskutil umountDisk /Volumes/U
```

* 执行镜像写入

```
sudo dd if=CentOS-7-x86_64-DVD-1611.img.dmg of=/dev/rdisk2 bs=10m
```


---

# Agent Instructions: 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:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/develop/mac/create_boot_usb_from_iso_in_mac.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
