Get rid of seriously out of date example code.
[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.4 2006/02/10 19:01:10 swildner 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 The
24 .Nm
25 file system driver will permit the
26 .Dx
27 kernel to read and write
28 .Nm
29 based file systems.
30 .Pp
31 The most common usage follows:
32 .Pp
33 .Dl "# mount_msdos /dev/ad0sN /dos
34 .Pp
35 where
36 .Sy N
37 is the partition number and
38 .Pa /mnt
39 is a mount point directory in the root file system.
40 Some users tend to create a
41 .Pa /dos
42 directory for
43 .Nm
44 mount points.
45 This helps to keep better track of the file system,
46 and make it more easily accessible.
47 .Pp
48 It is possible to define an entry in
49 .Pa /etc/fstab
50 that looks similar to:
51 .Bd -literal
52 /dev/ad0sN              /dos    msdos   rw      0       0
53 .Ed
54 .Pp
55 This will mount an
56 .Nm
57 based partition at the
58 .Pa /dos
59 mount point during system boot.
60 Using
61 .Pa /mnt
62 as a permanent mount point is not advised as its intention
63 has always been to be a temporary mount point for floppy and
64 zip disks.
65 See
66 .Xr hier 7
67 for more information on
68 .Dx
69 directory layout.
70 .Sh SEE ALSO
71 .Xr mount 2 ,
72 .Xr unmount 2 ,
73 .Xr mount 8 ,
74 .Xr mount_msdos 8 ,
75 .Xr umount 8 ,
76 .Rs
77 .%T "The FreeBSD Handbook"
78 .%O "http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/"
79 .Re
80 .Sh AUTHORS
81 This manual page was written by
82 .An Tom Rhodes Aq trhodes@FreeBSD.org .