1NTFSCP(8)                   System Manager's Manual                  NTFSCP(8)
2
3
4

NAME

6       ntfscp - copy file to an NTFS volume.
7

SYNOPSIS

9       ntfscp [options] device source_file destination
10

DESCRIPTION

12       ntfscp will copy file to an NTFS volume. destination can be either file
13       or directory. In case if destination is  directory  specified  by  name
14       then  source_file is copied into this directory, in case if destination
15       is directory and specified by inode number then unnamed data  attribute
16       is  created  for this inode and source_file is copied into it (WARNING:
17       it's unusual to have unnamed data streams  in  the  directories,  think
18       twice before specifying directory by inode number).
19

OPTIONS

21       Below  is a summary of all the options that ntfscp accepts.  Nearly all
22       options have two equivalent names.  The short name is preceded by - and
23       the long name is preceded by --.  Any single letter options, that don't
24       take an argument, can be combined into a single command, e.g.   -fv  is
25       equivalent  to  -f  -v.   Long  named options can be abbreviated to any
26       unique prefix of their name.
27
28       -a, --attribute NUM
29              Write to this attribute.
30
31       -i, --inode
32              Treat destination as inode number.
33
34       -m, --min-fragments
35              Minimize fragmentation when allocating space to  the  attribute.
36              This is mostly useful when creating big files.
37
38       -N, --attr-name NAME
39              Write to attribute with this name.
40
41       -n, --no-action
42              Use  this  option  to make a test run before doing the real copy
43              operation.  Volume will be opened read-only and no write will be
44              done.
45
46       -f, --force
47              This  will  override some sensible defaults, such as not working
48              with a mounted volume.  Use this option with caution.
49
50       -h, --help
51              Show a list of options with a brief description of each one.
52
53       -q, --quiet
54              Suppress some debug/warning/error messages.
55
56       -t, --timestamp
57              Copy the modification time of source_file to  destination.  This
58              is not compatible with --attr-name and --attribute.
59
60       -V, --version
61              Show the version number, copyright and license ntfscp.
62
63       -v, --verbose
64              Display more debug/warning/error messages.
65

DATA STREAMS

67       All data on NTFS is stored in streams, which can have names. A file can
68       have more than one data streams, but exactly one must have no name. The
69       size of a file is the size of its unnamed data stream. Usually when you
70       don't specify stream name you are access to unnamed data stream. If you
71       want  access to named data stream you need to add ":stream_name" to the
72       filename. For example:  by  opening  "some.mp3:artist"  you  will  open
73       stream "artist" in "some.mp3". But windows usually prevent you from ac‐
74       cessing to named data streams, so you need to use some program like FAR
75       or utils from cygwin to access named data streams.
76

EXAMPLES

78       Copy  new_boot.ini  from  /home/user  as  boot.ini  to  the  root of an
79       /dev/hda1 NTFS volume:
80
81              ntfscp /dev/hda1 /home/user/new_boot.ini boot.ini
82
83       Copy myfile to C:\some\path\myfile:stream (assume that /dev/hda1 letter
84       in windows is C):
85
86              ntfscp -N stream /dev/hda1 myfile /some/path
87
88

BUGS

90       There  are no known problems with ntfscp. If you find a bug please send
91       an email describing the problem to the development team:
92       ntfs-3g-devel@lists.sf.net
93

AUTHORS

95       ntfscp was written by Yura Pakhuchiy, with contributions from Anton Al‐
96       taparmakov and Hil Liao.  It was ported to ntfs-3g by Erik Larsson.
97

DEDICATION

99       With love to Marina Sapego.
100

AVAILABILITY

102       ntfscp is part of the ntfs-3g package and is available from:
103       https://github.com/tuxera/ntfs-3g
104

SEE ALSO

106       ntfsprogs(8)
107
108
109
110ntfs-3g 2022.5.17               September 2007                       NTFSCP(8)
Impressum