I want to shrink a 250GB ext4 partition down to 200GB with resize2fs.
The df tool says the partition is about 40% filled up. So, I guess I can, at least, shrink the partition to that level.
Yet, when I try to shrink the partition with resize2fs, it fails. It says that the shrunk partition size is "smaller than minimum".
I think it’s because the partition still has traces of files that were previously deleted, so resize2fs thinks they’re still on the partition, and shrinking could mean losing those data, thus refusing to shrink the partition.
So my questions are:
- How can I make
resize2fsrealize the partition is indeed 60% empty, so that I can shrink it? - Is there any way to reallocate used blocks, or something like that?
NOTE: I'm a moderately experienced Xubuntu user.