Can anyone please tell me all the steps on how to remove autodefrag from /etc/fstab?

I’m a new Linux user, I’ve an SSD and using BTRFS File System.
I saw this post : "PSA: Linux 5.16 has major regression in btrfs causing extreme IO load" - #74 by ajgringo619

But I don’t know the exact steps on how to properly edit the fstab file, I did this :

sudo mount -o remount,noautodefrag /
sudo nano /etc/fstab
Changed autodefrag to noautodefrag in every subvolume.

And rebooted the machine. But the btrfs-transaction process is still writing 2MB per second on the disk.

Can anyone please tell me the exact steps to edit the fstab file ?

That should be all you need.

2 Likes

I’m not sure if I followed the right steps because “btrfs-transacti” is still running.

You have a btrfs system so btrfs-transactions should still be occurring…

1 Like

OK, but can you tell me if these steps are right ?

sudo mount -o remount,noautodefrag /
sudo nano /etc/fstab

Changed autodefrag to noautodefrag in every subvolume.

Reboot

That should be fine.

You can verify it with findmnt -ln | grep btrfs

2 Likes

rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@

Looks okay to me.

Yes, no autodefrag so it worked.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.