System administration command. Enlarge or shrink an ext2 filesystem on device so it has size blocks. The filesystem size cannot be larger than the underlying partition. This command changes only the filesystem size, not the underlying partition. To change the partition, use fdisk.
Print debugging information on resize activity. The value of the flags parameter determines what activity is reported. Compute its value by summing the numbers of the items you wish to debug:
Inode table movement.
Force resize, overriding safety checks.
Shrink filesystem to minimum size.
Print progress information for each resize task.
Print maximum filesystem size then exit.