resize2fs Command Examples

Resize an ext2, ext3 or ext4 filesystem. Does not resize the underlying partition. The filesystem may have to be unmounted first, read the man page for more details. More information: https://manned.org/resize2fs.

resize2fs {{/dev/sdXN}}

resize2fs -p {{/dev/sdXN}} {{40G}}

resize2fs -M {{/dev/sdXN}}