NTFS The disk contains an unclean file system
When trying to mount a Windows NTFS partition on Linux, I got the following error message
root@vmi552968:~# mount -t ntfs /dev/sda1 /mnt The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Falling back to read-only mount because the NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting.) Could not mount read-write, trying read-only root@vmi552968:~#
This is because Windows Machine is not properly shutdown. If you don’t have access to properly shutdown, for example, you lost password for windows, you can use the “ntfsfix” command to fix the warning.
ntfsfix /dev/sda1
Example
root@vmi552968:~# ntfsfix /dev/sda1 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/sda1 was processed successfully. root@vmi552968:~# mount -t ntfs /dev/sda1 /mnt root@vmi552968:~#
Back to mount