1 .\" $NetBSD: mount_ntfs.8,v 1.16 2004/04/23 02:58:27 simonb Exp $
3 .\" Copyright (c) 1993,1994 Christopher G. Demetriou
4 .\" Copyright (c) 1999 Semen Ustimenko
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. All advertising materials mentioning features or use of this software
16 .\" must display the following acknowledgment:
17 .\" This product includes software developed by Christopher G. Demetriou.
18 .\" 3. The name of the author may not be used to endorse or promote products
19 .\" derived from this software without specific prior written permission
21 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 .\" Id: mount_ntfs.8,v 1.3 1999/05/04 11:34:33 jkoshy Exp
39 .Nd mount an NTFS file system
52 command attaches the NTFS filesystem residing on the device
54 to the global filesystem namespace at the location
61 are converted to absolute paths before use.
62 This command is normally executed by
64 at boot time, but can be used by any user to mount an
65 NTFS file system on any directory that they own (provided,
66 of course, that they have appropriate access to the device that
67 contains the file system).
69 The supported NTFS versions include both NTFS4, as used by Microsoft
70 Windows NT 4.0, and NTFS5, as used by Microsoft Windows 2000 and XP.
72 The options are as follows:
75 Force behaviour to return MS-DOS 8.3 names also on
78 Make name lookup case insensitive for all names except POSIX names.
80 Set the owner of the files in the file system to
82 The default owner is the owner of the directory
83 on which the file system is being mounted.
85 Set the group of the files in the file system to
87 The default group is the group of the directory
88 on which the file system is being mounted.
90 Specify the maximum file permissions for files
94 .Ss NTFS file attributes
95 NTFS file attributes can be accessed in the following way:
96 .Bd -literal -offset indent
97 foo[[:ATTRTYPE]:ATTRNAME]
101 is one of identifier listed in $AttrDef file of volume.
104 is an attribute name.
109 To get volume name (in Unicode):
110 .Bd -literal -offset indent
111 # cat /mnt/\\$Volume:\\$VOLUME_NAME
114 To read directory raw data:
115 .Bd -literal -offset indent
116 # cat /mnt/foodir:\\$INDEX_ROOT:\\$I30
118 .Ss Limited support for writing
119 There is limited writing ability for files.
123 file must be non-resident
127 contain any holes (uninitialized areas)
129 file can't be compressed
132 Note that it's not currently possible to create or remove files
136 do not mount NTFS filesystems read-write.
137 The write support is not very useful and is not tested well.
138 It's not safe to write to any file on NTFS; you might damage the filesystem.
139 Unless you want to debug NTFS filesystem code, mount the NTFS filesystem
149 Support for NTFS first appeared in
153 and first appeared in
156 NTFS kernel implementation,
158 and this manual were originally written by
159 .An Semen Ustimenko Aq semenu@FreeBSD.org .
165 .Aq christos@NetBSD.org
168 .Aq jdolecek@NetBSD.org .
170 The write support should be enhanced to actually be able to change
171 file size, and to create and remove files and directories.
172 It's not very useful right now.
174 If the attempt to mount NTFS gives you an error like this:
176 # mount -t ntfs /dev/wd0k /mnt
177 mount_ntfs: /dev/wd0k on /mnt: Invalid argument
180 make sure that appropriate partition has correct entry in the
181 disk label, particularly that the partition offset is correct.
182 If the NTFS partition is the first partition on the disk, the
183 offset should be '63' on i386 (see
186 could help you to set up the disk label correctly.
188 If the NTFS partition is marked as
190 under Microsoft Windows XP,
191 it won't be possible to access it under