xref: /freebsd/sbin/mount_msdosfs/mount_msdosfs.8 (revision 4ccd7546866d13c42b6d7339d42671baf7c38ff9)
1a92aaa1aSJordan K. Hubbard.\"	$NetBSD: mount_msdos.8,v 1.13 1998/02/06 05:57:00 perry Exp $
25cb2bca1SDoug Rabson.\"
35cb2bca1SDoug Rabson.\" Copyright (c) 1993,1994 Christopher G. Demetriou
45cb2bca1SDoug Rabson.\" All rights reserved.
55cb2bca1SDoug Rabson.\"
65cb2bca1SDoug Rabson.\" Redistribution and use in source and binary forms, with or without
75cb2bca1SDoug Rabson.\" modification, are permitted provided that the following conditions
85cb2bca1SDoug Rabson.\" are met:
95cb2bca1SDoug Rabson.\" 1. Redistributions of source code must retain the above copyright
105cb2bca1SDoug Rabson.\"    notice, this list of conditions and the following disclaimer.
115cb2bca1SDoug Rabson.\" 2. Redistributions in binary form must reproduce the above copyright
125cb2bca1SDoug Rabson.\"    notice, this list of conditions and the following disclaimer in the
135cb2bca1SDoug Rabson.\"    documentation and/or other materials provided with the distribution.
145cb2bca1SDoug Rabson.\" 3. All advertising materials mentioning features or use of this software
15750f6fe3SPhilippe Charnier.\"    must display the following acknowledgment:
165cb2bca1SDoug Rabson.\"      This product includes software developed by Christopher G. Demetriou.
175cb2bca1SDoug Rabson.\" 3. The name of the author may not be used to endorse or promote products
185cb2bca1SDoug Rabson.\"    derived from this software without specific prior written permission
195cb2bca1SDoug Rabson.\"
205cb2bca1SDoug Rabson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
215cb2bca1SDoug Rabson.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
225cb2bca1SDoug Rabson.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
235cb2bca1SDoug Rabson.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
245cb2bca1SDoug Rabson.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
255cb2bca1SDoug Rabson.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
265cb2bca1SDoug Rabson.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
275cb2bca1SDoug Rabson.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
285cb2bca1SDoug Rabson.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
295cb2bca1SDoug Rabson.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
305cb2bca1SDoug Rabson.\"
317f3dea24SPeter Wemm.\" $FreeBSD$
325cb2bca1SDoug Rabson.\"
335cb2bca1SDoug Rabson.Dd April 7, 1994
344ccd7546SRuslan Ermilov.Dt MOUNT_MSDOSFS 8
35a92aaa1aSJordan K. Hubbard.Os
365cb2bca1SDoug Rabson.Sh NAME
374ccd7546SRuslan Ermilov.Nm mount_msdosfs
385cb2bca1SDoug Rabson.Nd mount an MS-DOS file system
395cb2bca1SDoug Rabson.Sh SYNOPSIS
407c7fb079SRuslan Ermilov.Nm
41a92aaa1aSJordan K. Hubbard.Op Fl o Ar options
425cb2bca1SDoug Rabson.Op Fl u Ar uid
435cb2bca1SDoug Rabson.Op Fl g Ar gid
445cb2bca1SDoug Rabson.Op Fl m Ar mask
45a92aaa1aSJordan K. Hubbard.Op Fl s
46a92aaa1aSJordan K. Hubbard.Op Fl l
47a92aaa1aSJordan K. Hubbard.Op Fl 9
48a92aaa1aSJordan K. Hubbard.\".Op Fl G
4921831438SAndrey A. Chernov.Op Fl L Ar locale
5021831438SAndrey A. Chernov.Op Fl W Ar table
515cb2bca1SDoug Rabson.Pa special
525cb2bca1SDoug Rabson.Pa node
535cb2bca1SDoug Rabson.Sh DESCRIPTION
545cb2bca1SDoug RabsonThe
55a92aaa1aSJordan K. Hubbard.Nm
565cb2bca1SDoug Rabsoncommand attaches the MS-DOS filesystem residing on
575cb2bca1SDoug Rabsonthe device
585cb2bca1SDoug Rabson.Pa special
595cb2bca1SDoug Rabsonto the global filesystem namespace at the location
605cb2bca1SDoug Rabsonindicated by
615cb2bca1SDoug Rabson.Pa node .
625cb2bca1SDoug RabsonThis command is normally executed by
635cb2bca1SDoug Rabson.Xr mount 8
645cb2bca1SDoug Rabsonat boot time, but can be used by any user to mount an
655cb2bca1SDoug RabsonMS-DOS file system on any directory that they own (provided,
665cb2bca1SDoug Rabsonof course, that they have appropriate access to the device that
675cb2bca1SDoug Rabsoncontains the file system).
685cb2bca1SDoug Rabson.Pp
695cb2bca1SDoug RabsonThe options are as follows:
705cb2bca1SDoug Rabson.Bl -tag -width Ds
71a92aaa1aSJordan K. Hubbard.It Fl o Ar options
72a92aaa1aSJordan K. HubbardUse the specified mount
73a92aaa1aSJordan K. Hubbard.Ar options ,
74a92aaa1aSJordan K. Hubbardas described in
75458cbc01SJordan K. Hubbard.Xr mount 8 ,
76458cbc01SJordan K. Hubbardor one of the MSDOS filesystem-specific options
77458cbc01SJordan K. Hubbard.Ar shortnames ,
78458cbc01SJordan K. Hubbard.Ar longnames
79458cbc01SJordan K. Hubbardor
80458cbc01SJordan K. Hubbard.Ar nowin95 ,
81458cbc01SJordan K. Hubbardall of which can be used to affect Windows name translation in the
82458cbc01SJordan K. Hubbardunderlying filesystem.
83a92aaa1aSJordan K. Hubbard.It Fl u Ar uid
845cb2bca1SDoug RabsonSet the owner of the files in the file system to
855cb2bca1SDoug Rabson.Ar uid .
865cb2bca1SDoug RabsonThe default owner is the owner of the directory
875cb2bca1SDoug Rabsonon which the file system is being mounted.
88a92aaa1aSJordan K. Hubbard.It Fl g Ar gid
895cb2bca1SDoug RabsonSet the group of the files in the file system to
905cb2bca1SDoug Rabson.Ar gid .
915cb2bca1SDoug RabsonThe default group is the group of the directory
925cb2bca1SDoug Rabsonon which the file system is being mounted.
93a92aaa1aSJordan K. Hubbard.It Fl m Ar mask
945cb2bca1SDoug RabsonSpecify the maximum file permissions for files
955cb2bca1SDoug Rabsonin the file system.
96750f6fe3SPhilippe Charnier(For example, a
97750f6fe3SPhilippe Charnier.Ar mask
98750f6fe3SPhilippe Charnierof
995cb2bca1SDoug Rabson.Li 755
1005cb2bca1SDoug Rabsonspecifies that, by default, the owner should have
1015cb2bca1SDoug Rabsonread, write, and execute permissions for files, but
1025cb2bca1SDoug Rabsonothers should only have read and execute permissions.
1035cb2bca1SDoug RabsonSee
1045cb2bca1SDoug Rabson.Xr chmod 1
1055cb2bca1SDoug Rabsonfor more information about octal file modes.)
1065cb2bca1SDoug RabsonOnly the nine low-order bits of
1075cb2bca1SDoug Rabson.Ar mask
1085cb2bca1SDoug Rabsonare used.
109750f6fe3SPhilippe CharnierThe default
110750f6fe3SPhilippe Charnier.Ar mask
111750f6fe3SPhilippe Charnieris taken from the
1125cb2bca1SDoug Rabsondirectory on which the file system is being mounted.
113a92aaa1aSJordan K. Hubbard.It Fl s
114a92aaa1aSJordan K. HubbardForce behaviour to
115a92aaa1aSJordan K. Hubbardignore and not generate Win'95 long filenames.
116a92aaa1aSJordan K. Hubbard.It Fl l
117a92aaa1aSJordan K. HubbardForce listing and generation of
118a92aaa1aSJordan K. HubbardWin'95 long filenames
119a92aaa1aSJordan K. Hubbardand separate creation/modification/access dates.
120a92aaa1aSJordan K. Hubbard.Pp
121a92aaa1aSJordan K. HubbardIf neither
122a92aaa1aSJordan K. Hubbard.Fl s
123a92aaa1aSJordan K. Hubbardnor
124a92aaa1aSJordan K. Hubbard.Fl l
125a92aaa1aSJordan K. Hubbardare given,
126a92aaa1aSJordan K. Hubbard.Nm
127a92aaa1aSJordan K. Hubbardsearches the root directory of the filesystem to
128a92aaa1aSJordan K. Hubbardbe mounted for any existing Win'95 long filenames.
129394fd4a6SDmitrij TejblumIf no such entries are found, but short DOS filenames are found,
130a92aaa1aSJordan K. Hubbard.Fl s
131ef8f7ac9SSheldon Hearnis the default.
132ef8f7ac9SSheldon HearnOtherwise
133a92aaa1aSJordan K. Hubbard.Fl l
134a92aaa1aSJordan K. Hubbardis assumed.
135a92aaa1aSJordan K. Hubbard.It Fl 9
136a92aaa1aSJordan K. HubbardIgnore the special Win'95 directory entries even
137ef8f7ac9SSheldon Hearnif deleting or renaming a file.
138ef8f7ac9SSheldon HearnThis forces
139a92aaa1aSJordan K. Hubbard.Fl s .
140a92aaa1aSJordan K. Hubbard.\".It Fl G
141a92aaa1aSJordan K. Hubbard.\"This option causes the filesystem to be interpreted as an Atari-Gemdos
142750f6fe3SPhilippe Charnier.\"filesystem. The differences to the MS-DOS filesystem are minimal and
143a92aaa1aSJordan K. Hubbard.\"limited to the boot block. This option enforces
144a92aaa1aSJordan K. Hubbard.\".Fl s .
14521831438SAndrey A. Chernov.It Fl L Ar locale
1469934eb16SAndrey A. ChernovSpecify locale name used for internal uppercase and lowercase conversions
14721831438SAndrey A. Chernovfor DOS and Win'95 names.
14828847281SAndrey A. ChernovBy default ISO 8859-1 assumed as local character set.
14921831438SAndrey A. Chernov.It Fl W Ar table
1509934eb16SAndrey A. ChernovSpecify text file with 3 conversion tables:
1519934eb16SAndrey A. Chernov.Bl -enum
1529934eb16SAndrey A. Chernov.It
1539934eb16SAndrey A. ChernovLocal character set to Unicode conversion table (upper half) for Win'95 long
154f26775b4SAndrey A. Chernovnames, 128 Unicode codes separated by 8 per row.
155cd913a5dSAndrey A. ChernovIf some code not present in Unicode, use
156cd913a5dSAndrey A. Chernov0x003F code ('?') as replacement.
1579934eb16SAndrey A. Chernov.It
1589934eb16SAndrey A. ChernovDOS to local character set conversion table (upper half) for DOS names,
159f26775b4SAndrey A. Chernov128 character codes separated by 8 per row.
160f26775b4SAndrey A. ChernovCode 0x3F ('?') used for impossible translations.
1619934eb16SAndrey A. Chernov.It
1629934eb16SAndrey A. ChernovLocal character set to DOS conversion table (upper half) for DOS names,
163f26775b4SAndrey A. Chernov128 character codes separated by 8 per row.
164f26775b4SAndrey A. ChernovSome codes have special meaning:
1651cca86f4SAndrey A. Chernov.Bl -hang
1661cca86f4SAndrey A. Chernov.It 0x00
1671cca86f4SAndrey A. Chernovcharacter disallowed in DOS file name;
1681cca86f4SAndrey A. Chernov.It 0x01
1691cca86f4SAndrey A. Chernovcharacter should be replaced by '_' in DOS file name;
1701cca86f4SAndrey A. Chernov.It 0x02
1711cca86f4SAndrey A. Chernovcharacter should be skipped in DOS file name;
1721cca86f4SAndrey A. Chernov.El
1739934eb16SAndrey A. Chernov.El
1749934eb16SAndrey A. Chernov.Pp
17528847281SAndrey A. ChernovBy default ISO 8859-1 assumed as local character set.
1764e3e206eSAndrey A. ChernovIf file path isn't absolute,
1774e3e206eSAndrey A. Chernov.Pa /usr/libdata/msdosfs/
1784e3e206eSAndrey A. Chernovprefix prepended.
1794e3e206eSAndrey A. Chernov.El
1804e3e206eSAndrey A. Chernov.Sh FILES
1814e3e206eSAndrey A. Chernov.Bl -tag -width /usr/libdata/msdosfs -compact
1824e3e206eSAndrey A. Chernov.It Pa /usr/libdata/msdosfs
183cd913a5dSAndrey A. Chernovdefault place for character sets conversion tables
1845cb2bca1SDoug Rabson.El
1855cb2bca1SDoug Rabson.Sh SEE ALSO
1865cb2bca1SDoug Rabson.Xr mount 2 ,
1875cb2bca1SDoug Rabson.Xr unmount 2 ,
188a92aaa1aSJordan K. Hubbard.Xr fstab 5 ,
189a92aaa1aSJordan K. Hubbard.Xr mount 8
1905cb2bca1SDoug Rabson.Sh CAVEATS
191a92aaa1aSJordan K. HubbardThe use of the
192a92aaa1aSJordan K. Hubbard.Fl 9
193a92aaa1aSJordan K. Hubbardflag could result in damaged filesystems,
194a92aaa1aSJordan K. Hubbardalbeit the damage is in part taken care of by
195a92aaa1aSJordan K. Hubbardprocedures similar to the ones used in Win'95.
196d02e870cSGary Palmer.Pp
1972f5275d0SBruce Evans.Fx 2.1
1982f5275d0SBruce Evansand earlier versions could not handle cluster sizes larger than 16K.
1992f5275d0SBruce EvansJust mounting an MS-DOS file system could cause corruption to any
2002f5275d0SBruce Evansmounted file system.
2012f5275d0SBruce EvansCluster sizes larger than 16K are unavoidable for file system sizes
2022f5275d0SBruce Evanslarger than 1G, and also occur when filesystems larger than 1G are
2032f5275d0SBruce Evansshrunk to smaller than 1G using FIPS.
2045cb2bca1SDoug Rabson.Sh HISTORY
2055cb2bca1SDoug RabsonThe
206a92aaa1aSJordan K. Hubbard.Nm
2072f5275d0SBruce Evansutility first appeared in
2082f5275d0SBruce Evans.Fx 2.0 .
2095cb2bca1SDoug RabsonIts predecessor, the
2105cb2bca1SDoug Rabson.Nm mount_pcfs
2112f5275d0SBruce Evansutility appeared in
2122f5275d0SBruce Evans.Fx 1.0 ,
2132f5275d0SBruce Evansand was abandoned in favor
2145cb2bca1SDoug Rabsonof the more aptly-named
2157c7fb079SRuslan Ermilov.Nm .
216