xref: /netbsd-src/sbin/mount_msdos/mount_msdos.8 (revision c41a4eebefede43f6950f838a387dc18c6a431bf)
1.\"	$NetBSD: mount_msdos.8,v 1.12 1997/10/17 11:30:09 ws Exp $
2.\"
3.\" Copyright (c) 1993,1994 Christopher G. Demetriou
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"      This product includes software developed by Christopher G. Demetriou.
17.\" 3. The name of the author may not be used to endorse or promote products
18.\"    derived from this software without specific prior written permission
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30.\"
31.Dd April 7, 1994
32.Dt MOUNT_MSDOS 8
33.Os NetBSD 0.9a
34.Sh NAME
35.Nm mount_msdos
36.Nd mount an MS-DOS file system
37.Sh SYNOPSIS
38.Nm
39.Op Fl o Ar options
40.Op Fl u Ar uid
41.Op Fl g Ar gid
42.Op Fl m Ar mask
43.Op Fl s
44.Op Fl l
45.Op Fl 9
46.Op Fl G
47.Pa special
48.Pa node
49.Sh DESCRIPTION
50The
51.Nm
52command attaches the MS-DOS filesystem residing on
53the device
54.Pa special
55to the global filesystem namespace at the location
56indicated by
57.Pa node .
58This command is normally executed by
59.Xr mount 8
60at boot time, but can be used by any user to mount an
61MS-DOS file system on any directory that they own (provided,
62of course, that they have appropriate access to the device that
63contains the file system).
64.Pp
65The options are as follows:
66.Bl -tag -width Ds
67.It Fl o Ar options
68Use the specified mount
69.Ar options ,
70as described in
71.Xr mount 8 .
72.It Fl u Ar uid
73Set the owner of the files in the file system to
74.Ar uid .
75The default owner is the owner of the directory
76on which the file system is being mounted.
77.It Fl g Ar gid
78Set the group of the files in the file system to
79.Ar gid .
80The default group is the group of the directory
81on which the file system is being mounted.
82.It Fl m Ar mask
83Specify the maximum file permissions for files
84in the file system.
85(For example, a mask of
86.Li 755
87specifies that, by default, the owner should have
88read, write, and execute permissions for files, but
89others should only have read and execute permissions.
90See
91.Xr chmod 1
92for more information about octal file modes.)
93Only the nine low-order bits of
94.Ar mask
95are used.
96The default mask is taken from the
97directory on which the file system is being mounted.
98.It Fl s
99Force behaviour to
100ignore and not generate Win'95 long filenames.
101.It Fl l
102Force listing and generation of
103Win'95 long filenames
104and separate creation/modification/access dates.
105.Pp
106If neither
107.Fl s
108nor
109.Fl l
110are given,
111.Nm
112searches the root directory of the filesystem to
113be mounted for any existing Win'95 long filenames.
114If no such entries are found,
115.Fl s
116is the default. Otherwise
117.Fl l
118is assumed.
119.It Fl 9
120Ignore the special Win'95 directory entries even
121if deleting or renaming a file. This forces
122.Fl s .
123.It Fl G
124This option causes the filesystem to be interpreted as an Atari-Gemdos
125filesystem. The differences to the msdos filesystem are minimal and
126limited to the boot block. This option enforces
127.Fl s .
128.El
129.Sh SEE ALSO
130.Xr mount 2 ,
131.Xr unmount 2 ,
132.Xr fstab 5 ,
133.Xr mount 8
134.Sh CAVEATS
135The use of the
136.Fl 9
137flag could result in damaged filesystems,
138albeit the damage is in part taken care of by
139procedures similar to the ones used in Win'95.
140.Pp
141The default handling for
142.Fl s
143and
144.Fl l
145will result in empty filesystems to be populated
146with short filenames only. To generate long filenames
147on empty DOS filesystems use
148.Fl l .
149.Sh HISTORY
150The
151.Nm
152utility first appeared in NetBSD 0.9.
153Its predecessor, the
154.Nm mount_pcfs
155utility appeared in NetBSD 0.8, and was abandoned in favor
156of the more aptly-named
157.Nm "" .
158