1 .\" Copyright (c) 2014 Jean-Pierre Andre
2 .\" This file may be copied under the terms of the GNU Public License.
4 .TH NTFSTRUNCATE 8 "June 2014" "ntfs-3g @VERSION@"
6 ntfstruncate \- truncate a file on an NTFS volume
8 \fBntfstruncate\fR [\fIoptions\fR] \fIdevice\fR \fIfile\fR \fI[attr-type\fR [\fIattr-name\fR]] \fInew-length\fR
11 truncates (or extends) a specified attribute belonging to a
12 file or directory, to a specified length.
14 Below is a summary of all the options that
16 accepts. Nearly all options have two equivalent names. The short name is
19 and the long name is preceded by
21 Any single letter options, that don't take an argument, can be combined into a
26 Long named options can be abbreviated to any unique prefix of their name.
28 \fB\-f\fR, \fB\-\-force\fR
29 This will override some sensible defaults, such as not using a mounted volume.
30 Use this option with caution.
32 \fB\-h\fR, \fB\-\-help\fR
33 Show a list of options with a brief description of each one.
36 Display licensing information.
38 \fB\-n\fR, \fB\-\-no-action\fR
39 Simulate the truncation without actually write to device.
41 \fB\-q\fR, \fB\-\-quiet\fR
42 Suppress some debug/warning/error messages.
44 \fB\-v\fR, \fB\-\-verbose\fR
45 Display more debug/warning/error messages.
47 \fB\-V\fR, \fB\-\-version\fR
48 Show the version number, copyright and license of
52 Define a particular attribute type to be truncated (advanced use only).
53 By default, the unnamed $DATA attribute (the contents of a plain file) will
54 be truncated. The attribute has to be specified by a number in decimal
61 0x10 16 "$STANDARD_INFORMATION"
62 0x20 32 "$ATTRIBUTE_LIST"
65 0x50 80 "$SECURITY_DESCRIPTOR"
66 0x60 96 "$VOLUME_NAME"
67 0x70 112 "$VOLUME_INFORMATION"
69 0x90 144 "$INDEX_ROOT"
70 0xA0 160 "$INDEX_ALLOCATION"
72 0xC0 192 "$REPARSE_POINT"
73 0xD0 208 "$EA_INFORMATION"
75 0xF0 240 "$PROPERTY_SET"
76 0x100 256 "$LOGGED_UTILITY_STREAM"
81 Define the name of the particular attribute type to be truncated
86 Specify the target size of the file.
87 It will be rounded up to a multiple of the cluster size.
88 A suffix of K, M, G, T, P or E may be appended to
89 mean a multiplicative factor of a power of 1000. Similarly a suffix of
90 Ki, Mi, Gi, Ti, Pi or Ei may be appended to mean a multiplicative factor
93 Resize to 100MB the file database.db located in the Data directory
94 which is at the root of an NTFS file system.
97 .B ntfstruncate /dev/sda1 Data/database.db 100M
101 There are no known problems with
103 If you find a bug, please send an email
104 describing the problem to the development team:
107 ntfs\-3g\-devel@lists.sf.net
111 was written by Anton Altaparmakov.
116 package and is available from:
119 http://www.tuxera.com/community/
123 .BR ntfsfallocate (8),