> 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/man/man4/msdosfs.4.md).

# msdosfs.4

`msdosfs` — MS-DOS（FAT）文件系统

## 名称

`msdosfs`

## 概要

`options MSDOSFS`

## 描述

`msdosfs` 驱动使 FreeBSD 内核能够读写基于 MS-DOS 的文件系统。

最常见的用法如下：

```sh
mount -t msdosfs /dev/ada0sN /mnt
```

其中 `N` 是分区号，`/mnt` 是挂载点。一些用户倾向于为 `msdosfs` 挂载点创建一个 `/dos` 目录。这有助于更好地跟踪文件系统，并使其更易于访问。

可以在 `/etc/fstab` 中定义一个条目，类似于：

```sh
/dev/ada0sN		/dos	msdosfs		rw	0	0
```

这将在系统引导时将基于 MS-DOS 的分区挂载到 `/dos` 挂载点。不建议使用 `/mnt` 作为永久挂载点，因为它的初衷始终是作为软盘和 ZIP 磁盘的临时挂载点。有关 FreeBSD 目录布局的更多信息，参见 [hier(7)](/man/man7/hier.7.md)。

## 实例

确定某个分区格式化为哪种 FAT 文件系统版本（例如 FAT16、FAT32）：

```sh
file -s /dev/da0s1
```

也可使用 [gpart(8)](/man/man8/gpart.8.md) 提取此信息。

## 参见

[mount(2)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man2/mount.2.md), [unmount(2)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man2/unmount.2.md), [fsck\_msdosfs(8)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man8/fsck_msdosfs.8.md), [mount(8)](/man/man8/mount.8.md), [mount\_msdosfs(8)](/man/man8/mount_msdosfs.8.md), [newfs\_msdos(8)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man8/newfs_msdos.8.md), [umount(8)](/man/man8/umount.8.md)

## 作者

本手册页由 Tom Rhodes <trhodes@FreeBSD.org> 编写。


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/msdosfs.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
