# 制作文件系统镜像

```
sudo mkdir fs
sudo dd if=/dev/zero of=fs.img bs=1M count=4096
sudo mkfs.ext4 fs.img
sudo mount fs.img fs/
sudo cp -rfp src-fs/* fs/
sudo umount fs/
# check
sudo e2fsck -p -f fs.img
sudo resize2fs -M fs.img
```


---

# 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://dev2ero.gitbook.io/notes-cs/cyber-security/xin-xi-an-quan-shi-jian/iot-huan-jing-da-jian/iot/zhi-zuo-wen-jian-xi-tong-jing-xiang.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.
