NTFSRESIZE(8)
๐ NTFSRESIZE โ the manual, but make it make sense
okay bestie, so ntfsresize is from the System Manager's Manual (section 8, if you're keeping score) and it is genuinely one of the most useful little gremlins in your toolkit. Sit down, grab a strawberry ๐, and let's get into it.
โจ NAME โจ
ntfsresize โ resize an NTFS filesystem without data loss
๐ฆ SYNOPSIS ๐ฆ
ntfsresize [OPTIONS] --info(-mb-only) DEVICE
ntfsresize [OPTIONS] [--size SIZE[k|M|G]] DEVICE
๐ DESCRIPTION ๐
So the whole flex of ntfsresize is that it safely resizes Windows XP, Windows Server 2003, Windows 2000, Windows NT4 and Longhorn NTFS filesystems without data loss. All NTFS versions are supported โ yes, the ones used by 32-bit and 64-bit Windows, no crumbs left behind. ๐
And here's the part that makes everyone gasp: defragmentation is NOT required before resizing, because the program can relocate any data if needed, without risking data integrity. Not me being able to just... move your files. Iconic.
You can use ntfsresize to shrink or enlarge any NTFS filesystem living on an unmounted DEVICE (usually a disk partition). The new filesystem will fit in a DEVICE whose desired size is SIZE bytes. The SIZE parameter may have one of the optional modifiers k, M, G, which means the SIZE parameter is given in kilo-, mega- or gigabytes respectively. And because ntfsresize conforms to the SI, ATA, IEEE standards and the disk manufacturers, it uses k=10^3, M=10^6 and G=10^9. Standards? Slayed. ๐
Here's a sneaky one: if both --info(-mb-only) and --size are omitted, then the NTFS filesystem will be enlarged to match the underlying DEVICE size. It just does the thing, no questions asked.
โ ๏ธ big important vibe check: to resize a filesystem on a partition, you must resize BOTH the filesystem and the partition by editing the partition table on the disk. This tool does not do that part for you.
Similarly to other command line filesystem resizers, ntfsresize doesn't manipulate the size of the partitions, so to do that you must use a disk partitioning tool as well, for example fdisk(8). Alternatively, you could use one of the many user friendly partitioners that uses ntfsresize internally, like Mandriva's DiskDrake, QTParted, SUSE/Novell's YaST Partitioner, IBM's EVMS, GParted or Debian/Ubuntu's Partman. Take the easy road, bestie, nobody's judging. ๐ซถ
IMPORTANT! It's a good practice making REGULAR BACKUPS of your valuable data, especially before using ANY partitioning tools. To do so for NTFS, you could use ntfsclone(8). Don't forget to save the partition table as well! (like, seriously, back it up, this is the one thing I will nag you about ๐ญ)
๐ Shrinkage ๐
If you wish to shrink an NTFS partition, first use ntfsresize to shrink the size of the filesystem. Then you could use fdisk(8) to shrink the size of the partition by deleting the partition and recreating it with the smaller size. Do not make the partition smaller than the new size of NTFS, otherwise you won't be able to boot. And if you did so notwithstanding, then just recreate the partition to be as large as NTFS. No cap, that's the recovery plan.
๐ธ Enlargement ๐ธ
To enlarge an NTFS filesystem, first you must enlarge the size of the underlying partition. This can be done using fdisk(8) by deleting the partition and recreating it with a larger size. Make sure it will not overlap with another existing partition. You may enlarge upwards (first sector unchanged) or downwards (last sector unchanged), but you may not enlarge at both ends in a single step. If you merge two NTFS partitions, only one of them can be expanded to the merged partition. After you have enlarged the partition, you may use ntfsresize to enlarge the size of the filesystem.
๐ฆ Partitioning ๐ฆ
When recreating the partition by a disk partitioning tool, make sure you create it at the same starting sector and with the same partition type as before. Otherwise you won't be able to access your filesystem. Use the 'u' fdisk command to switch to the reliable sector unit from the default cylinder one. Sectors > cylinders, periodt.
Also make sure you set the bootable flag for the partition if it existed before. Failing to do so, you might not be able to boot your computer from the disk. ๐ฌ
โจ OPTIONS โจ
Below is a summary of all the options that ntfsresize accepts. Nearly all options have two equivalent names. The short name is preceded by - and the long name is preceded by --. Any single letter options that don't take an argument can be combined into a single command, e.g. -fv is equivalent to -f -v. Long named options can be abbreviated to any unique prefix of their name. Efficiency queen ๐
-c,--checkโ with this option,ntfsresizewill only check the device to make sure it's ready to be resized. If not, it will print any errors detected. If the device is fine, nothing will be printed. Silence = slay. ๐คซ-i,--infoโ used without--expand,ntfsresizewill determine the theoretically smallest shrunken filesystem size supported. Most of the time the result is the space already used on the filesystem.ntfsresizewill refuse shrinking to a smaller size than what you got by this option, and depending on several factors it might be unable to shrink very close to this theoretical size. Although the integrity of your data should never be in risk, it's still strongly recommended to make a test run by using the--no-actionoption before real resizing. Practically, the smallest shrunken size generally is at around"used space" + (20-200 MB). Please also take into account that Windows might need about50-100 MBfree space left to boot safely. If used in association with option--expand,ntfsresizewill determine the smallest downwards expansion size and the possible increments to the size. These are exact byte counts which must not be rounded. This option may be used after the partition has been expanded, provided the upper bound has not been changed. And the best part: this option never causes any changes to the filesystem โ the partition is opened read-only. Look, don't touch. ๐-m,--info-mb-onlyโ like the info option, only print out the shrinkable size in MB. Print nothing if the shrink size is the same as the original size (in MB). This option cannot be used in association with option--expand.-s,--size SIZE[k|M|G]โ resize filesystem to fit in a partition whose size is SIZE[k|M|G] bytes by shifting its end and keeping its beginning unchanged. The filesystem size is set to be at least one sector smaller than the partition. The optional modifiersk,M,Gmean the SIZE parameter is given in kilo-, mega- or gigabytes respectively. Conforming to standards,k=10^3,M=10^6andG=10^9.ki=2^10,Mi=2^20andGi=2^30are also allowed. Use this option with--no-actionfirst. (test run first, always, i'm begging ๐ฅบ)-x,--expandโ expand the filesystem to the current partition size, shifting down its beginning and keeping its end unchanged. The metadata is recreated in the expanded space and no user data is relocated. This is incompatible with option-s(or--size) and can only be made if the expanded space is an exact multiple of the cluster size. It must also be large enough to hold the new metadata. If the expansion is interrupted for some reason (power outage, etc), you may restart the resizing, as the original data and metadata have been kept unchanged. Note: expanding a Windows system partition and filesystem downwards may lead to the registry or some files not matching the new system layout, or to some important files being located too far from the beginning of the partition, thus making Windows not bootable. ๐ so like, know what you're doing.-f,--forceโ forcesntfsresizeto proceed with the resize operation either without prompting for an explicit acceptance, or if the filesystem is marked for consistency check. Double the option (-ff,--force --force) to avoid prompting even if the file system is marked for check. Please note,ntfsresizealways marks the filesystem for consistency check before a real resize operation and it leaves that way for extra safety. Thus if NTFS was marked byntfsresizethen it's safe to use this option. If you need to resize several times without booting into Windows between each resizing step, then you must use this option. iykyk.-n,--no-actionโ use this option to make a test run before doing the real resize operation. Volume will be opened read-only andntfsresizedisplays what it would do if it were to resize the filesystem. Continue with the real resizing only if the test run passed. This is your dress rehearsal, bestie. ๐ญ-b,--bad-sectorsโ support disks having hardware errors, bad sectors, with thosentfsresizewould refuse to work by default. Prior to using this option, it's strongly recommended to make a backup byntfsclone(8)using the--rescueoption, then runningchkdsk /f /r volume:on Windows from the command line. If the disk guarantee is still valid, then replace it. It's defected. Please also note that no software can repair these type of hardware errors. The most they can do is work around the permanent defects. This option doesn't have any effect if the disk is flawless. ๐ฅ (also, "it's defected" โ she said what she said)-P,--no-progress-barโ don't show progress bars.-v,--verboseโ more output.-V,--versionโ print the version number ofntfsresizeand exit.-h,--helpโ display help and exit.
๐ EXIT CODES ๐
The exit code is 0 on success, non-zero otherwise. Simple, clean, no notes. โจ
๐ KNOWN ISSUES ๐
No reliability problem is known. If you find a bug, please send an email describing the problem to the development team at: ntfs-3g-devel@lists.sf.net โ and be nice about it, they're doing great. ๐ซถ
There are a few very rarely met restrictions at present: filesystems having unknown bad sectors, relocation of the first MFT extent and resizing into the middle of a $MFTMirr extent aren't supported yet. These cases are detected and resizing is restricted to a safe size, or the closest safe size is displayed.
ntfsresize schedules an NTFS consistency check and after the first boot into Windows you must see chkdsk running on a blue background. This is intentional and no need to worry about it โ yes, the scary blue screen is part of the plan, don't panic. ๐ญ Windows may force a quick reboot after the consistency check. Moreover, after repartitioning your disk and depending on the hardware configuration, the Windows message System Settings Change may also appear. Just acknowledge it and reboot again.
The disk geometry handling semantic (HDIO_GETGEO ioctl) has changed in an incompatible way in Linux 2.6 kernels, and this triggered multitudinous partition table corruptions resulting in unbootable Windows systems, even if NTFS was consistent, if parted(8) was involved in some way. This problem was often attributed to ntfsresize, but in fact it's completely independent of NTFS, thus ntfsresize. Moreover, ntfsresize never touches the partition table at all. By changing the 'Disk Access Mode' to LBA in the BIOS, booting works again, most of the time. You can find more information about this issue in the Troubleshooting section of the below referred Ntfsresize FAQ.
๐ AUTHORS ๐
ok so ntfsresize was written by Szabolcs Szakacsits, with contributions from Anton Altaparmakov and Richard Russon. then it got ported to ntfs-3g by Erik Larsson and Jean-Pierre Andre. legends, all of them, no cap ๐
๐ซถ ACKNOWLEDGEMENT ๐ซถ
many many thanks going out here, and honestly everyone ate:
- Anton Altaparmakov and Richard Russon for libntfs, plus the excellent documentation and comments ๐ธ
- Gergely Madarasz, Dewey M. Sasser, and Miguel Lastra and his colleagues at the University of Granada for their continuous and highly valuable help ๐
- Erik Meade, Martin Fick, Sandro Hawke, Dave Croal, Lorrin Nelson, Geert Hendrickx, Robert Bjorkman, and Richard Burdick for beta testing the relocation support ๐ฆ
- Florian Eyben, Fritz Oppliger, Richard Ebling, Sid-Ahmed Touati, Jan Kiszka, Benjamin Redelings, Christopher Haney, Ryan Durk, Ralf Beyer, Scott Hansen, and Alan Evans for the valued contributions ๐
- and Theodore Ts'o, whose
resize2fs(8)man page originally formed the basis of this page ๐
like the way this page has a whole ancestry tree?? iconic fr fr ๐
โญ AVAILABILITY โญ
ntfsresize is part of the ntfs-3g package and is available from:
https://github.com/tuxera/ntfs-3g/wiki/
go grab it bestie, it's right there ๐ง
๐ฅ SEE ALSO ๐ฅ
the whole friend group honestly ๐
so yeah, that's the whole page!! you made it all the way through, main character energy ๐ญ๐
this was ntfs-3g 2026.9.28, dated July 2013 โ yeah the date is lowkey vintage but the knowledge is timeless โจ ๐
๐ฆ where this page comes from
- arch rolling: ntfsprogs 2026.9.28-1 ยท GPL-2.0-or-later
- nixpkgs unstable: ntfs3g 2026.9.28
- Copyright (c) 2002\-2006 Szabolcs Szakacsits
- Copyright (c) 2005 Richard Russon
- Copyright (c) 2011\-2013 Jean-Pierre Andre
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms