The disk contains an unclean file system (0, 0). NTFS error on Linux

23. February 2017 RHEL, SysAdmin 6
The disk contains an unclean file system (0, 0). NTFS error on Linux

Issue

You are trying to mount an NTFS partition and the console is throwing the below error. Let’s see how to fix this.

The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda3': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.

Resolution

To solve this issue, run the below command from a terminal as root. Please make sure that the filesystem is not mounted not even in read-only mode.

ntfsfix /dev/sda3

Output

[email protected]:~# ntfsfix /dev/sda3

 

Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda3 was processed successfully.

That’s it, Now mount your NTFS partitions.


6 thoughts on “The disk contains an unclean file system (0, 0). NTFS error on Linux”

  • 1
    Democrito on July 17, 2018 Reply

    Thanks a lot. It solved the problem with my disk.

  • 2
    Jagadeesh MV on December 21, 2019 Reply

    Great! it helped. Thank you.

  • 3
    anurudh kumar on October 21, 2020 Reply

    Now this comes after your command line execution:

    Mounting volume… Error opening read-only ‘/dev/sda7’: Permission denied
    FAILED
    Attempting to correct errors… Error opening read-only ‘/dev/sda7’: Permission denied
    FAILED
    Failed to startup volume: Permission denied
    Error opening ‘/dev/sda7’: Read-only file system
    Volume is corrupt. You should run chkdsk.

    Is there any way to completely delete windows and its backup file.
    or change the file type system?

    • 4
      Jobin Joseph on October 30, 2020 Reply

      Are you sure that you ran the command over the NTFS volume ?

      • 5
        Kumar anurudh on November 3, 2020 Reply

        Yes I ran your command, but it didn’t work that time, later on I tried that one more time and gut successfully changed the permission.

  • 6
    Volker on December 8, 2020 Reply

    Great help!
    I was following this guide
    https://youtu.be/PxWx36AeEu8
    to reset a Windows password using a Linux live CD. But because of the NTFS issue, the Windows partition would only mount read-only.
    Thanks!

Leave a Reply to Volker Cancel reply

Your email address will not be published.