Skip to main content

How to defragment files in size less than 100MB only in ext4 filesystem [Resolved]

I have a very basic idea:

I would like to defragment files in size less than 100MB only in ext4 filesystem.

Since there is no option for that in the defragmentation tool (e4defrag), any ideas how I could achieve that?

I know only how to find those files:

find / -type f -size -100M

Reason for such action:

I had a system with 99.x% of the fs occupied, I freed the space now, leaving many files fragmented.


Question Credit: Vlastimil
Question Reference
Asked March 17, 2019
Posted Under: Unix Linux
50 views
1 Answers

Your Answer