> 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-24-zhang-qi-ta-wen-jian-xi-tong/24.4.-macos.md). Agents can also search and read this documentation through its [MCP server](https://book.bsdcn.org/~gitbook/mcp).

# 24.4.MacOS® 文件系统

FreeBSD 提供了对 MacOS® 文件系统的支持，包括 HFS/HFS+，从而可以访问为 Apple® 系统格式化的存储设备。

## 24.4.1. HFS/HFS+ 文件系统

HFS/HFS+ 是 MacOS 在 APFS 问世前的主要文件系统，常见于较旧的 Mac 设备和外部驱动器。FreeBSD 通过 [filesystems/hfsfuse](https://cgit.freebsd.org/ports/tree/filesystems/hfsfuse/) 软件包提供了对 HFS/HFS+ 的只读支持。

要在 FreeBSD 上使用 HFS/HFS+，需安装 [filesystems/hfsfuse](https://cgit.freebsd.org/ports/tree/filesystems/hfsfuse/) 软件包，加载 FUSE 内核模块，并按如下方式挂载文件系统：

安装 HFS/HFS+ 软件包：

```sh
# pkg install fusefs-hfsfuse
```

在使用 FUSE 文件系统前，需加载 [fusefs(4)](https://man.freebsd.org/cgi/man.cgi?query=fusefs\&sektion=4\&format=html) 内核模块：

```sh
# kldload fusefs
```

使用 [sysrc(8)](https://man.freebsd.org/cgi/man.cgi?query=sysrc\&sektion=8\&format=html) 设置开机自动加载该模块：

```sh
# sysrc kld_list+=fusefs
```

通过指定其 FreeBSD 分区名和一个已存在的挂载点，即可挂载 HFS/HFS+ 卷。以下示例将 **/dev/ada0s1** 挂载到 **/mnt**：

```sh
# hfsfuse /dev/ada0s1 /mnt
```


---

# 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-24-zhang-qi-ta-wen-jian-xi-tong/24.4.-macos.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.
