Resize an ext2, ext3 or ext4 filesystem. Does not resize the underlying partition, and the filesystem must be unmounted.
resize2fs {{/dev/sdXN}}
resize2fs -p {{/dev/sdXN}} {{40G}}
resize2fs -M {{/dev/sdXN}}