The legacy FUSE module (ntfsmount) goes away. (ntfs-3g takes care of that part.)
parent
fc989c67b5
commit
bcc00717b0
38
configure.ac
38
configure.ac
|
@ -106,12 +106,6 @@ AC_ARG_ENABLE(gnome-vfs,
|
|||
enable_gnome_vfs=auto
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(fuse-module,
|
||||
AS_HELP_STRING(--disable-fuse-module,omit FUSE 'libntfs' interface
|
||||
(default=detect)), ,
|
||||
enable_fuse_module=auto
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(crypto,
|
||||
AS_HELP_STRING(--enable-crypto,enable crypto related code and utilities
|
||||
(default=no)), ,
|
||||
|
@ -201,37 +195,6 @@ if test "$enable_gnome_vfs" != "no"; then
|
|||
fi
|
||||
AM_CONDITIONAL(ENABLE_GNOME_VFS, $compile_gnome_vfs)
|
||||
|
||||
# Autodetect whether to build FUSE module or not.
|
||||
compile_fuse_module=false
|
||||
if test "$enable_fuse_module" != "no"; then
|
||||
case "$target_os" in
|
||||
linux*)
|
||||
PKG_CHECK_MODULES(FUSE_MODULE, fuse >= 2.3.0, [ compile_fuse_module=true ],
|
||||
if test "$enable_fuse_module" = "yes"; then
|
||||
AC_MSG_ERROR([ntfsmount requires FUSE version >= 2.3.0.])
|
||||
else
|
||||
AC_MSG_WARN([ntfsmount requires FUSE version >= 2.3.0.])
|
||||
fi
|
||||
);;
|
||||
freebsd*)
|
||||
PKG_CHECK_MODULES(FUSE_MODULE, fuse >= 2.5.0, [ compile_fuse_module=true ],
|
||||
if test "$enable_fuse_module" = "yes"; then
|
||||
AC_MSG_ERROR([ntfsmount requires FUSE version >= 2.5.0 under FreeBSD.])
|
||||
else
|
||||
AC_MSG_WARN([ntfsmount requires FUSE version >= 2.5.0 under FreeBSD.])
|
||||
fi
|
||||
);;
|
||||
*)
|
||||
if test "$enable_fuse_module" = "yes"; then
|
||||
AC_MSG_ERROR([ntfsmount can be built only under Linux and FreeBSD.])
|
||||
else
|
||||
AC_MSG_WARN([ntfsmount can be built only under Linux and FreeBSD.])
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_FUSE_MODULE, $compile_fuse_module)
|
||||
|
||||
PKG_CHECK_MODULES(NTFS_3G_MODULE, libntfs-3g >= 2010.5.22, [],
|
||||
AC_MSG_ERROR([ntfs-3g.progs requires libntfs-3g version >= 2010.5.22.])
|
||||
)
|
||||
|
@ -382,7 +345,6 @@ AC_CONFIG_FILES([
|
|||
ntfsprogs/ntfsinfo.8
|
||||
ntfsprogs/ntfslabel.8
|
||||
ntfsprogs/ntfsls.8
|
||||
ntfsprogs/ntfsmount.8
|
||||
ntfsprogs/ntfsprogs.8
|
||||
ntfsprogs/ntfsresize.8
|
||||
ntfsprogs/ntfsundelete.8
|
||||
|
|
|
@ -21,7 +21,7 @@ EXTRA_PROGRAMS = ntfsdump_logfile ntfswipe ntfstruncate ntfsmove \
|
|||
man_MANS = mkntfs.8 ntfsfix.8 ntfslabel.8 ntfsinfo.8 \
|
||||
ntfsundelete.8 ntfsresize.8 ntfsprogs.8 ntfsls.8 \
|
||||
ntfsclone.8 ntfscluster.8 ntfscat.8 ntfscp.8 \
|
||||
ntfsmount.8 ntfscmp.8
|
||||
ntfscmp.8
|
||||
EXTRA_MANS =
|
||||
|
||||
CLEANFILES = $(EXTRA_PROGRAMS)
|
||||
|
@ -30,10 +30,6 @@ MAINTAINERCLEANFILES = Makefile.in
|
|||
|
||||
linux_ntfsincludedir = -I$(top_srcdir)/include/ntfs
|
||||
|
||||
if ENABLE_FUSE_MODULE
|
||||
bin_PROGRAMS += ntfsmount
|
||||
endif
|
||||
|
||||
if ENABLE_CRYPTO
|
||||
EXTRA_PROGRAMS += ntfsdecrypt
|
||||
endif
|
||||
|
@ -89,13 +85,6 @@ ntfscp_SOURCES = ntfscp.c utils.c utils.h
|
|||
ntfscp_LDADD = $(AM_LIBS)
|
||||
ntfscp_LDFLAGS = $(AM_LFLAGS)
|
||||
|
||||
if ENABLE_FUSE_MODULE
|
||||
ntfsmount_SOURCES = ntfsmount.c utils.c utils.h
|
||||
ntfsmount_LDADD = $(AM_LIBS) $(FUSE_MODULE_LIBS)
|
||||
ntfsmount_LDFLAGS = $(AM_LFLAGS)
|
||||
ntfsmount_CFLAGS = $(FUSE_MODULE_CFLAGS) -DFUSE_USE_VERSION=25
|
||||
endif
|
||||
|
||||
ntfscmp_SOURCES = ntfscmp.c utils.c utils.h
|
||||
ntfscmp_LDADD = $(AM_LIBS)
|
||||
ntfscmp_LDFLAGS = $(AM_LFLAGS)
|
||||
|
@ -146,26 +135,16 @@ extra: extras
|
|||
|
||||
extras: libs $(EXTRA_PROGRAMS)
|
||||
|
||||
# mkfs.ntfs[.8] and mount.ntfs-fuse hard links
|
||||
# mkfs.ntfs[.8] hard link
|
||||
|
||||
install-exec-hook:
|
||||
$(INSTALL) -d $(DESTDIR)/sbin
|
||||
$(LN_S) -f $(sbindir)/mkntfs $(DESTDIR)/sbin/mkfs.ntfs
|
||||
if ENABLE_FUSE_MODULE
|
||||
$(LN_S) -f $(bindir)/ntfsmount $(DESTDIR)/sbin/mount.ntfs-fuse
|
||||
endif
|
||||
|
||||
install-data-hook:
|
||||
$(INSTALL) -d $(DESTDIR)$(man8dir)
|
||||
$(LN_S) -f mkntfs.8 $(DESTDIR)$(man8dir)/mkfs.ntfs.8
|
||||
if ENABLE_FUSE_MODULE
|
||||
$(LN_S) -f ntfsmount.8 $(DESTDIR)$(man8dir)/mount.ntfs-fuse.8
|
||||
endif
|
||||
|
||||
uninstall-local:
|
||||
$(RM) -f $(DESTDIR)/sbin/mkfs.ntfs
|
||||
$(RM) -f $(DESTDIR)$(man8dir)/mkfs.ntfs.8
|
||||
if ENABLE_FUSE_MODULE
|
||||
$(RM) -f $(DESTDIR)/sbin/mount.ntfs-fuse
|
||||
$(RM) -f $(DESTDIR)$(man8dir)/mount.ntfs-fuse.8
|
||||
endif
|
||||
|
|
|
@ -1,250 +0,0 @@
|
|||
.\" Copyright (c) 2005-2006 Yura Pakhuchiy.
|
||||
.\" Copyright (c) 2005 Richard Russon.
|
||||
.\" This file may be copied under the terms of the GNU Public License.
|
||||
.\"
|
||||
.TH NTFSMOUNT 8 "February 2006" "ntfsprogs @VERSION@"
|
||||
.SH NAME
|
||||
ntfsmount \- NTFS module for FUSE.
|
||||
.SH SYNOPSIS
|
||||
.B ntfsmount
|
||||
.I device mount_point
|
||||
[\fB\-o options\fR]
|
||||
.SH DESCRIPTION
|
||||
\fBntfsmount\fR is a \fBFUSE\fR module that rely on \fBlibntfs\fR. You need
|
||||
\fBFUSE\fR to compile it, \fBxattr\fR is recommended, but not mandatory.
|
||||
.TP
|
||||
.B Fully implemented ntfsmount features:
|
||||
\(bu Read\-write access to normal and sparse files.
|
||||
.br
|
||||
\(bu Read\-only access to compressed files.
|
||||
.br
|
||||
\(bu Access to special Interix files (symlinks, devices, FIFOs).
|
||||
.br
|
||||
\(bu List/Read/Write/Add/Remove named data streams.
|
||||
.br
|
||||
\(bu Supports Linux and FreeBSD.
|
||||
.TP
|
||||
.B Partly implemented features:
|
||||
\(bu Create/Delete/Move files and directories.
|
||||
.br
|
||||
\(bu Hard link files.
|
||||
.SH OPTIONS
|
||||
Below is a summary of all the options that \fBntfsmount\fR accepts.
|
||||
.TP
|
||||
.B uid=, gid=, umask=
|
||||
Provide default owner, group, and access mode mask.
|
||||
These options work as documented in mount(8). By
|
||||
default, the files/directories are owned by user that mounted volume and
|
||||
he/she has read and write permissions, as well as
|
||||
browse permission for directories. No one else has any
|
||||
access permissions. I.e. the mode on all files is by
|
||||
default rw\-\-\-\-\-\-\- and for directories rwx\-\-\-\-\-\-, a
|
||||
consequence of the default fmask=0177 and dmask=0077.
|
||||
Using a umask of zero will grant all permissions to
|
||||
everyone, i.e. all files and directories will have mode
|
||||
rwxrwxrwx.
|
||||
.TP
|
||||
.B fmask=, dmask=
|
||||
Instead of specifying umask which applies both to
|
||||
files and directories, fmask applies only to files and
|
||||
mask only to directories.
|
||||
.TP
|
||||
.B show_sys_files
|
||||
If show_sys_files is specified, show the system files
|
||||
in directory listings. Otherwise the default behaviour
|
||||
is to hide the system files.
|
||||
Note that even when show_sys_files is specified, "$MFT"
|
||||
may will not be visible due to bugs/mis\-features in glibc.
|
||||
Further, note that irrespective of show_sys_files, all
|
||||
files are accessible by name, i.e. you can always do
|
||||
"ls \-l '$UpCase'" for example to specifically show the
|
||||
system file containing the Unicode upcase table.
|
||||
.TP
|
||||
.B default_permissions
|
||||
By default FUSE doesn't check file access permissions, the
|
||||
filesystem is free to implement it's access policy or leave it to
|
||||
the underlying file access mechanism (e.g. in case of network
|
||||
filesystems). This option enables permission checking, restricting
|
||||
access based on file mode. This is option is usually useful
|
||||
together with the 'allow_other' mount option.
|
||||
.TP
|
||||
.B allow_other
|
||||
This option overrides the security measure restricting file access
|
||||
to the user mounting the filesystem. This option is by default only
|
||||
allowed to root, but this restriction can be removed with a
|
||||
configuration option described in the previous section.
|
||||
.TP
|
||||
.B kernel_cache
|
||||
(NOTE: Only for FUSE 2.3.0, with FUSE >= 2.4.0 on by default)
|
||||
This option disables flushing the cache of the file contents on
|
||||
every open(). This should only be enabled on filesystems, where the
|
||||
file data is never changed externally (not through the mounted FUSE
|
||||
filesystem). Thus it is not suitable for network filesystems and
|
||||
other "intermediate" filesystems.
|
||||
NOTE: if this option is not specified (and neither 'direct_io') data
|
||||
is still cached after the open(), so a read() system call will not
|
||||
always initiate a read operation.
|
||||
.TP
|
||||
.B large_read
|
||||
Issue large read requests. This can improve performance for some
|
||||
filesystems, but can also degrade performance. This option is only
|
||||
useful on 2.4.X kernels, as on 2.6 kernels requests size is
|
||||
automatically determined for optimum performance.
|
||||
.TP
|
||||
.B direct_io
|
||||
(NOTE: Only for FUSE 2.3.0)
|
||||
This option disables the use of page cache (file content cache) in
|
||||
the kernel for this filesystem. This has several affects:
|
||||
- Each read() or write() system call will initiate one or more
|
||||
read or write operations, data will not be cached in the
|
||||
kernel.
|
||||
- The return value of the read() and write() system calls will
|
||||
correspond to the return values of the read and write
|
||||
operations. This is useful for example if the file size is not
|
||||
known in advance (before reading it).
|
||||
.TP
|
||||
.B max_read=
|
||||
With this option the maximum size of read operations can be set.
|
||||
The default is infinite. Note that the size of read requests is
|
||||
limited anyway to 32 pages (which is 128kbyte on i386).
|
||||
.TP
|
||||
.B force
|
||||
Force mount even if errors occurred. Use this option only if you know what
|
||||
are you doing and don't cry about data loss.
|
||||
.TP
|
||||
.B ro
|
||||
Mount filesystem read\-only.
|
||||
.TP
|
||||
.B no_def_opts
|
||||
By default ntfsmount acts as "default_permissions,allow_other" was passed to it,
|
||||
this option cancel this behaviour.
|
||||
.TP
|
||||
.B silent
|
||||
Do nothing on chmod and chown operations, but do not return error.
|
||||
.TP
|
||||
.B locale=
|
||||
You can set locale with this option. It's useful if locale enviroment variables
|
||||
are not set before partitions from /etc/fstab had been mounted.
|
||||
.TP
|
||||
.B streams_interface=
|
||||
This option controls how the user can access named data streams. It can be set
|
||||
to, one of \fBnone\fR, \fBwindows\fR or \fBxattr\fR. If the option is set to
|
||||
\fBnone\fR, the user will have no access to the named data streams. If it's set
|
||||
to \fBwindows\fR, then the user can access them just like in Windows (eg. cat
|
||||
file:stream). If it's set to \fBxattr\fR, then the named data streams are
|
||||
mapped to xattrs and user can manipulate them using \fB{get,set}fattr\fR
|
||||
utilities.
|
||||
.TP
|
||||
.B debug
|
||||
Makes ntfsmount to not detach from terminal and print a lot of debug output from
|
||||
libntfs and FUSE.
|
||||
.TP
|
||||
.B no_detach
|
||||
Same as above but with less debug output.
|
||||
.SH DATA STREAMS
|
||||
All data on NTFS is stored in streams. Every file has exactly one unnamed
|
||||
data stream and can have many named data streams. The size of a file is the
|
||||
size of its unnamed data stream. By default, \fBntfsmount\fR will only read
|
||||
the unnamed data stream.
|
||||
.PP
|
||||
By using the options "streams_interface=windows", you will be able to read
|
||||
any named data streams, simply by specifying the stream's name after a colon.
|
||||
For example:
|
||||
.RS
|
||||
.sp
|
||||
cat some.mp3:artist
|
||||
.sp
|
||||
.RE
|
||||
Windows applications don't, consistently, allow you to read named data
|
||||
streams, so you are recommended to use tools like FAR, or utils from Cygwin.
|
||||
.PP
|
||||
Named data streams act like normals files, so you can read from them, write to
|
||||
them and even delete them (using rm). You can list all the named data streams
|
||||
a file has by getting the "ntfs.streams.list" extended attribute. NOTE: This
|
||||
list feature is unique to the \fBntfsmount\fR and may never be supported by the
|
||||
\fBkernel driver\fR.
|
||||
.SH EXAMPLES
|
||||
Mount /dev/hda1 to /mnt/ntfs\-fuse using ntfsmount:
|
||||
.RS
|
||||
.sp
|
||||
.B ntfsmount /dev/hda1 /mnt/ntfs\-fuse
|
||||
.sp
|
||||
.RE
|
||||
Read\-only mount /dev/hda5 to /home/user/mnt and make user with uid 1000 to be
|
||||
owner of all files:
|
||||
.RS
|
||||
.sp
|
||||
.B ntfsmount /dev/hda5 /home/user/mnt \-o ro,uid=1000
|
||||
.sp
|
||||
.RE
|
||||
/etc/fstab entry for above:
|
||||
.RS
|
||||
.sp
|
||||
.B /dev/hda5 /home/user/mnt ntfs\-fuse ro,uid=1000 0 0
|
||||
.sp
|
||||
.RE
|
||||
Umount /mnt/ntfs\-fuse:
|
||||
.RS
|
||||
.sp
|
||||
.B fusermount \-u /mnt/ntfs\-fuse
|
||||
.sp
|
||||
.RE
|
||||
Cat "artist" named data stream of "some.mp3":
|
||||
.RS
|
||||
.sp
|
||||
.B cat some.mp3:artist
|
||||
.sp
|
||||
.RE
|
||||
Write "Sympho Black Metal" to "genre" named data stream of "some.mp3":
|
||||
.RS
|
||||
.sp
|
||||
.B echo Sympho Black Metal > some.mp3:genre
|
||||
.sp
|
||||
.RE
|
||||
Remove "album" named data stream from "some.mp3":
|
||||
.RS
|
||||
.sp
|
||||
.B rm some.mp3:album
|
||||
.sp
|
||||
.RE
|
||||
List all named data streams for "some.mp3":
|
||||
.RS
|
||||
.sp
|
||||
.B getfattr \-n ntfs.streams.list some.mp3
|
||||
.sp
|
||||
.RE
|
||||
.SH BUGS
|
||||
There are no known problems with
|
||||
.BR ntfsmount .
|
||||
If you find a bug please send an email describing the problem to the
|
||||
development team:
|
||||
.br
|
||||
.nh
|
||||
linux\-ntfs\-dev@lists.sourceforge.net
|
||||
.hy
|
||||
.SH AUTHORS
|
||||
.B ntfsmount
|
||||
was written by Yura Pakhuchiy, with contributions from Yuval Fledel.
|
||||
.SH DEDICATION
|
||||
With love to Marina Sapego.
|
||||
.SH THANKS
|
||||
Many thanks to Miklos Szeredi for advice and answers about FUSE.
|
||||
.SH AVAILABILITY
|
||||
.B ntfsmount
|
||||
is part of the
|
||||
.B ntfsprogs
|
||||
package and is available from:
|
||||
.br
|
||||
.nh
|
||||
http://www.linux\-ntfs.org/content/view/19/37
|
||||
.hy
|
||||
.sp
|
||||
The manual pages are available online at:
|
||||
.br
|
||||
.nh
|
||||
http://man.linux-ntfs.org/
|
||||
.hy
|
||||
.SH SEE ALSO
|
||||
.BR ntfsprogs (8),
|
||||
.BR attr (5),
|
||||
.BR getfattr (1)
|
File diff suppressed because it is too large
Load Diff
|
@ -43,9 +43,6 @@ perform a thorough check next time it boots.
|
|||
.BR ntfsls (8)
|
||||
\- List information about files in a directory residing on an NTFS.
|
||||
.PP
|
||||
.BR ntfsmount (8)
|
||||
\- Read-write NTFS userspace driver.
|
||||
.PP
|
||||
.BR ntfsresize (8)
|
||||
\- Resize NTFS without losing data.
|
||||
.PP
|
||||
|
|
Loading…
Reference in New Issue