Merge from vendor branch GCC:
[dragonfly.git] / share / man / man5 / msdos.5
1 .\" $FreeBSD: src/share/man/man5/msdos.5,v 1.3.2.1 2002/12/30 04:44:44 trhodes Exp $
2 .\" $DragonFly: src/share/man/man5/msdos.5,v 1.3 2004/03/11 12:28:56 hmp Exp $
3 .\" Written by Tom Rhodes
4 .\" This file is in the public domain.
5 .\"
6 .Dd December 26, 2002
7 .Dt MSDOS 5
8 .Os
9 .Sh NAME
10 .Nm msdos
11 .Nd msdos file system
12 .Sh SYNOPSIS
13 .Bd -literal
14 /dev/ad0sN              /dos    msdos   rw      0       0
15 .Ed
16 .Pp
17 To link into the kernel:
18 .Cd "options MSDOSFS"
19 .Pp
20 To load as a kernel loadable module:
21 .Dl kldload msdos
22 .Sh DESCRIPTION
23 .Pp
24 The
25 .Nm
26 file system driver will permit the
27 .Dx
28 kernel to read and write
29 .Nm
30 based file systems.
31 .Pp
32 The most common usage follows:
33 .Pp
34 .Dl "# mount_msdos /dev/ad0sN /dos
35 .Pp
36 where
37 .Sy N
38 is the partition number and
39 .Pa /mnt
40 is a mount point directory in the root file system.
41 Some users tend to create a
42 .Pa /dos
43 directory for
44 .Nm
45 mount points.
46 This helps to keep better track of the file system,
47 and make it more easily accessible.
48 .Pp
49 It is possible to define an entry in
50 .Pa /etc/fstab
51 that looks similar to:
52 .Bd -literal
53 /dev/ad0sN              /dos    msdos   rw      0       0
54 .Ed
55 .Pp
56 This will mount an
57 .Nm
58 based partition at the
59 .Pa /dos
60 mount point during system boot.
61 Using
62 .Pa /mnt
63 as a permanent mount point is not advised as its intention
64 has always been to be a temporary mount point for floppy and
65 zip disks.
66 See
67 .Xr hier 7
68 for more information on
69 .Dx
70 directory layout.
71 .Sh SEE ALSO
72 .Xr mount 2 ,
73 .Xr unmount 2 ,
74 .Xr mount 8 ,
75 .Xr mount_msdos 8 ,
76 .Xr umount 8 ,
77 .Rs
78 .%T "The FreeBSD Handbook"
79 .%O "http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/"
80 .Re
81 .Sh AUTHORS
82 This manual page was written by
83 .An Tom Rhodes Aq trhodes@FreeBSD.org .