Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Created January 17, 2024 16:11
Show Gist options
  • Save yordanoweb/24ab772d264ef3ded995ac44ddc7d1ca to your computer and use it in GitHub Desktop.
Save yordanoweb/24ab772d264ef3ded995ac44ddc7d1ca 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment