2 .\" Copyright 1997 by Theodore Ts'o. All Rights Reserved.
4 .\" .TH RESIZE2FS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
5 .TH RESIZE2FS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
7 resize2fs \- ext2/ext3 file system resizer
28 program will resize ext2 or ext3 file systems. It can be used to enlarge or
29 shrink an unmounted file system located on
31 If the filesystem is mounted, it can be used to expand the size of the
32 mounted filesystem, assuming the kernel supports on-line resizing. (As
33 of this writing, the Linux 2.6 kernel supports on-line resize for
34 filesystems mounted using ext3 only.).
38 parameter specifies the requested new size of the filesystem.
39 If no units are specified, the units of the
41 parameter shall be the filesystem blocksize of the filesystem.
44 parameter may be suffixed by one of the following the units
45 designators: 's', 'K', 'M', or 'G',
46 for 512 byte sectors, kilobytes, megabytes, or gigabytes, respectively.
49 of the filesystem may never be larger than the size of the partition.
52 parameter is not specified, it will default to the size of the partition.
56 program does not manipulate the size of partitions. If you wish to enlarge
57 a filesystem, you must make sure you can expand the size of the
58 underlying partition first. This can be done using
60 by deleting the partition and recreating it with a larger size or using
62 if you're using the logical volume manager
65 recreating the partition, make sure you create it with the same starting
66 disk cylinder as before! Otherwise, the resize operation will
67 certainly not work, and you may lose your entire filesystem.
70 run resize2fs to resize the ext2 filesystem
71 to use all of the space in the newly enlarged partition.
73 If you wish to shrink an ext2 partition, first use
75 to shrink the size of filesystem. Then you may use
77 to shrink the size of the partition. When shrinking the size of
78 the partition, make sure you do not make it smaller than the new size
79 of the ext2 filesystem!
83 Turns on various resize2fs debugging features, if they have been compiled
86 should be computed by adding the numbers of the desired features
87 from the following list:
89 \ 2\ \-\ Debug block relocations
91 \ 4\ \-\ Debug inode relocations
93 \ 8\ \-\ Debug moving the inode table
96 Forces resize2fs to proceed with the filesystem resize operation, overriding
97 some safety checks which resize2fs normally enforces.
100 Flush the filesystem device's buffer caches before beginning. Only
101 really useful for doing
106 Shrink the filesystem to the minimum size.
109 Prints out a percentage completion bars for each
111 operation, so that the user can keep track of what
112 the program is doing.
115 Print the minimum size of the filesystem and exit.
117 .B \-S \fIRAID-stride
120 program will heuristically determine the RAID stride that was specified
121 when the filesystem was created. This option allows the user to
122 explicitly specify a RAID stride setting to be used by resize2fs instead.
124 The minimum size of the filesystem as estimated by resize2fs may be
125 incorrect, especially for filesystems with 1k and 2k blocksizes.
128 was written by Theodore Ts'o <tytso@mit.edu>.
130 Resize2fs is Copyright 1998 by Theodore Ts'o and PowerQuest, Inc. All
134 may be redistributed under the terms of the GPL.