xref: /freebsd/share/man/man4/msdosfs.4 (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.\" Written by Tom Rhodes
2.\" This file is in the public domain.
3.\"
4.Dd September 27, 2018
5.Dt MSDOSFS 4
6.Os
7.Sh NAME
8.Nm msdosfs
9.Nd MS-DOS file system
10.Sh SYNOPSIS
11.Cd "options MSDOSFS"
12.Sh DESCRIPTION
13The
14.Nm
15driver will permit the
16.Fx
17kernel to read and write MS-DOS based file systems.
18.Pp
19The most common usage follows:
20.Pp
21.Dl "mount -t msdosfs /dev/ada0sN /mnt"
22.Pp
23where
24.Ar N
25is the partition number and
26.Pa /mnt
27is a mount point.
28Some users tend to create a
29.Pa /dos
30directory for
31.Nm
32mount points.
33This helps to keep better track of the file system,
34and make it more easily accessible.
35.Pp
36It is possible to define an entry in
37.Pa /etc/fstab
38that looks similar to:
39.Bd -literal
40/dev/ada0sN		/dos	msdosfs		rw	0	0
41.Ed
42.Pp
43This will mount an MS-DOS based partition at the
44.Pa /dos
45mount point during system boot.
46Using
47.Pa /mnt
48as a permanent mount point is not advised as its intention
49has always been to be a temporary mount point for floppy and
50ZIP disks.
51See
52.Xr hier 7
53for more information on
54.Fx
55directory layout.
56.Sh EXAMPLES
57Determine which FAT file system version (e.g, FAT16, FAT32)
58is a partition formatted with:
59.Bd -literal -offset indent
60file -s /dev/da0s1
61.Ed
62.Pp
63.Xr gpart 8
64may also be used to extract this information.
65.Sh SEE ALSO
66.Xr mount 2 ,
67.Xr unmount 2 ,
68.Xr mount 8 ,
69.Xr mount_msdosfs 8 ,
70.Xr umount 8
71.Sh AUTHORS
72This manual page was written by
73.An Tom Rhodes Aq Mt trhodes@FreeBSD.org .
74