Definition:

  • ext2/ext3/ext4 Filesystem resizer
  • You can enlarge a mounted file system, but you must unmount the filesystem before you can shrink it.
  • If you don’t specify a size, the file system will be resized to the same size as the partition
  • It’s important to note that resize2fs does not resize partitions, only the filesystem.
    • must use a command such as fdisk command or an LVM tool to first expand the size of the partition/volume and to then enlarge the file system.

Synopsis:

  • resize2fs [ -fFpPMbs ] [ -d debug-flags ] [ -S RAID-stride ] [ -z undo_file ] device [ size ]

List of options: