BlogLinux Mint. Fixing Unclean File System Error When Mounting an NTFS Partition[{"Id":"201911110409520797","ParentId":"20191111040741849839","Type":"Text","Sequence":1,"Attributes":{"Text":"If you are running a dual boot (Windows/Linux Mint) computer you may want to share data between both OS systems, so that you may use it regardless of the OS you have booted with. The easiest way to do it to create a new NTFS partition called DATA. Windows and Linux Mint will both recognize the partition, and will mount it during boot time."}},{"Id":"201911110412160095","ParentId":"20191111040741849839","Type":"Text","Sequence":2,"Attributes":{"Text":"However sometimes it may be annoying that the DATA partition gets mounted as read only, instead of read and write partition. Digging deeper and trying to unmount and mount the partition yourself you will find the following message:"}},{"Id":"201911110411450671","ParentId":"20191111040741849839","Type":"Code","Sequence":3,"Attributes":{"Language":"html","Code":"The disk contains an unclean file system (0, 0).\r\nMetadata kept in Windows cache, refused to mount.\r\nFalling back to read-only mount because the NTFS partition is in an\r\nunsafe state. Please resume and shutdown Windows fully (no hibernation\r\nor fast restarting.)"}},{"Id":"201911110413530104","ParentId":"20191111040741849839","Type":"Text","Sequence":4,"Attributes":{"Text":"The reason is that in order to boot Windows faster Microsoft introduced a new feature called Fast Startup. During a normal shut down all components (CPU, RAM, CD-Rom and hard disks) are powered off. But in fast start up, some system information is saved to a metadata file, which is later used to restore the system status faster. This metadata file causes Linux to mount the partition in protected mode and you cannot mount it (without being root)."}},{"Id":"201911110423110939","ParentId":"20191111040741849839","Type":"Heading","Sequence":5,"Attributes":{"Level":"2","Text":"Solution"}},{"Id":"201911110423290637","ParentId":"20191111040741849839","Type":"Text","Sequence":6,"Attributes":{"Text":"To fix the issue unmount the partitin and run the following commands"}},{"Id":"201911110424100676","ParentId":"20191111040741849839","Type":"Code","Sequence":7,"Attributes":{"Language":"html","Code":"sudo ntfsfix /dev/sda{YOUR_NTFS_PARTITION_NUMBER_HERE}"}},{"Id":"201911110425440963","ParentId":"20191111040741849839","Type":"Text","Sequence":8,"Attributes":{"Text":"The command will output something similar to:"}},{"Id":"201911110425470568","ParentId":"20191111040741849839","Type":"Code","Sequence":9,"Attributes":{"Language":"html","Code":"Mounting volume... The disk contains an unclean file system (0, 0).\r\nMetadata kept in Windows cache, refused to mount.\r\nFAILED\r\nAttempting to correct errors... \r\nProcessing $MFT and $MFTMirr...\r\nReading $MFT... OK\r\nReading $MFTMirr... OK\r\nComparing $MFTMirr to $MFT... OK\r\nProcessing of $MFT and $MFTMirr completed successfully.\r\nSetting required flags on partition... OK\r\nGoing to empty the journal ($LogFile)... OK\r\nChecking the alternate boot sector... OK\r\nNTFS volume version is 3.1.\r\nNTFS partition /dev/sda5 was processed successfully."}},{"Id":"201911110426430097","ParentId":"20191111040741849839","Type":"Text","Sequence":10,"Attributes":{"Text":"Now remount the partitions and you are done"}},{"Id":"201911110427110284","ParentId":"20191111040741849839","Type":"Code","Sequence":11,"Attributes":{"Language":"html","Code":"sudo mount --all"}}] Loading blog_post_recommendations...
|