Skip to content

Instantly share code, notes, and snippets.

@jelical
jelical / defrag_ext4_filesystem.md
Created July 31, 2024 20:28 — forked from rmi1974/defrag_ext4_filesystem.md
How to optimize / defrag ext4 filesystem #ext4 #commandlinefu

How to optimize / defrag ext4 filesystem

Make sure the target filesystem is sane

Open up the terminal and run:

sudo fsck.ext4 -y -f -v /dev/<disk/partition>