{
    "mode": "man",
    "parameter": "ntfstruncate",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/ntfstruncate/8/json",
    "generated": "2026-06-02T22:32:40Z",
    "synopsis": "ntfstruncate [options] device file [attr-type [attr-name]] new-length",
    "sections": {
        "NAME": {
            "content": "ntfstruncate - truncate a file on an NTFS volume\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ntfstruncate [options] device file [attr-type [attr-name]] new-length\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ntfstruncate  truncates  (or extends) a specified attribute belonging to a file or directory,\nto a specified length.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Below is a summary of all the options that ntfstruncate accepts.  Nearly all options have two\nequivalent  names.  The short name is preceded by - and the long name is preceded by --.  Any\nsingle letter options, that don't take an argument, can be combined into  a  single  command,\ne.g.  -fv is equivalent to -f -v.  Long named options can be abbreviated to any unique prefix\nof their name.\n",
            "subsections": [
                {
                    "name": "-f --force",
                    "content": "This will override some sensible defaults, such as not using a  mounted  volume.   Use\nthis option with caution.\n",
                    "flag": "-f",
                    "long": "--force"
                },
                {
                    "name": "-h --help",
                    "content": "Show a list of options with a brief description of each one.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-l",
                    "content": "",
                    "flag": "-l"
                },
                {
                    "name": "-n --no-action",
                    "content": "Simulate the truncation without actually write to device.\n",
                    "flag": "-n",
                    "long": "--no-action"
                },
                {
                    "name": "-q --quiet",
                    "content": "Suppress some debug/warning/error messages.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-v --verbose",
                    "content": "Display more debug/warning/error messages.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-V --version",
                    "content": "Show the version number, copyright and license of ntfstruncate.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "attr-type",
                    "content": "Define  a  particular attribute type to be truncated (advanced use only).  By default,\nthe unnamed $DATA attribute (the contents of a plain file) will be truncated. The  at‐\ntribute has to be specified by a number in decimal or hexadecimal :\n\n┌───────────────────────────────────────────┐\n│Hex     Decimal   Name                     │\n│0x10    16        \"$STANDARDINFORMATION\"  │\n│0x20    32        \"$ATTRIBUTELIST\"        │\n│0x30    48        \"$FILENAME\"             │\n│0x40    64        \"$OBJECTID\"             │\n│0x50    80        \"$SECURITYDESCRIPTOR\"   │\n│0x60    96        \"$VOLUMENAME\"           │\n│0x70    112       \"$VOLUMEINFORMATION\"    │\n│0x80    128       \"$DATA\"                  │\n│0x90    144       \"$INDEXROOT\"            │\n│0xA0    160       \"$INDEXALLOCATION\"      │\n│0xB0    176       \"$BITMAP\"                │\n│0xC0    192       \"$REPARSEPOINT\"         │\n│0xD0    208       \"$EAINFORMATION\"        │\n│0xE0    224       \"$EA\"                    │\n│0xF0    240       \"$PROPERTYSET\"          │\n│0x100   256       \"$LOGGEDUTILITYSTREAM\" │\n└───────────────────────────────────────────┘\n"
                },
                {
                    "name": "attr-name",
                    "content": "Define the name of the particular attribute type to be truncated (advanced use only).\n\n"
                },
                {
                    "name": "new-length",
                    "content": "Specify the target size of the file.  It will be rounded up to a multiple of the clus‐\nter size.  A suffix of K, M, G, T, P or E may be appended  to  mean  a  multiplicative\nfactor  of  a power of 1000. Similarly a suffix of Ki, Mi, Gi, Ti, Pi or Ei may be ap‐\npended to mean a multiplicative factor of a power of 1024.\n"
                }
            ]
        },
        "EXAMPLES": {
            "content": "Resize to 100MB the file database.db located in the Data directory which is at the root of an\nNTFS file system.\n\nntfstruncate /dev/sda1 Data/database.db 100M\n\n",
            "subsections": []
        },
        "BUGS": {
            "content": "There  are  no known problems with ntfstruncate.  If you find a bug, please send an email de‐\nscribing the problem to the development team:\nntfs-3g-devel@lists.sf.net\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "ntfstruncate was written by Anton Altaparmakov.\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "ntfstruncate is part of the ntfs-3g package and is available from:\nhttps://github.com/tuxera/ntfs-3g/wiki/\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ntfs-3g(8), ntfsfallocate(8), ntfsprogs(8).\n\n\n\nntfs-3g 2021.8.22                             June 2014                              NTFSTRUNCATE(8)",
            "subsections": []
        }
    },
    "summary": "ntfstruncate - truncate a file on an NTFS volume",
    "flags": [
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "This will override some sensible defaults, such as not using a mounted volume. Use this option with caution."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show a list of options with a brief description of each one."
        },
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-n",
            "long": "--no-action",
            "arg": null,
            "description": "Simulate the truncation without actually write to device."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Suppress some debug/warning/error messages."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "Display more debug/warning/error messages."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Show the version number, copyright and license of ntfstruncate."
        }
    ],
    "examples": [
        "Resize to 100MB the file database.db located in the Data directory which is at the root of an",
        "NTFS file system.",
        "ntfstruncate /dev/sda1 Data/database.db 100M"
    ],
    "see_also": [
        {
            "name": "ntfs-3g",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/ntfs-3g/8/json"
        },
        {
            "name": "ntfsfallocate",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/ntfsfallocate/8/json"
        },
        {
            "name": "ntfsprogs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/ntfsprogs/8/json"
        }
    ]
}