The thing I need to do is to shrink ext4 filesystem, and then recreate partition. Overall I know what needs to be done, the process is pretty straightforward. But there is one little thing that makes me paranoid.
If you read the man page, it starts with the words:
The resize2fs program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device.
So, okay, it seems that it cat shrink ext4 fs. But:
If you wish to shrink an ext2 partition, first use resize2fs to shrink the size of filesystem. Then you may use fdisk(8) to shrink the size of the partition. When shrinking the size of the partition, make sure you do not make it smaller than the new size of the ext2 filesystem!
No mention of ext4 file system at all. Making a backup of the whole partition/fs is not an option, or at least, a major inconvenience in my case.
So, the question is - has anyone tried this? Can this program shrink an ext4 filesystem?