Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Created January 17, 2024 16:11
Show Gist options
  • Select an option

  • Save yordanoweb/24ab772d264ef3ded995ac44ddc7d1ca to your computer and use it in GitHub Desktop.

Select an option

Save yordanoweb/24ab772d264ef3ded995ac44ddc7d1ca to your computer and use it in GitHub Desktop.

Revisions

  1. yordanoweb created this gist Jan 17, 2024.
    16 changes: 16 additions & 0 deletions fix-dirty-ntfs.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # 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
    ```