# loop device 的數目

Linux kernel 預設的 loop device 數目最多只可以同時使用 8 個 loop devices,

因此可以修改核心 $src/linux/drives/block/loop.c

將 max\_loop 的值，由 8 改為所需要的值，範圍在1 \~ 255

並且重新編譯核心即可。


---

# 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://applezu.netdpi.net/linux-prog/limit-of-loop-device.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.
