1

My old workstation, has /var /usr and /home mounted on an xfs file system, and it seems to spend most of its time grinding away, and getting slower and slower, much like windows used to 20 years ago, when it was heavily fragmented.

So how do I check the fragmentation status of XFS disks, and how do I fix it when I identify it.

I assume there is some magic, which prevents the old FAT type mess, but clearly something is going on, and it isn't a full disk.

As an aside my root partition is ext4, which I read somewhere can't get fragmented or fixes itself if it does. How do I check that too, and encourage it if needs be.

2
  • I've found xfs_fsr which seems to do something, but if someone could explain whats going on, and why it works on a mounted disk etc, I'd appreciate it. Still no clue about ext4 equivalence though
    – sibaz
    Commented Oct 31, 2022 at 12:14
  • 1
    The description and notes in the man page are farily explicit. What don't you understand on the process? It explicitly does not work on files mapped in memory so why shouldn't it work on a mounted file system? e4defrag is available for ext4 file systems.
    – doneal24
    Commented Oct 31, 2022 at 13:52

0

You must log in to answer this question.

Browse other questions tagged .