Re: File system defragmentation. Something that can resume after stopping.

Dale <[email protected]> Fri, 15 May 2026 14:31:46 -0500
Newsgroups gmane.linux.gentoo.user
Message-ID <[email protected]>
On 5/14/26 12:01 PM, Dale wrote:
> Either way, once this defrag is done, I'll run fsck again and see what
> it reports for the file system.  Just to see what it says and if it has
> improved.  I've already read that ext4 is really good at keeping files
> together.  I just thought the way files were being written may make it
> very hard for ext4 to keep up.
>
> Dale
>
> 🙂  🙂


It finished while I was trying to finish up that tree.  This is the end 
result.


         Success:                        [ 145562/162777 ]
         Failure:                        [ 17215/162777 ]
         Total extents:                  1828237->777364
         Fragmented percentage:           69%->32%


I suspect some files are to large or something.  Either way, it claims 
to have improved the fragmentation quite a lot.  It seems that the fsck 
output was more correct than the output of the e4defrag -c test.

At least I can do my updates in the morning and not have to stop it.  I 
didn't think it would make it.  I do plan to run it again after my 
updates are done to see what it does.  I plan to do a fsck first, then 
run e4defrag -c, compare the fragmentation info of the two, then run 
e4defrag again.

Now back to work on that tree.  I'm getting close to done.

Dale

:-)  :-)