2 .\" Copyright 2002-2003 by Szabolcs Szakacsits All Rights Reserved.
4 .TH NTFSRESIZE 8 "Jan 2003" "ntfsprogs @VERSION@"
6 ntfsresize \- resize an NTFS filesystem
10 [\fB\-s \fIsize\fR[\fBk\fR|\fBM\fR|\fBG\fR]]
15 program non-destructively resizes Windows NT4, 2000, XP or .NET
16 NTFS filesystems. At present it can be used to enlarge or shrink a
17 defragmented NTFS filesystem located on an unmounted
19 (usually a disk partition). The new volume will have
24 parameter may have one of the optional modifiers
25 \fBk\fR, \fBM\fR, \fBG\fR, which means the
27 parameter is given in kilo-, mega- or gigabytes respectively.
29 conforms to the SI, ATA, IEEE standards and the disk manufacturers
30 by using k=10^3, M=10^6 and G=10^9.
35 are mutually exclusive. If both of them are omitted then the
36 NTFS filesystem will be enlarged to the device size.
37 Before a real resize operation, always make a read-only
44 program doesn't manipulate the size of partitions.
45 To do that you have to use a disk partitioning tool, for example
48 If you wish to enlarge an NTFS filesystem,
49 you must first make sure you can expand the size of the
50 underlying partition first. This can be done using
52 by deleting the partition and recreating it with a larger size.
55 to enlarge the size of the filesystem.
57 If you wish to shrink an NTFS partition, first use
59 to shrink the size of the filesystem. Then you may use
61 to shrink the size of the partition by deleting the
62 partition and recreating it with the smaller size.
65 When recreating the partition with
67 make sure you create it with the same starting
68 disk cylinder and partition type
70 If you enlarge a partition make sure it will not overlap with
71 an other existing partition!
72 If you shrink a partition, do not make
73 it smaller than the new size of the NTFS filesystem!
74 Otherwise you may lose your entire filesystem.
75 Also make sure you set the bootable flag for the partition if it
76 existed before. Failing to do so you might not be able to boot your
77 computer from the disk!
81 schedules 'chkdsk' to make an NTFS consistency check
82 when you will boot Windows. Windows may force a reboot after
83 the successful consistency check.
88 Forces ntfsresize to proceed with the filesystem resize operation, overriding
89 some safety checks which
91 normally enforces. You can use this
92 parameter multiply times if you want to overcome every single safety checks.
95 Display help and exit.
98 Using this option you can calculate the smallest shrunken volume size supported.
99 This option will not make any changes to the filesystem.
102 Use this option to make a test run before doing the real resize operation.
103 Volume will be opened read-only and
105 displays what it would do if it were to resize the filesystem.
107 .B -s \fIsize\fR[\fBk\fR|\fBM\fR|\fBG\fR]
108 Resize volume to \fIsize\fR[\fBk\fR|\fBM\fR|\fBG\fR] bytes.
109 The optional modifiers \fBk\fR, \fBM\fR, \fBG\fR mean the
111 parameter is given in kilo-, mega- or gigabytes respectively.
112 Conforming to standards, k=10^3, M=10^6 and G=10^9.
114 No bugs are known or has been reported so far in the current version.
115 If you find otherwise, please report it to <linux-ntfs-dev@lists.sourceforge.net>
116 (no subscription needed). It's also strongly advised you
117 .B MAKE SURE YOU HAVE A BACKUP
118 of your important data in case of an unexpected failure.
120 Future work is planned to include support resizing fragmented NTFS volumes.
121 Please note, Windows 2000, XP and .NET have built in NTFS defragmenter.
125 Szabolcs Szakacsits <szaka@sienet.hu>.
127 Many thanks to Anton Altaparmakov and Richard Russon (FlatCap)
128 for libntfs, excellent documentation, comments, testing and fixes,
129 moreover to Theodore Ts'o whose
131 man page formed the basis of this page.
134 is part of the linux-ntfs package and is available from
135 http://linux-ntfs.sourceforge.net/ as source and pre-compiled binary.
137 related news, example of usage and FAQ (frequently asked questions)
139 http://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html