# 23.3.Windows® 文件系统

FreeBSD 支持 FAT、exFAT 和 NTFS 文件系统，从而可以访问 Windows 格式的存储设备。

## 23.3.1. FAT 文件系统

FAT 文件系统是一种简单可靠的文件系统。尽管它在性能、可靠性和可扩展性方面不如现代的替代方案，但由于在多种操作系统上的可用性，它仍然是设备间数据交换的常见选择。

要访问 FAT 文件系统，可通过指定其 FreeBSD 分区名和一个已存在的挂载点来挂载该 FAT 卷。以下示例将 **/dev/ada0s1** 挂载到 **/mnt**：

```shell-session
# mount -t msdosfs /dev/ada0s1 /mnt
```

## 23.3.2. exFAT 文件系统

exFAT（扩展文件分配表）是一种为闪存设备（如 USB 驱动器和 SD 卡）优化的轻量级文件系统。它支持大文件大小，并在多个平台上被广泛使用，因而非常适用于外部存储设备。

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

安装 exFAT 软件包：

```shell-session
# pkg install fusefs-exfat
```

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

```shell-session
# kldload fusefs
```

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

```shell-session
# sysrc kld_list+=fusefs
```

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

```shell-session
# mount.exfat /dev/ada0s1 /mnt
```

## 23.3.3. NTFS 文件系统

NTFS 是由 Microsoft® 开发的强健文件系统，常用于 Windows 操作系统中。FreeBSD 通过 [filesystems/ntfs](https://cgit.freebsd.org/ports/tree/filesystems/ntfs/) 软件包提供对 NTFS 的完整读写支持，便于访问和修改 NTFS 格式的存储设备。

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

安装 NTFS 软件包：

```shell-session
# pkg install fusefs-ntfs
```

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

```shell-session
# kldload fusefs
```

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

```shell-session
# sysrc kld_list+=fusefs
```

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

```shell-session
# ntfs-3g /dev/ada0s1 /mnt
```


---

# 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://book.bsdcn.org/hanbook/di-23-zhang-qi-ta-wen-jian-xi-tong/23.3-windows.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.
