{"id":3526,"date":"2022-12-20T17:08:55","date_gmt":"2022-12-20T20:08:55","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ntfstruncate-man8\/"},"modified":"2022-12-20T17:08:55","modified_gmt":"2022-12-20T20:08:55","slug":"ntfstruncate-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ntfstruncate-man8\/","title":{"rendered":"NTFSTRUNCATE (man8)"},"content":{"rendered":"<h1 align=\"center\">NTFSTRUNCATE<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ntfstruncate \u2212 truncate a file on an NTFS volume<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ntfstruncate<\/b> [<i>options<\/i>] <i>device file [attr-type<\/i> [<i>attr-name<\/i>]] <i>new-length<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>ntfstruncate<\/b><\/i> truncates (or extends) a specified attribute belonging to a file or directory, to a specified length.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Below is a summary of all the options that <b>ntfstruncate<\/b> accepts. Nearly all options have two equivalent names. The short name is preceded by <b>\u2212<\/b> and the long name is preceded by <b>\u2212\u2212<\/b>. Any single letter options, that don\u2019t take an argument, can be combined into a single command, e.g. <b>\u2212fv<\/b> is equivalent to <b>\u2212f \u2212v<\/b>. Long named options can be abbreviated to any unique prefix of their name. <b><br \/> \u2212f<\/b>, <b>\u2212\u2212force<\/b><\/p>\n<p style=\"margin-left:22%;\">This will override some sensible defaults, such as not using a mounted volume. Use this option with caution.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Show a list of options with a brief description of each one.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212l<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"46%\">\n<p>Display licensing information.<\/p>\n<\/td>\n<td width=\"32%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212n<\/b>, <b>\u2212\u2212no-action<\/b><\/p>\n<p style=\"margin-left:22%;\">Simulate the truncation without actually write to device.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212q<\/b>, <b>\u2212\u2212quiet<\/b><\/p>\n<p style=\"margin-left:22%;\">Suppress some debug\/warning\/error messages.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212v<\/b>, <b>\u2212\u2212verbose<\/b><\/p>\n<p style=\"margin-left:22%;\">Display more debug\/warning\/error messages.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">Show the version number, copyright and license of <b>ntfstruncate<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><b>attr-type<\/b><\/p>\n<p style=\"margin-left:22%;\">Define a particular attribute type to be truncated (advanced use only). By default, the unnamed $DATA attribute (the contents of a plain file) will be truncated. The attribute has to be specified by a number in decimal or hexadecimal :<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-1099641.png\" alt=\"Image grohtml-1099641.png\"><\/p>\n<p style=\"margin-left:11%;\"><b>attr-name<\/b><\/p>\n<p style=\"margin-left:22%;\">Define the name of the particular attribute type to be truncated (advanced use only).<\/p>\n<p style=\"margin-left:11%;\"><b>new-length<\/b><\/p>\n<p style=\"margin-left:22%;\">Specify the target size of the file. It will be rounded up to a multiple of the cluster size. A suffix of K, M, G, T, P or E may be appended to mean a multiplicative factor of a power of 1000. Similarly a suffix of Ki, Mi, Gi, Ti, Pi or Ei may be appended to mean a multiplicative factor of a power of 1024.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Resize to 100MB the file database.db located in the Data directory which is at the root of an NTFS file system.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>ntfstruncate \/dev\/sda1 Data\/database.db 100M<\/b><\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">There are no known problems with <b>ntfstruncate<\/b>. If you find a bug, please send an email describing the problem to the development team: <br \/> ntfs\u22123g\u2212devel@lists.sf.net<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ntfstruncate<\/b> was written by Anton Altaparmakov.<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ntfstruncate<\/b> is part of the <b>ntfs-3g<\/b> package and is available from: <br \/> http:\/\/www.tuxera.com\/community\/<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ntfs-3g<\/b>(8), <b>ntfsfallocate<\/b>(8), <b>ntfsprogs<\/b>(8).<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ntfstruncate \u2212 truncate a file on an NTFS volume <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,647],"class_list":["post-3526","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-ntfstruncate"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3526"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3526\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}