]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/mount_msdosfs/mount_msdosfs.8
Fix a few mandoc issues
[FreeBSD/FreeBSD.git] / sbin / mount_msdosfs / mount_msdosfs.8
1 .\"     $NetBSD: mount_msdos.8,v 1.13 1998/02/06 05:57:00 perry 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 acknowledgment:
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 .\" $FreeBSD$
32 .\"
33 .Dd May 28, 2017
34 .Dt MOUNT_MSDOSFS 8
35 .Os
36 .Sh NAME
37 .Nm mount_msdosfs
38 .Nd mount an MS-DOS file system
39 .Sh SYNOPSIS
40 .Nm
41 .Op Fl 9ls
42 .Op Fl D Ar DOS_codepage
43 .Op Fl g Ar gid
44 .Op Fl L Ar locale
45 .Op Fl M Ar mask
46 .Op Fl m Ar mask
47 .Op Fl o Ar options
48 .Op Fl u Ar uid
49 .Op Fl W Ar table
50 .Ar special node
51 .Sh DESCRIPTION
52 The
53 .Nm
54 utility attaches the MS-DOS file system residing on
55 the device
56 .Pa special
57 to the global file system namespace at the location
58 indicated by
59 .Pa node .
60 This command is normally executed by
61 .Xr mount 8
62 at boot time, but can be used by any user to mount an
63 MS-DOS file system on any directory that they own (provided,
64 of course, that they have appropriate access to the device that
65 contains the file system).
66 .Pp
67 The options are as follows:
68 .Bl -tag -width Ds
69 .It Fl o Ar options
70 Use the specified mount
71 .Ar options ,
72 as described in
73 .Xr mount 8 .
74 The following MSDOS file system-specific options are available:
75 .Bl -tag -width indent
76 .It Cm longnames
77 Force Windows 95 long filenames to be visible.
78 .It Cm shortnames
79 Force only the old MS-DOS 8.3 style filenames to be visible.
80 .It Cm nowin95
81 Completely ignore Windows 95 extended file information.
82 .El
83 .It Fl u Ar uid
84 Set the owner of the files in the file system to
85 .Ar uid .
86 The default owner is the owner of the directory
87 on which the file system is being mounted.
88 .It Fl g Ar gid
89 Set the group of the files in the file system to
90 .Ar gid .
91 The default group is the group of the directory
92 on which the file system is being mounted.
93 .It Fl m Ar mask
94 Specify the maximum file permissions for files
95 in the file system.
96 (For example, a
97 .Ar mask
98 of
99 .Li 755
100 specifies that, by default, the owner should have
101 read, write, and execute permissions for files, but
102 others should only have read and execute permissions.
103 See
104 .Xr chmod 1
105 for more information about octal file modes.
106 Only the nine low-order bits of
107 .Ar mask
108 are used.
109 The value of
110 .Ar -M
111 is used if it is supplied and
112 .Ar -m
113 is omitted.
114 The default
115 .Ar mask
116 is taken from the
117 directory on which the file system is being mounted.
118 .It Fl M Ar mask
119 Specify the maximum file permissions for directories
120 in the file system.
121 The value of
122 .Ar -m
123 is used if it is supplied and
124 .Ar -M
125 is omitted.
126 See the previous option's description for details.
127 .It Fl s
128 Force behaviour to
129 ignore and not generate Win'95 long filenames.
130 .It Fl l
131 Force listing and generation of
132 Win'95 long filenames
133 and separate creation/modification/access dates.
134 .Pp
135 If neither
136 .Fl s
137 nor
138 .Fl l
139 are given,
140 .Fl l
141 is the default.
142 .It Fl 9
143 Ignore the special Win'95 directory entries even
144 if deleting or renaming a file.
145 This forces
146 .Fl s .
147 .\".It Fl G
148 .\"This option causes the file system to be interpreted as an Atari-Gemdos
149 .\"file system.
150 .\"The differences to the MS-DOS file system are minimal and
151 .\"limited to the boot block.
152 .\"This option enforces
153 .\".Fl s .
154 .It Fl L Ar locale
155 Specify locale name used for file name conversions
156 for DOS and Win'95 names.
157 By default ISO 8859-1 assumed as local character set.
158 .It Fl D Ar DOS_codepage
159 Specify the MS-DOS code page (aka IBM/OEM code page) name used for
160 file name conversions for DOS names.
161 .It Fl W Ar table
162 .Bf Em
163 This option is preserved for backward compatibility purpose only,
164 and will be removed in the future.
165 Please avoid using this option.
166 .Ef
167 .Pp
168 Specify text file name with conversion table:
169 .Pa iso22dos , iso72dos , koi2dos , koi8u2dos .
170 .El
171 .Sh EXAMPLES
172 To mount a Russian MS-DOS file system located in
173 .Pa /dev/ada1s1 :
174 .Pp
175 .Dl "mount_msdosfs -L ru_RU.KOI8-R -D CP866 /dev/ada1s1 /mnt"
176 .Pp
177 To mount a Japanese MS-DOS file system located in
178 .Pa /dev/ada1s1 :
179 .Pp
180 .Dl "mount_msdosfs -L ja_JP.eucJP -D CP932 /dev/ada1s1 /mnt"
181 .Sh SEE ALSO
182 .Xr mount 2 ,
183 .Xr unmount 2 ,
184 .Xr fstab 5 ,
185 .Xr msdosfs 5 ,
186 .Xr mount 8
187 .Pp
188 List of Localized MS Operating Systems:
189 .Pa http://www.microsoft.com/globaldev/reference/oslocversion.mspx .
190 .Sh HISTORY
191 The predecessor to
192 .Nm mount_msdos
193 utility named
194 .Nm mount_pcfs
195 appeared in
196 .Nx 0.8 .
197 It was rewritten in
198 .Nx 1.0
199 and first appeared in
200 .Fx 2.0 .
201 .Nm mount_msdos
202 was renamed to the more aptly-named
203 .Nm
204 in
205 .Fx 5.0 .
206 The character code conversion routine was added in 2003.
207 .Sh AUTHORS
208 Initial implementation as
209 .Nm mount_pcfs
210 was written by
211 .An -nosplit
212 .An Paul Popelka Aq Mt paulp@uts.amdahl.com .
213 It was rewritten by
214 .An Christopher G. Demetriou Aq Mt cgd@NetBSD.org .
215 The character code conversion routine was added by
216 .An Ryuichiro Imura Aq Mt imura@ryu16.org .
217 .Sh CAVEATS
218 The use of the
219 .Fl 9
220 flag could result in damaged file systems,
221 albeit the damage is in part taken care of by
222 procedures similar to the ones used in Win'95.