> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/handbook/di-21-zhang-cun-chu/21.1.-gai-shu.md).

# 21.1.概述

本章介绍了在 FreeBSD 中使用磁盘和存储设备的方法。涉及的内容包括 SCSI 和 IDE 磁盘、CD 和 DVD 光盘、内存盘以及 USB 存储设备。

通过阅读本章，你将了解：

* 如何向 FreeBSD 系统添加额外的硬盘。
* 如何在 FreeBSD 上扩展磁盘分区的大小。
* 如何配置 FreeBSD 以使用 USB 存储设备。
* 如何在 FreeBSD 系统上使用 CD 和 DVD 光盘。
* 如何使用 FreeBSD 下的备份程序。
* 如何设置内存盘。
* 什么是文件系统快照以及如何有效地使用它们。
* 如何使用配额限制磁盘空间的使用。
* 如何加密磁盘和交换分区，以保护它们免受攻击者的威胁。
* 如何配置高度可用的存储网络。

在阅读本章之前，你应该：

* 了解如何 [配置和安装新的 FreeBSD 内核](/handbook/di-10-zhang-pei-zhi-freebsd-nei-he/10.1.-gai-shu.md)。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://book.bsdcn.org/handbook/di-21-zhang-cun-chu/21.1.-gai-shu.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
