1 .\" $NetBSD: mount_msdos.8,v 1.32 2009/01/23 12:48:49 jmcneill Exp $
3 .\" Copyright (c) 1993, 1994 Christopher G. Demetriou
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
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 for the
17 .\" NetBSD Project. See http://www.NetBSD.org/ for
18 .\" information about NetBSD.
19 .\" 4. The name of the author may not be used to endorse or promote products
20 .\" derived from this software without specific prior written permission.
22 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 .\" <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
40 .Nd mount an MS-DOS file system
55 command attaches the MS-DOS filesystem residing on
58 to the global filesystem namespace at the location
65 are converted to absolute paths before use.
66 This command is normally executed by
68 at boot time, but can be used by any user to mount an
69 MS-DOS file system on any directory that they own (provided,
70 of course, that they have appropriate access to the device that
71 contains the file system).
73 Support for FAT16 and VFAT32 as well as long file names is available.
75 The options are as follows:
76 .Bl -tag -width XoXoptionsXX
78 Ignore the special Win'95 directory entries even
79 if deleting or renaming a file.
83 This option causes the filesystem to be interpreted as an Atari-Gemdos
85 The differences to the MSDOS filesystem are minimal and
86 limited to the boot block.
90 Set the group of the files in the file system to
92 The default group is the group of the directory
93 on which the file system is being mounted.
95 Force listing and generation of
97 and separate creation/modification/access dates.
105 searches the root directory of the filesystem to
106 be mounted for any existing Win'95 long filenames.
107 If the filesystem is not empty and no such entries are found,
114 Specify the maximum file permissions for directories
118 is used if it is supplied and
122 Specify the maximum file permissions for files
124 (For example, a mask of
126 specifies that, by default, the owner should have
127 read, write, and execute permissions for files, but
128 others should only have read and execute permissions.
131 for more information about octal file modes.)
132 Only the nine low-order bits of
137 is used if it is supplied and
140 The default mask is taken from the
141 directory on which the file system is being mounted.
143 Use the specified mount
149 ignore and not generate Win'95 long filenames.
153 Set the time zone offset (in seconds) from UTC to
155 with positive values indicating east of the Prime Meridian.
156 If not set, the user's current time zone will be used.
158 Set the owner of the files in the file system to
160 The default owner is the owner of the directory
161 on which the file system is being mounted.
164 To remove the 'execute' permission bit for all files, but still keep
165 directories searchable, use:
166 .Bl -item -offset indent
168 mount_msdos -m 0644 -M 0755 /dev/wd0e /msdos
178 utility first appeared in
184 and was abandoned in favor
185 of the more aptly-named
188 Compressed partitions are not supported.
192 flag could result in damaged filesystems,
193 albeit the damage is in part taken care of by
194 procedures similar to the ones used in Win'95.
196 The default handling for
200 will result in empty filesystems to be populated
201 with short filenames only.
202 To generate long filenames
203 on empty DOS filesystems use