2005-01-31 08:19:18 +03:00
|
|
|
.\" $NetBSD: mount_ntfs.8,v 1.17 2005/01/31 05:19:19 erh Exp $
|
1999-05-06 20:05:21 +04:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1993,1994 Christopher G. Demetriou
|
|
|
|
.\" Copyright (c) 1999 Semen Ustimenko
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgment:
|
|
|
|
.\" This product includes software developed by Christopher G. Demetriou.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2001-11-16 13:25:42 +03:00
|
|
|
.\" Id: mount_ntfs.8,v 1.3 1999/05/04 11:34:33 jkoshy Exp
|
1999-05-06 20:05:21 +04:00
|
|
|
.\"
|
2001-10-31 22:16:36 +03:00
|
|
|
.Dd October 31, 2001
|
1999-05-06 20:05:21 +04:00
|
|
|
.Dt MOUNT_NTFS 8
|
1999-05-06 20:08:54 +04:00
|
|
|
.Os
|
1999-05-06 20:05:21 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm mount_ntfs
|
|
|
|
.Nd mount an NTFS file system
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm mount_ntfs
|
|
|
|
.Op Fl a
|
|
|
|
.Op Fl i
|
|
|
|
.Op Fl u Ar uid
|
|
|
|
.Op Fl g Ar gid
|
|
|
|
.Op Fl m Ar mask
|
|
|
|
.Pa special
|
|
|
|
.Pa node
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command attaches the NTFS filesystem residing on the device
|
|
|
|
.Pa special
|
|
|
|
to the global filesystem namespace at the location
|
|
|
|
indicated by
|
|
|
|
.Pa node .
|
2005-01-31 08:19:18 +03:00
|
|
|
Both
|
|
|
|
.Ar special
|
|
|
|
and
|
|
|
|
.Ar node
|
|
|
|
are converted to absolute paths before use.
|
1999-05-06 20:05:21 +04:00
|
|
|
This command is normally executed by
|
|
|
|
.Xr mount 8
|
|
|
|
at boot time, but can be used by any user to mount an
|
|
|
|
NTFS file system on any directory that they own (provided,
|
|
|
|
of course, that they have appropriate access to the device that
|
|
|
|
contains the file system).
|
|
|
|
.Pp
|
2001-10-31 22:16:36 +03:00
|
|
|
The supported NTFS versions include both NTFS4, as used by Microsoft
|
|
|
|
Windows NT 4.0, and NTFS5, as used by Microsoft Windows 2000 and XP.
|
|
|
|
.Pp
|
1999-05-06 20:05:21 +04:00
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a
|
2001-10-31 22:16:36 +03:00
|
|
|
Force behaviour to return MS-DOS 8.3 names also on
|
1999-05-06 20:05:21 +04:00
|
|
|
.Fn readdir .
|
|
|
|
.It Fl i
|
|
|
|
Make name lookup case insensitive for all names except POSIX names.
|
|
|
|
.It Fl u Ar uid
|
|
|
|
Set the owner of the files in the file system to
|
|
|
|
.Ar uid .
|
|
|
|
The default owner is the owner of the directory
|
|
|
|
on which the file system is being mounted.
|
|
|
|
.It Fl g Ar gid
|
|
|
|
Set the group of the files in the file system to
|
|
|
|
.Ar gid .
|
|
|
|
The default group is the group of the directory
|
|
|
|
on which the file system is being mounted.
|
|
|
|
.It Fl m Ar mask
|
|
|
|
Specify the maximum file permissions for files
|
|
|
|
in the file system.
|
|
|
|
.El
|
|
|
|
.Sh FEATURES
|
1999-12-17 17:43:07 +03:00
|
|
|
.Ss NTFS file attributes
|
2003-05-20 14:18:50 +04:00
|
|
|
NTFS file attributes can be accessed in the following way:
|
1999-05-06 20:05:21 +04:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
foo[[:ATTRTYPE]:ATTRNAME]
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
.Sq ATTRTYPE
|
2002-10-01 17:40:23 +04:00
|
|
|
is one of identifier listed in $AttrDef file of volume.
|
|
|
|
Default is $DATA.
|
1999-05-06 20:05:21 +04:00
|
|
|
.Sq ATTRNAME
|
2002-10-01 17:40:23 +04:00
|
|
|
is an attribute name.
|
|
|
|
Default is none.
|
1999-12-17 17:43:07 +03:00
|
|
|
.Pp
|
2001-11-16 14:59:47 +03:00
|
|
|
.Sy Examples :
|
1999-05-06 20:05:21 +04:00
|
|
|
.Pp
|
|
|
|
To get volume name (in Unicode):
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
# cat /mnt/\\$Volume:\\$VOLUME_NAME
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
To read directory raw data:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
# cat /mnt/foodir:\\$INDEX_ROOT:\\$I30
|
|
|
|
.Ed
|
1999-12-17 17:43:07 +03:00
|
|
|
.Ss Limited support for writing
|
2002-10-01 17:40:23 +04:00
|
|
|
There is limited writing ability for files.
|
|
|
|
Limitations:
|
2001-10-31 22:16:36 +03:00
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
2003-05-20 14:18:50 +04:00
|
|
|
file must be non-resident
|
2001-10-31 22:16:36 +03:00
|
|
|
.It
|
|
|
|
file must
|
|
|
|
.Em not
|
|
|
|
contain any holes (uninitialized areas)
|
|
|
|
.It
|
|
|
|
file can't be compressed
|
|
|
|
.El
|
|
|
|
.Pp
|
2003-05-20 14:18:50 +04:00
|
|
|
Note that it's not currently possible to create or remove files
|
|
|
|
on NTFS filesystems.
|
1999-12-17 17:43:07 +03:00
|
|
|
.Pp
|
2001-11-16 14:59:47 +03:00
|
|
|
.Sy Warning :
|
2002-10-01 17:40:23 +04:00
|
|
|
do not mount NTFS filesystems read-write.
|
|
|
|
The write support is not very useful and is not tested well.
|
2003-05-20 14:18:50 +04:00
|
|
|
It's not safe to write to any file on NTFS; you might damage the filesystem.
|
2001-10-31 22:16:36 +03:00
|
|
|
Unless you want to debug NTFS filesystem code, mount the NTFS filesystem
|
|
|
|
read-only.
|
1999-05-06 20:05:21 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mount 2 ,
|
|
|
|
.Xr unmount 2 ,
|
|
|
|
.Xr fstab 5 ,
|
2001-10-31 22:16:36 +03:00
|
|
|
.Xr disklabel 8 ,
|
2001-11-01 00:04:45 +03:00
|
|
|
.Xr mbrlabel 8 ,
|
1999-05-06 20:05:21 +04:00
|
|
|
.Xr mount 8
|
|
|
|
.Sh HISTORY
|
1999-12-17 17:43:07 +03:00
|
|
|
Support for NTFS first appeared in
|
1999-05-06 20:05:21 +04:00
|
|
|
.Fx 3.0 .
|
2003-05-20 14:18:50 +04:00
|
|
|
It was ported to
|
2001-11-16 14:59:47 +03:00
|
|
|
.Nx
|
|
|
|
and first appeared in
|
1999-12-17 17:43:07 +03:00
|
|
|
.Nx 1.5 .
|
2001-11-16 14:59:47 +03:00
|
|
|
.Sh AUTHORS
|
1999-05-06 20:05:21 +04:00
|
|
|
NTFS kernel implementation,
|
|
|
|
.Nm
|
1999-12-17 17:43:07 +03:00
|
|
|
and this manual were originally written by
|
1999-05-06 20:05:21 +04:00
|
|
|
.An Semen Ustimenko Aq semenu@FreeBSD.org .
|
2001-11-16 14:59:47 +03:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nx
|
|
|
|
port was done by
|
2003-02-14 19:21:47 +03:00
|
|
|
.An Christos Zoulas
|
|
|
|
.Aq christos@NetBSD.org
|
1999-08-05 19:45:01 +04:00
|
|
|
and
|
2003-02-14 19:21:47 +03:00
|
|
|
.An Jaromir Dolecek
|
|
|
|
.Aq jdolecek@NetBSD.org .
|
2001-10-31 22:16:36 +03:00
|
|
|
.Sh BUGS
|
2003-05-20 14:18:50 +04:00
|
|
|
The write support should be enhanced to actually be able to change
|
2001-10-31 22:16:36 +03:00
|
|
|
file size, and to create and remove files and directories.
|
|
|
|
It's not very useful right now.
|
|
|
|
.Pp
|
2003-05-20 14:18:50 +04:00
|
|
|
If the attempt to mount NTFS gives you an error like this:
|
2001-10-31 22:16:36 +03:00
|
|
|
.Bd -literal
|
|
|
|
# mount -t ntfs /dev/wd0k /mnt
|
|
|
|
mount_ntfs: /dev/wd0k on /mnt: Invalid argument
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
make sure that appropriate partition has correct entry in the
|
2003-01-02 00:22:50 +03:00
|
|
|
disk label, particularly that the partition offset is correct.
|
|
|
|
If the NTFS partition is the first partition on the disk, the
|
2001-11-01 00:04:45 +03:00
|
|
|
offset should be '63' on i386 (see
|
2001-11-16 14:59:47 +03:00
|
|
|
.Xr disklabel 8 ) .
|
2001-11-01 00:04:45 +03:00
|
|
|
.Xr mbrlabel 8
|
2003-05-14 16:11:03 +04:00
|
|
|
could help you to set up the disk label correctly.
|
2001-11-01 00:04:45 +03:00
|
|
|
.Pp
|
2004-04-23 06:58:27 +04:00
|
|
|
If the NTFS partition is marked as
|
2001-11-01 00:04:45 +03:00
|
|
|
.Ql dynamic
|
|
|
|
under Microsoft Windows XP,
|
|
|
|
it won't be possible to access it under
|
|
|
|
.Nx
|
|
|
|
anymore.
|