NTFSFALLOCATE(8)
๐ NTFSFALLOCATE ๐
okay bestie, so this is ntfsfallocate from the System Manager's Manual โ section 8, the big-girl system administration section. she's here to preallocate space to a file on an NTFS volume, and she's honestly kinda iconic for it. ๐
โจ NAME โจ
ntfsfallocate โ preallocate space to a file on an NTFS volume
yeah that's her whole thing. reserving the room before the party even starts.
๐ธ SYNOPSIS ๐ธ
ntfsfallocate [options] -l length device file [attr-type [attr-name]]
look at her. device, file, and optionally the attr-type and attr-name if you're feeling โจ advanced โจ.
๐ฆ DESCRIPTION ๐ฆ
so the vibe here is: ntfsfallocate preallocates space for any attribute of a file or directory, which literally means it reserves the space before the actual contents get written in there. no scrambling later, no "omg where did the disk space go" moments. it's giving... fallocate(1) energy, fr fr. ๐
๐ OPTIONS ๐
okay so here's the full rundown of everything ntfsfallocate will accept. nearly all the options have two equivalent names โ the short one gets a - in front, and the long one gets --. and listen: any single-letter option that doesn't take an argument? they can be combined into one single command, so -fv hits exactly the same as -f -v. iconic. ๐ซถ
also, long-named options can be abbreviated to any unique prefix of their name, so you can be lazy (affectionate) about it.
-f,--forceโ overrides some sensible defaults, like the whole "not using a mounted volume" thing. bestie, use this one with caution, I'm so serious. ๐ญ-h,--helpโ shows you the list of options plus a lil brief description of each one. your girl is helpful like that. ๐-l,--lengthLENGTH โ mandatory, no skipping!! this is how many bytes you wanna preallocate. it gets rounded up to a multiple of the cluster size. you can slap a suffix on it:K,M,G,T,PorEmeans a multiplicative factor of a power of 1000. and a suffix ofKi,Mi,Gi,Ti,PiorEimeans a multiplicative factor of a power of 1024. pick your flavor. โจ-n,--no-size-changeโ don't change the apparent size of the file. but heads up: the space allocated beyond the apparent size is not zeroed, and subsequent writing beyond the apparent end of file will force zeroing the inner allocated space since it can't be considered a hole anymore. and that? that can take significant time. ๐-N,--no-actionโ simulates the allocation without actually writing to the device. a dress rehearsal, no commitment. ๐-o,--offsetOFFSET โ tells it where in the file the preallocation starts. by default it counts from the beginning of the file. and space that's already allocated in the area defined by offset and length? preserved. we respect her. ๐-q,--quietโ suppresses some debug/warning/error messages. shhh era. ๐คซ-v,--verboseโ displays more debug/warning/error messages. yapper era. ๐ฃ๏ธ-V,--versionโ shows the version number, copyright and license ofntfsfallocate. receipts! ๐
๐ง attr-type ๐ง
this defines a particular attribute type to be preallocated. advanced use only, bestie โ don't get cute. by default, the unnamed $DATA attribute (aka the contents of a plain file) is the one that gets preallocated.
you specify the attribute by a number in decimal or hexadecimal:
0x10/16โ"$STANDARD_INFORMATION"0x20/32โ"$ATTRIBUTE_LIST"0x30/48โ"$FILE_NAME"0x40/64โ"$OBJECT_ID"0x50/80โ"$SECURITY_DESCRIPTOR"0x60/96โ"$VOLUME_NAME"0x70/112โ"$VOLUME_INFORMATION"0x80/128โ"$DATA"0x90/144โ"$INDEX_ROOT"0xA0/160โ"$INDEX_ALLOCATION"0xB0/176โ"$BITMAP"0xC0/192โ"$REPARSE_POINT"0xD0/208โ"$EA_INFORMATION"0xE0/224โ"$EA"0xF0/240โ"$PROPERTY_SET"0x100/256โ"$LOGGED_UTILITY_STREAM"
the whole menu. bon appรฉtit. ๐
๐ attr-name ๐
defines the name of the particular attribute type to be preallocated. again: advanced use only. you've been warned, queen. ๐
๐ EXAMPLES ๐
preallocate 100MB to the file database.db located in the Data directory, which sits at the root of an NTFS file system. watch this:
ntfsfallocate -l 100M /dev/sda1 Data/database.db
slay. done. no cap. โจ
๐ BUGS ๐
okay so the good news: there are no known problems with ntfsfallocate.
the not-so-good news: it can lead to configurations not supported by Windows, and Windows may crash (BSOD) when writing to preallocated clusters that weren't written to earlier. ๐ญ files with preallocated space should be fully written to before Windows ever updates them. please, for the love of everything, do that. ๐
if you find a bug inntfsfallocateproper, email a description of the problem to the dev team at:ntfs-3g-devel@lists.sf.netโ they genuinely wanna hear it. ๐ซถ
๐ AUTHORS ๐
ntfsfallocate was written by Jean-Pierre Andre. king behavior honestly. ๐
โญ AVAILABILITY โญ
ntfsfallocate is part of the ntfs-3g package and is available from:
https://github.com/tuxera/ntfs-3g/wiki/
๐ฆ SEE ALSO ๐ฆ
ntfs-3g(8), ntfstruncate(8), ntfsprogs(8), fallocate(1)
go read those next bestie, the lore runs deep. ๐
and that's the whole page!! from the ntfs-3g 2026.7.7 release, dated all the way back to June 2014 โ a true classic that still eats. mwah, love u, bye!! ๐ ๐โจ๐
๐ฆ where this page comes from
- ubuntu stonking: ntfs-3g 1:2026.7.7-2 ยท GPL-2.0-or-later
- Copyright (c) 2014 Jean-Pierre Andre
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms