OS Manuals

/usr/bin/resize2fs

Ext2/3/4 filesystem extra utilities

From e2fsprogs-extra 1.47.4-r5 (os), captured 2026-11-05 by running resize2fs --help (exit 1). permalink

resize2fs 1.47.4 (6-Mar-2025)
/usr/bin/resize2fs: invalid option -- '-'
Usage: /usr/bin/resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [-b|-s|new_size] [-S RAID-stride] [-z undo_file]
Options (10)
OptionDescriptionSource
-bTurns on the 64bit feature, resizes the group descriptors as necessary, and moves other metadata out of the way.man
-d debug-flagsTurns on various resize2fs debugging features, if they have been compiled into the binary.man
-fForces resize2fs to proceed with the file system resize operation, overriding some safety checks which resize2fs normally enforces.man
-FFlush the file system device's buffer caches before beginning.man
-MShrink the file system to minimize its size as much as possible, given the files stored in the file system.man
-pPrint 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.man
-PPrint 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.man
-sTurns off the 64bit feature and frees blocks that are no longer in use.man
-S RAID-strideThe resize2fs program will heuristically determine the RAID stride that was specified when the file system was created.man
-z undo_fileBefore overwriting a file system block, write the old contents of the block to an undo file.man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.