1 .\" Copyright (c) 2004\-2007 Yura Pakhuchiy.
2 .\" Copyright (c) 2005 Richard Russon.
3 .\" This file may be copied under the terms of the GNU Public License.
5 .TH NTFSCP 8 "September 2007" "ntfs-3g @VERSION@"
7 ntfscp \- copy file to an NTFS volume.
9 \fBntfscp\fR [\fIoptions\fR] \fIdevice source_file destination\fR
11 \fBntfscp\fR will copy file to an NTFS volume. \fIdestination\fR can be either
12 file or directory. In case if \fIdestination\fR is directory specified by name
13 then \fIsource_file\fR is copied into this directory, in case if
14 \fIdestination\fR is directory and specified by inode number then unnamed data
15 attribute is created for this inode and \fIsource_file\fR is copied into it
16 (WARNING: it's unusual to have unnamed data streams in the directories, think
17 twice before specifying directory by inode number).
19 Below is a summary of all the options that
21 accepts. Nearly all options have two equivalent names. The short name is
24 and the long name is preceded by
26 Any single letter options, that don't take an argument, can be combined into a
31 Long named options can be abbreviated to any unique prefix of their name.
33 \fB\-a\fR, \fB\-\-attribute\fR NUM
34 Write to this attribute.
36 \fB\-i\fR, \fB\-\-inode\fR
41 \fB\-N\fR, \fB\-\-attr\-name\fR NAME
42 Write to attribute with this name.
44 \fB\-n\fR, \fB\-\-no\-action\fR
45 Use this option to make a test run before doing the real copy operation.
46 Volume will be opened read\-only and no write will be done.
48 \fB\-f\fR, \fB\-\-force\fR
49 This will override some sensible defaults, such as not working with a mounted
50 volume. Use this option with caution.
52 \fB\-h\fR, \fB\-\-help\fR
53 Show a list of options with a brief description of each one.
55 \fB\-q\fR, \fB\-\-quiet\fR
56 Suppress some debug/warning/error messages.
58 \fB\-V\fR, \fB\-\-version\fR
59 Show the version number, copyright and license
62 \fB\-v\fR, \fB\-\-verbose\fR
63 Display more debug/warning/error messages.
65 All data on NTFS is stored in streams, which can have names. A file can have
66 more than one data streams, but exactly one must have no name. The size of a
67 file is the size of its unnamed data stream. Usually when you don't specify
68 stream name you are access to unnamed data stream. If you want access to named
69 data stream you need to add ":stream_name" to the filename. For example: by
70 opening "some.mp3:artist" you will open stream "artist" in "some.mp3". But
71 windows usually prevent you from accessing to named data streams, so you need
72 to use some program like FAR or utils from cygwin to access named data streams.
74 Copy new_boot.ini from /home/user as boot.ini to the root of an /dev/hda1 NTFS
78 .B ntfscp /dev/hda1 /home/user/new_boot.ini boot.ini
81 Copy myfile to C:\\some\\path\\myfile:stream (assume that /dev/hda1 letter in
85 .B ntfscp \-N stream /dev/hda1 myfile /some/path
89 There are no known problems with \fBntfscp\fR. If you find a bug please send an
90 email describing the problem to the development team:
93 ntfs\-3g\-devel@lists.sf.net
96 \fBntfscp\fR was written by Yura Pakhuchiy, with contributions from Anton
97 Altaparmakov and Hil Liao.
98 It was ported to ntfs-3g by Erik Larsson.
100 With love to Marina Sapego.
105 package and is available from:
108 http://www.tuxera.com/community/