Skip to content

Instantly share code, notes, and snippets.

@unixc3t
Forked from yordanoweb/fix-dirty-ntfs.md
Created March 27, 2025 03:56
Show Gist options
  • Save unixc3t/7902558335cd68332807377ed3088fdc to your computer and use it in GitHub Desktop.
Save unixc3t/7902558335cd68332807377ed3088fdc to your computer and use it in GitHub Desktop.
Fix dirty NTFS disk from Linux

Fix dirty NTFS disk from Linux

The problem

Sometimes when try to mount an NTFS disk in Linux, you get at journalctl the error:

ene 17 10:52:55 hp3nvyl17 kernel: ntfs3: sda1: It is recommened to use chkdsk.
ene 17 10:52:55 hp3nvyl17 kernel: ntfs3: sda1: volume is dirty and "force" flag is not set!

Possible solution: use this command

sudo ntfsfix --clear-dirty /dev/sda1
@unixc3t
Copy link
Author

unixc3t commented Mar 27, 2025

journalctl -k -n 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment