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 45c98a31caSTom Rhodes.Op Fl M Ar mask 46a92aaa1aSJordan K. Hubbard.Op Fl s 47a92aaa1aSJordan K. Hubbard.Op Fl l 48a92aaa1aSJordan K. Hubbard.Op Fl 9 49a92aaa1aSJordan K. Hubbard.\".Op Fl G 5021831438SAndrey A. Chernov.Op Fl L Ar locale 51c4f02a89SMax Khon.Op Fl D Ar dos-codepage 5221831438SAndrey A. Chernov.Op Fl W Ar table 535cb2bca1SDoug Rabson.Pa special 545cb2bca1SDoug Rabson.Pa node 555cb2bca1SDoug Rabson.Sh DESCRIPTION 565cb2bca1SDoug RabsonThe 57a92aaa1aSJordan K. Hubbard.Nm 58e1205e80SPhilippe Charnierutility attaches the MS-DOS file system residing on 595cb2bca1SDoug Rabsonthe device 605cb2bca1SDoug Rabson.Pa special 615cb2bca1SDoug Rabsonto the global file system namespace at the location 625cb2bca1SDoug Rabsonindicated by 635cb2bca1SDoug Rabson.Pa node . 645cb2bca1SDoug RabsonThis command is normally executed by 655cb2bca1SDoug Rabson.Xr mount 8 665cb2bca1SDoug Rabsonat boot time, but can be used by any user to mount an 675cb2bca1SDoug RabsonMS-DOS file system on any directory that they own (provided, 685cb2bca1SDoug Rabsonof course, that they have appropriate access to the device that 695cb2bca1SDoug Rabsoncontains the file system). 705cb2bca1SDoug Rabson.Pp 715cb2bca1SDoug RabsonThe options are as follows: 725cb2bca1SDoug Rabson.Bl -tag -width Ds 73a92aaa1aSJordan K. Hubbard.It Fl o Ar options 74a92aaa1aSJordan K. HubbardUse the specified mount 75a92aaa1aSJordan K. Hubbard.Ar options , 76a92aaa1aSJordan K. Hubbardas described in 77b6b3bf12SBruce M Simpson.Xr mount 8 . 78b6b3bf12SBruce M SimpsonThe following MSDOS file system-specific options are available: 79b6b3bf12SBruce M Simpson.Bl -tag -width indent 80b6b3bf12SBruce M Simpson.It Cm longnames 81b6b3bf12SBruce M SimpsonForce Windows 95 long filenames to be visible. 82b6b3bf12SBruce M Simpson.It Cm shortnames 83b6b3bf12SBruce M SimpsonForce only the old MS-DOS 8.3 style filenames to be visible. 84b6b3bf12SBruce M Simpson.It Cm nowin95 85b6b3bf12SBruce M SimpsonCompletely ignore Windows 95 extended file information. 86b6b3bf12SBruce M Simpson.El 87a92aaa1aSJordan K. Hubbard.It Fl u Ar uid 885cb2bca1SDoug RabsonSet the owner of the files in the file system to 895cb2bca1SDoug Rabson.Ar uid . 905cb2bca1SDoug RabsonThe default owner is the owner of the directory 915cb2bca1SDoug Rabsonon which the file system is being mounted. 92a92aaa1aSJordan K. Hubbard.It Fl g Ar gid 935cb2bca1SDoug RabsonSet the group of the files in the file system to 945cb2bca1SDoug Rabson.Ar gid . 955cb2bca1SDoug RabsonThe default group is the group of the directory 965cb2bca1SDoug Rabsonon which the file system is being mounted. 97a92aaa1aSJordan K. Hubbard.It Fl m Ar mask 985cb2bca1SDoug RabsonSpecify the maximum file permissions for files 995cb2bca1SDoug Rabsonin the file system. 100750f6fe3SPhilippe Charnier(For example, a 101750f6fe3SPhilippe Charnier.Ar mask 102750f6fe3SPhilippe Charnierof 1035cb2bca1SDoug Rabson.Li 755 1045cb2bca1SDoug Rabsonspecifies that, by default, the owner should have 1055cb2bca1SDoug Rabsonread, write, and execute permissions for files, but 1065cb2bca1SDoug Rabsonothers should only have read and execute permissions. 1075cb2bca1SDoug RabsonSee 1085cb2bca1SDoug Rabson.Xr chmod 1 109c98a31caSTom Rhodesfor more information about octal file modes. 1105cb2bca1SDoug RabsonOnly the nine low-order bits of 1115cb2bca1SDoug Rabson.Ar mask 1125cb2bca1SDoug Rabsonare used. 113c98a31caSTom RhodesThe value of 114c98a31caSTom Rhodes.Ar -M 115c98a31caSTom Rhodesis used if it is supplied and 116c98a31caSTom Rhodes.Ar -m 117c98a31caSTom Rhodesis omitted. 118750f6fe3SPhilippe CharnierThe default 119750f6fe3SPhilippe Charnier.Ar mask 120750f6fe3SPhilippe Charnieris taken from the 1215cb2bca1SDoug Rabsondirectory on which the file system is being mounted. 122c98a31caSTom Rhodes.It Fl M Ar mask 123c98a31caSTom RhodesSpecify the maximum file permissions for directories 124c98a31caSTom Rhodesin the file system. 125c98a31caSTom RhodesThe value of 126c98a31caSTom Rhodes.Ar -m 127c98a31caSTom Rhodesis used if it is supplied and 128c98a31caSTom Rhodes.Ar -M 129c98a31caSTom Rhodesis omitted. 130c98a31caSTom RhodesSee the previous option's description for details. 131a92aaa1aSJordan K. Hubbard.It Fl s 132a92aaa1aSJordan K. HubbardForce behaviour to 133a92aaa1aSJordan K. Hubbardignore and not generate Win'95 long filenames. 134a92aaa1aSJordan K. Hubbard.It Fl l 135a92aaa1aSJordan K. HubbardForce listing and generation of 136a92aaa1aSJordan K. HubbardWin'95 long filenames 137a92aaa1aSJordan K. Hubbardand separate creation/modification/access dates. 138a92aaa1aSJordan K. Hubbard.Pp 139a92aaa1aSJordan K. HubbardIf neither 140a92aaa1aSJordan K. Hubbard.Fl s 141a92aaa1aSJordan K. Hubbardnor 142a92aaa1aSJordan K. Hubbard.Fl l 143a92aaa1aSJordan K. Hubbardare given, 144a92aaa1aSJordan K. Hubbard.Nm 145a92aaa1aSJordan K. Hubbardsearches the root directory of the file system to 146a92aaa1aSJordan K. Hubbardbe mounted for any existing Win'95 long filenames. 147394fd4a6SDmitrij TejblumIf no such entries are found, but short DOS filenames are found, 148a92aaa1aSJordan K. Hubbard.Fl s 149ef8f7ac9SSheldon Hearnis the default. 150ef8f7ac9SSheldon HearnOtherwise 151a92aaa1aSJordan K. Hubbard.Fl l 152a92aaa1aSJordan K. Hubbardis assumed. 153a92aaa1aSJordan K. Hubbard.It Fl 9 154a92aaa1aSJordan K. HubbardIgnore the special Win'95 directory entries even 155ef8f7ac9SSheldon Hearnif deleting or renaming a file. 156ef8f7ac9SSheldon HearnThis forces 157a92aaa1aSJordan K. Hubbard.Fl s . 158a92aaa1aSJordan K. Hubbard.\".It Fl G 159a92aaa1aSJordan K. Hubbard.\"This option causes the file system to be interpreted as an Atari-Gemdos 160d04b5dfeSRuslan Ermilov.\"file system. 161d04b5dfeSRuslan Ermilov.\"The differences to the MS-DOS file system are minimal and 162d04b5dfeSRuslan Ermilov.\"limited to the boot block. 163d04b5dfeSRuslan Ermilov.\"This option enforces 164a92aaa1aSJordan K. Hubbard.\".Fl s . 16521831438SAndrey A. Chernov.It Fl L Ar locale 166c4f02a89SMax KhonSpecify locale name used for file name conversions 16721831438SAndrey A. Chernovfor DOS and Win'95 names. 16828847281SAndrey A. ChernovBy default ISO 8859-1 assumed as local character set. 169c4f02a89SMax Khon.It Fl D Ar dos-codepage 170c4f02a89SMax KhonSpecify the MS-DOS code page (aka IBM/OEM code page) name used for 171c4f02a89SMax Khonfile name conversions for DOS names. 17221831438SAndrey A. Chernov.It Fl W Ar table 173d04b5dfeSRuslan Ermilov.Bf Em 174d04b5dfeSRuslan ErmilovThis option is preserved for backward compatibility purpose only, 175d04b5dfeSRuslan Ermilovand will be removed in the future. 176d04b5dfeSRuslan ErmilovPlease avoid using this option. 177d04b5dfeSRuslan Ermilov.Ef 1789934eb16SAndrey A. Chernov.Pp 179d04b5dfeSRuslan ErmilovSpecify text file name with conversion table: 180d04b5dfeSRuslan Ermilov.Pa iso22dos , iso72dos , koi2dos , koi8u2dos . 1814e3e206eSAndrey A. Chernov.El 182c4f02a89SMax Khon.Sh EXAMPLES 183d04b5dfeSRuslan ErmilovTo mount a Russian MS-DOS file system located in 184d04b5dfeSRuslan Ermilov.Pa /dev/ad1s1 : 185c4f02a89SMax Khon.Pp 186d04b5dfeSRuslan Ermilov.Dl "mount_msdosfs -L ru_RU.KOI8-R -D CP866 /dev/ad1s1 /mnt" 187d04b5dfeSRuslan Ermilov.Pp 188d04b5dfeSRuslan ErmilovTo mount a Japanese MS-DOS file system located in 189d04b5dfeSRuslan Ermilov.Pa /dev/ad1s1 : 190d04b5dfeSRuslan Ermilov.Pp 191d04b5dfeSRuslan Ermilov.Dl "mount_msdosfs -L ja_JP.eucJP -D CP932 /dev/ad1s1 /mnt" 1925cb2bca1SDoug Rabson.Sh SEE ALSO 1935cb2bca1SDoug Rabson.Xr mount 2 , 1945cb2bca1SDoug Rabson.Xr unmount 2 , 195a92aaa1aSJordan K. Hubbard.Xr fstab 5 , 196a92aaa1aSJordan K. Hubbard.Xr mount 8 197c4f02a89SMax Khon.Pp 198c4f02a89SMax KhonList of Localized MS Operating Systems: 199c4f02a89SMax Khon.Pa http://www.microsoft.com/globaldev/reference/oslocversion.mspx . 2005cb2bca1SDoug Rabson.Sh CAVEATS 201a92aaa1aSJordan K. HubbardThe use of the 202a92aaa1aSJordan K. Hubbard.Fl 9 203a92aaa1aSJordan K. Hubbardflag could result in damaged file systems, 204a92aaa1aSJordan K. Hubbardalbeit the damage is in part taken care of by 205a92aaa1aSJordan K. Hubbardprocedures similar to the ones used in Win'95. 206d02e870cSGary Palmer.Pp 2072f5275d0SBruce Evans.Fx 2.1 2082f5275d0SBruce Evansand earlier versions could not handle cluster sizes larger than 16K. 2092f5275d0SBruce EvansJust mounting an MS-DOS file system could cause corruption to any 2102f5275d0SBruce Evansmounted file system. 2112f5275d0SBruce EvansCluster sizes larger than 16K are unavoidable for file system sizes 2122f5275d0SBruce Evanslarger than 1G, and also occur when file systems larger than 1G are 2132f5275d0SBruce Evansshrunk to smaller than 1G using FIPS. 2145cb2bca1SDoug Rabson.Sh HISTORY 2155cb2bca1SDoug RabsonThe 216a92aaa1aSJordan K. Hubbard.Nm 2172f5275d0SBruce Evansutility first appeared in 2182f5275d0SBruce Evans.Fx 2.0 . 2195cb2bca1SDoug RabsonIts predecessor, the 2205cb2bca1SDoug Rabson.Nm mount_pcfs 2212f5275d0SBruce Evansutility appeared in 2222f5275d0SBruce Evans.Fx 1.0 , 2232f5275d0SBruce Evansand was abandoned in favor 2245cb2bca1SDoug Rabsonof the more aptly-named 2257c7fb079SRuslan Ermilov.Nm . 226c4f02a89SMax Khon.Pp 227c4f02a89SMax KhonThe character code conversion routine was added by 228c4f02a89SMax Khon.An Ryuichiro Imura Aq imura@ryu16.org 229c4f02a89SMax Khonat 2003. 230