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 56e1205e80SPhilippe Charnierutility attaches the MS-DOS file system residing on 575cb2bca1SDoug Rabsonthe device 585cb2bca1SDoug Rabson.Pa special 595cb2bca1SDoug Rabsonto the global file system 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 75b6b3bf12SBruce M Simpson.Xr mount 8 . 76b6b3bf12SBruce M SimpsonThe following MSDOS file system-specific options are available: 77b6b3bf12SBruce M Simpson.Bl -tag -width indent 78b6b3bf12SBruce M Simpson.It Cm longnames 79b6b3bf12SBruce M SimpsonForce Windows 95 long filenames to be visible. 80b6b3bf12SBruce M Simpson.It Cm shortnames 81b6b3bf12SBruce M SimpsonForce only the old MS-DOS 8.3 style filenames to be visible. 82b6b3bf12SBruce M Simpson.It Cm nowin95 83b6b3bf12SBruce M SimpsonCompletely ignore Windows 95 extended file information. 84b6b3bf12SBruce M Simpson.El 85a92aaa1aSJordan K. Hubbard.It Fl u Ar uid 865cb2bca1SDoug RabsonSet the owner of the files in the file system to 875cb2bca1SDoug Rabson.Ar uid . 885cb2bca1SDoug RabsonThe default owner is the owner of the directory 895cb2bca1SDoug Rabsonon which the file system is being mounted. 90a92aaa1aSJordan K. Hubbard.It Fl g Ar gid 915cb2bca1SDoug RabsonSet the group of the files in the file system to 925cb2bca1SDoug Rabson.Ar gid . 935cb2bca1SDoug RabsonThe default group is the group of the directory 945cb2bca1SDoug Rabsonon which the file system is being mounted. 95a92aaa1aSJordan K. Hubbard.It Fl m Ar mask 965cb2bca1SDoug RabsonSpecify the maximum file permissions for files 975cb2bca1SDoug Rabsonin the file system. 98750f6fe3SPhilippe Charnier(For example, a 99750f6fe3SPhilippe Charnier.Ar mask 100750f6fe3SPhilippe Charnierof 1015cb2bca1SDoug Rabson.Li 755 1025cb2bca1SDoug Rabsonspecifies that, by default, the owner should have 1035cb2bca1SDoug Rabsonread, write, and execute permissions for files, but 1045cb2bca1SDoug Rabsonothers should only have read and execute permissions. 1055cb2bca1SDoug RabsonSee 1065cb2bca1SDoug Rabson.Xr chmod 1 1075cb2bca1SDoug Rabsonfor more information about octal file modes.) 1085cb2bca1SDoug RabsonOnly the nine low-order bits of 1095cb2bca1SDoug Rabson.Ar mask 1105cb2bca1SDoug Rabsonare used. 111750f6fe3SPhilippe CharnierThe default 112750f6fe3SPhilippe Charnier.Ar mask 113750f6fe3SPhilippe Charnieris taken from the 1145cb2bca1SDoug Rabsondirectory on which the file system is being mounted. 115a92aaa1aSJordan K. Hubbard.It Fl s 116a92aaa1aSJordan K. HubbardForce behaviour to 117a92aaa1aSJordan K. Hubbardignore and not generate Win'95 long filenames. 118a92aaa1aSJordan K. Hubbard.It Fl l 119a92aaa1aSJordan K. HubbardForce listing and generation of 120a92aaa1aSJordan K. HubbardWin'95 long filenames 121a92aaa1aSJordan K. Hubbardand separate creation/modification/access dates. 122a92aaa1aSJordan K. Hubbard.Pp 123a92aaa1aSJordan K. HubbardIf neither 124a92aaa1aSJordan K. Hubbard.Fl s 125a92aaa1aSJordan K. Hubbardnor 126a92aaa1aSJordan K. Hubbard.Fl l 127a92aaa1aSJordan K. Hubbardare given, 128a92aaa1aSJordan K. Hubbard.Nm 129a92aaa1aSJordan K. Hubbardsearches the root directory of the file system to 130a92aaa1aSJordan K. Hubbardbe mounted for any existing Win'95 long filenames. 131394fd4a6SDmitrij TejblumIf no such entries are found, but short DOS filenames are found, 132a92aaa1aSJordan K. Hubbard.Fl s 133ef8f7ac9SSheldon Hearnis the default. 134ef8f7ac9SSheldon HearnOtherwise 135a92aaa1aSJordan K. Hubbard.Fl l 136a92aaa1aSJordan K. Hubbardis assumed. 137a92aaa1aSJordan K. Hubbard.It Fl 9 138a92aaa1aSJordan K. HubbardIgnore the special Win'95 directory entries even 139ef8f7ac9SSheldon Hearnif deleting or renaming a file. 140ef8f7ac9SSheldon HearnThis forces 141a92aaa1aSJordan K. Hubbard.Fl s . 142a92aaa1aSJordan K. Hubbard.\".It Fl G 143a92aaa1aSJordan K. Hubbard.\"This option causes the file system to be interpreted as an Atari-Gemdos 144750f6fe3SPhilippe Charnier.\"file system. The differences to the MS-DOS file system are minimal and 145a92aaa1aSJordan K. Hubbard.\"limited to the boot block. This option enforces 146a92aaa1aSJordan K. Hubbard.\".Fl s . 14721831438SAndrey A. Chernov.It Fl L Ar locale 1489934eb16SAndrey A. ChernovSpecify locale name used for internal uppercase and lowercase conversions 14921831438SAndrey A. Chernovfor DOS and Win'95 names. 15028847281SAndrey A. ChernovBy default ISO 8859-1 assumed as local character set. 15121831438SAndrey A. Chernov.It Fl W Ar table 1529934eb16SAndrey A. ChernovSpecify text file with 3 conversion tables: 1539934eb16SAndrey A. Chernov.Bl -enum 1549934eb16SAndrey A. Chernov.It 1559934eb16SAndrey A. ChernovLocal character set to Unicode conversion table (upper half) for Win'95 long 156f26775b4SAndrey A. Chernovnames, 128 Unicode codes separated by 8 per row. 157cd913a5dSAndrey A. ChernovIf some code not present in Unicode, use 158cd913a5dSAndrey A. Chernov0x003F code ('?') as replacement. 1599934eb16SAndrey A. Chernov.It 1609934eb16SAndrey A. ChernovDOS to local character set conversion table (upper half) for DOS names, 161f26775b4SAndrey A. Chernov128 character codes separated by 8 per row. 162f26775b4SAndrey A. ChernovCode 0x3F ('?') used for impossible translations. 1639934eb16SAndrey A. Chernov.It 1649934eb16SAndrey A. ChernovLocal character set to DOS conversion table (upper half) for DOS names, 165f26775b4SAndrey A. Chernov128 character codes separated by 8 per row. 166f26775b4SAndrey A. ChernovSome codes have special meaning: 1671cca86f4SAndrey A. Chernov.Bl -hang 1681cca86f4SAndrey A. Chernov.It 0x00 1691cca86f4SAndrey A. Chernovcharacter disallowed in DOS file name; 1701cca86f4SAndrey A. Chernov.It 0x01 1711cca86f4SAndrey A. Chernovcharacter should be replaced by '_' in DOS file name; 1721cca86f4SAndrey A. Chernov.It 0x02 1731cca86f4SAndrey A. Chernovcharacter should be skipped in DOS file name; 1741cca86f4SAndrey A. Chernov.El 1759934eb16SAndrey A. Chernov.El 1769934eb16SAndrey A. Chernov.Pp 17728847281SAndrey A. ChernovBy default ISO 8859-1 assumed as local character set. 1784e3e206eSAndrey A. ChernovIf file path isn't absolute, 1794e3e206eSAndrey A. Chernov.Pa /usr/libdata/msdosfs/ 1804e3e206eSAndrey A. Chernovprefix prepended. 1814e3e206eSAndrey A. Chernov.El 1824e3e206eSAndrey A. Chernov.Sh FILES 1834e3e206eSAndrey A. Chernov.Bl -tag -width /usr/libdata/msdosfs -compact 1844e3e206eSAndrey A. Chernov.It Pa /usr/libdata/msdosfs 185cd913a5dSAndrey A. Chernovdefault place for character sets conversion tables 1865cb2bca1SDoug Rabson.El 1875cb2bca1SDoug Rabson.Sh SEE ALSO 1885cb2bca1SDoug Rabson.Xr mount 2 , 1895cb2bca1SDoug Rabson.Xr unmount 2 , 190a92aaa1aSJordan K. Hubbard.Xr fstab 5 , 191a92aaa1aSJordan K. Hubbard.Xr mount 8 1925cb2bca1SDoug Rabson.Sh CAVEATS 193a92aaa1aSJordan K. HubbardThe use of the 194a92aaa1aSJordan K. Hubbard.Fl 9 195a92aaa1aSJordan K. Hubbardflag could result in damaged file systems, 196a92aaa1aSJordan K. Hubbardalbeit the damage is in part taken care of by 197a92aaa1aSJordan K. Hubbardprocedures similar to the ones used in Win'95. 198d02e870cSGary Palmer.Pp 1992f5275d0SBruce Evans.Fx 2.1 2002f5275d0SBruce Evansand earlier versions could not handle cluster sizes larger than 16K. 2012f5275d0SBruce EvansJust mounting an MS-DOS file system could cause corruption to any 2022f5275d0SBruce Evansmounted file system. 2032f5275d0SBruce EvansCluster sizes larger than 16K are unavoidable for file system sizes 2042f5275d0SBruce Evanslarger than 1G, and also occur when file systems larger than 1G are 2052f5275d0SBruce Evansshrunk to smaller than 1G using FIPS. 2065cb2bca1SDoug Rabson.Sh HISTORY 2075cb2bca1SDoug RabsonThe 208a92aaa1aSJordan K. Hubbard.Nm 2092f5275d0SBruce Evansutility first appeared in 2102f5275d0SBruce Evans.Fx 2.0 . 2115cb2bca1SDoug RabsonIts predecessor, the 2125cb2bca1SDoug Rabson.Nm mount_pcfs 2132f5275d0SBruce Evansutility appeared in 2142f5275d0SBruce Evans.Fx 1.0 , 2152f5275d0SBruce Evansand was abandoned in favor 2165cb2bca1SDoug Rabsonof the more aptly-named 2177c7fb079SRuslan Ermilov.Nm . 218