ntfs-3g/ntfsprogs/ntfscp.8.in

120 lines
3.9 KiB
Groff
Raw Normal View History

2007-09-25 02:58:02 +08:00
.\" Copyright (c) 2004\-2007 Yura Pakhuchiy.
.\" Copyright (c) 2005 Richard Russon.
2004-10-13 04:05:02 +08:00
.\" This file may be copied under the terms of the GNU Public License.
.\"
.TH NTFSCP 8 "September 2007" "ntfs-3g @VERSION@"
2004-10-13 04:05:02 +08:00
.SH NAME
2007-09-25 02:58:02 +08:00
ntfscp \- copy file to an NTFS volume.
2004-10-13 04:05:02 +08:00
.SH SYNOPSIS
2007-09-25 02:58:02 +08:00
\fBntfscp\fR [\fIoptions\fR] \fIdevice source_file destination\fR
2004-10-13 04:05:02 +08:00
.SH DESCRIPTION
2007-09-25 02:58:02 +08:00
\fBntfscp\fR will copy file to an NTFS volume. \fIdestination\fR can be either
file or directory. In case if \fIdestination\fR is directory specified by name
then \fIsource_file\fR is copied into this directory, in case if
\fIdestination\fR is directory and specified by inode number then unnamed data
attribute is created for this inode and \fIsource_file\fR is copied into it
(WARNING: it's unusual to have unnamed data streams in the directories, think
twice before specifying directory by inode number).
2004-10-13 04:05:02 +08:00
.SH OPTIONS
Below is a summary of all the options that
.B ntfscp
accepts. Nearly all options have two equivalent names. The short name is
preceded by
.B \-
2004-10-13 04:05:02 +08:00
and the long name is preceded by
.BR \-\- .
Any single letter options, that don't take an argument, can be combined into a
single command, e.g.
.B \-fv
2004-10-13 04:05:02 +08:00
is equivalent to
.BR "\-f \-v" .
Long named options can be abbreviated to any unique prefix of their name.
.TP
\fB\-a\fR, \fB\-\-attribute\fR NUM
2004-10-13 04:05:02 +08:00
Write to this attribute.
.TP
\fB\-i\fR, \fB\-\-inode\fR
2004-10-13 04:05:02 +08:00
Treat
.I destination
2004-10-13 04:05:02 +08:00
as inode number.
.TP
\fB\-m\fR, \fB\-\-min-fragments\fR
Minimize fragmentation when allocating space to the attribute. This is
mostly useful when creating big files.
.TP
\fB\-N\fR, \fB\-\-attr\-name\fR NAME
2004-10-13 04:05:02 +08:00
Write to attribute with this name.
.TP
\fB\-n\fR, \fB\-\-no\-action\fR
2004-10-13 04:05:02 +08:00
Use this option to make a test run before doing the real copy operation.
Volume will be opened read\-only and no write will be done.
2004-10-13 04:05:02 +08:00
.TP
\fB\-f\fR, \fB\-\-force\fR
2004-10-13 04:05:02 +08:00
This will override some sensible defaults, such as not working with a mounted
volume. Use this option with caution.
.TP
\fB\-h\fR, \fB\-\-help\fR
2004-10-13 04:05:02 +08:00
Show a list of options with a brief description of each one.
.TP
\fB\-q\fR, \fB\-\-quiet\fR
2004-10-13 04:05:02 +08:00
Suppress some debug/warning/error messages.
.TP
\fB\-t\fR, \fB\-\-timestamp\fR
Copy the modification time of source_file to destination. This is
not compatible with \fB\-\-attr\-name\fR and \fB\-\-attribute\fR.
.TP
\fB\-V\fR, \fB\-\-version\fR
2004-10-13 04:05:02 +08:00
Show the version number, copyright and license
.BR ntfscp .
.TP
\fB\-v\fR, \fB\-\-verbose\fR
2004-10-13 04:05:02 +08:00
Display more debug/warning/error messages.
.SH DATA STREAMS
All data on NTFS is stored in streams, which can have names. A file can have
more than one data streams, but exactly one must have no name. The size of a
file is the size of its unnamed data stream. Usually when you don't specify
stream name you are access to unnamed data stream. If you want access to named
data stream you need to add ":stream_name" to the filename. For example: by
opening "some.mp3:artist" you will open stream "artist" in "some.mp3". But
windows usually prevent you from accessing to named data streams, so you need
to use some program like FAR or utils from cygwin to access named data streams.
2004-10-13 04:05:02 +08:00
.SH EXAMPLES
Copy new_boot.ini from /home/user as boot.ini to the root of an /dev/hda1 NTFS
volume:
2004-10-13 04:05:02 +08:00
.RS
.sp
.B ntfscp /dev/hda1 /home/user/new_boot.ini boot.ini
2004-10-13 04:05:02 +08:00
.sp
.RE
Copy myfile to C:\\some\\path\\myfile:stream (assume that /dev/hda1 letter in
windows is C):
2004-10-13 04:05:02 +08:00
.RS
.sp
.B ntfscp \-N stream /dev/hda1 myfile /some/path
.sp
.RE
2004-10-13 04:05:02 +08:00
.SH BUGS
2007-09-25 02:58:02 +08:00
There are no known problems with \fBntfscp\fR. If you find a bug please send an
email describing the problem to the development team:
.br
2004-10-13 04:05:02 +08:00
.nh
ntfs\-3g\-devel@lists.sf.net
2004-10-13 04:05:02 +08:00
.hy
.SH AUTHORS
2007-09-25 02:58:02 +08:00
\fBntfscp\fR was written by Yura Pakhuchiy, with contributions from Anton
Altaparmakov and Hil Liao.
It was ported to ntfs-3g by Erik Larsson.
.SH DEDICATION
With love to Marina Sapego.
2004-10-13 04:05:02 +08:00
.SH AVAILABILITY
.B ntfscp
is part of the
.B ntfs-3g
package and is available from:
.br
.nh
http://www.tuxera.com/community/
.hy
2004-10-13 04:05:02 +08:00
.SH SEE ALSO
.BR ntfsprogs (8)