xref: /freebsd/sbin/mount_msdosfs/mount_msdosfs.8 (revision df7f5d4de4592a8948a25ce01e5bddfbb7ce39dc)
1.\"
2.\" Copyright (c) 1993,1994 Christopher G. Demetriou
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in the
12.\"    documentation and/or other materials provided with the distribution.
13.\" 3. All advertising materials mentioning features or use of this software
14.\"    must display the following acknowledgement:
15.\"      This product includes software developed by Christopher G. Demetriou.
16.\" 3. The name of the author may not be used to endorse or promote products
17.\"    derived from this software without specific prior written permission
18.\"
19.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29.\"
30.\"	$Id$
31.\"
32.Dd April 7, 1994
33.Dt MOUNT_MSDOS 8
34.Os FreeBSD 2.0
35.Sh NAME
36.Nm mount_msdos
37.Nd mount an MS-DOS file system
38.Sh SYNOPSIS
39.Nm mount_msdos
40.Op Fl u Ar uid
41.Op Fl g Ar gid
42.Op Fl m Ar mask
43.Pa special
44.Pa node
45.Sh DESCRIPTION
46The
47.Nm mount_msdos
48command attaches the MS-DOS filesystem residing on
49the device
50.Pa special
51to the global filesystem namespace at the location
52indicated by
53.Pa node .
54This command is normally executed by
55.Xr mount 8
56at boot time, but can be used by any user to mount an
57MS-DOS file system on any directory that they own (provided,
58of course, that they have appropriate access to the device that
59contains the file system).
60.Pp
61The options are as follows:
62.Bl -tag -width Ds
63.It Fl u
64Set the owner of the files in the file system to
65.Ar uid .
66The default owner is the owner of the directory
67on which the file system is being mounted.
68.It Fl g
69Set the group of the files in the file system to
70.Ar gid .
71The default group is the group of the directory
72on which the file system is being mounted.
73.It Fl m
74Specify the maximum file permissions for files
75in the file system.
76(For example, a mask of
77.Li 755
78specifies that, by default, the owner should have
79read, write, and execute permissions for files, but
80others should only have read and execute permissions.
81See
82.Xr chmod 1
83for more information about octal file modes.)
84Only the nine low-order bits of
85.Ar mask
86are used.
87The default mask is taken from the
88directory on which the file system is being mounted.
89.El
90.Sh SEE ALSO
91.Xr mount 2 ,
92.Xr unmount 2 ,
93.Xr fstab 5
94.Sh CAVEATS
95The
96.Nm msdos
97filesystem is not known to work reliably with filesystems created by versions
98of MS-DOS later than version 3.3.
99.Pp
100The limitations on file names imposed by MS-DOS are strange, at best.
101For instance, they are
102limited to single-case, 8 character names with 3 character extensions.
103.Pp
104If you see the warning:
105.Pp
106mountmsdosfs(): Warning: root directory is not a multiple of the clustersize in length
107.Pp
108then it is possible that writing to the MS-DOS filesystem would
109produce corruption on the disk. This is a shortcoming in the code
110which needs to be addressed.
111.Sh HISTORY
112The
113.Nm mount_msdos
114utility first appeared in FreeBSD 2.0.
115Its predecessor, the
116.Nm mount_pcfs
117utility appeared in FreeBSD 1, and was abandoned in favor
118of the more aptly-named
119.Nm mount_msdos .
120