Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
RESIZE2FS(8) | System Manager's Manual | RESIZE2FS(8) |
NAME
resize2fs - ext2/ext3/ext4 file system resizerSYNOPSIS
resize2fs [ -fFpPMbs ] [ -d debug-flags ] [ -S RAID-stride ] [ -z undo_file ] device [ size ]DESCRIPTION
The resize2fs program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the file system is mounted, it can be used to expand the size of the mounted file system, assuming the kernel and the file system supports on-line resizing. (Modern Linux 2.6 kernels will support on-line resize for file systems mounted using ext3 and ext4; ext3 file systems will require the use of file systems with the resize_inode feature enabled.)OPTIONS
- -b
- Turns on the 64bit feature, resizes the group descriptors as necessary, and moves other metadata out of the way.
- -d debug-flags
-
Turns on various resize2fs debugging features, if they have been compiled into the binary. debug-flags should be computed by adding the numbers of the desired features from the following list:
- -f
- Forces resize2fs to proceed with the file system resize operation, overriding some safety checks which resize2fs normally enforces.
- -F
- Flush the file system device's buffer caches before beginning. Only really useful for doing resize2fs time trials.
- -M
- Shrink the file system to minimize its size as much as possible, given the files stored in the file system.
- -p
- Print out percentage completion bars for each resize2fs phase during an offline (non-trivial) resize operation, so that the user can keep track of what the program is doing. (For very fast resize operations, no progress bars may be displayed.)
- -P
- Print an estimate of the number of file system blocks in the file system if it is shrunk using resize2fs's -M option and then exit.
- -s
- Turns off the 64bit feature and frees blocks that are no longer in use.
- -S RAID-stride
- The resize2fs program will heuristically determine the RAID stride that was specified when the file system was created. This option allows the user to explicitly specify a RAID stride setting to be used by resize2fs instead.
- -z undo_file
-
Before overwriting a file system block, write the old contents of the block to an undo file. This undo file can be used with e2undo(8) to restore the old contents of the file system should something go wrong. If the empty string is passed as the undo_file argument, the undo file will be written to a file named resize2fs- device.e2undo in the directory specified via the E2FSPROGS_UNDO_DIR environment variable.
KNOWN BUGS
The minimum size of the file system as estimated by resize2fs may be incorrect, especially for file systems with 1k and 2k blocksizes.AUTHOR
resize2fs was written by Theodore Ts'o <tytso@mit.edu>.COPYRIGHT
Resize2fs is Copyright 1998 by Theodore Ts'o and PowerQuest, Inc. All rights reserved. As of April, 2000 Resize2fs may be redistributed under the terms of the GPL.SEE ALSO
fdisk(8), e2fsck(8), mke2fs(8), lvm(8), lvextend(8)May 2024 | E2fsprogs version 1.47.1 |