{"id":1909,"date":"2022-10-09T21:03:49","date_gmt":"2022-10-09T21:03:49","guid":{"rendered":"https:\/\/www.qworqs.com\/?p=1909"},"modified":"2023-11-07T06:24:15","modified_gmt":"2023-11-07T06:24:15","slug":"mounting-unclean-windows-drive-in-linux","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2022\/10\/09\/mounting-unclean-windows-drive-in-linux\/","title":{"rendered":"Mounting unclean NTFS windows drive in Linux"},"content":{"rendered":"\n<p>Whenever i get the following message<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mount \/dev\/sdd1 \/hds\/sgt2tb\nThe disk contains an unclean file system (0, 0).\nMetadata kept in Windows cache, refused to mount.\nFalling back to read-only mount because the NTFS partition is in an\nunsafe state. Please resume and shutdown Windows fully (no hibernation\nor fast restarting.)\nCould not mount read-write, trying read-only<\/pre>\n\n\n\n<p>The command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ntfsfix \/dev\/sdd1<\/pre>\n\n\n\n<p>resolves the issue, and produces the following message<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Mounting volume... The disk contains an unclean file system (0, 0).\nMetadata kept in Windows cache, refused to mount.\nFAILED\nAttempting to correct errors...\nProcessing $MFT and $MFTMirr...\nReading $MFT... OK\nReading $MFTMirr... OK\nComparing $MFTMirr to $MFT... OK\nProcessing of $MFT and $MFTMirr completed successfully.\nSetting required flags on partition... OK\nGoing to empty the journal ($LogFile)... OK\nChecking the alternate boot sector... OK\nNTFS volume version is 3.1.\nNTFS partition \/dev\/sdd1 was processed successfully<\/pre>\n\n\n\n<p>The same mount command you see here will now work flawlessly<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mount \/dev\/sdd1 \/hds\/sgt2tb<\/pre>\n\n\n\n<p>I am still unsure what process from the mentioned above is responsible, as this oftentimes pops up on drives that were never system drives, so there is no hibernation file problem<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever i get the following message mount \/dev\/sdd1 \/hds\/sgt2tb 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, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,158,32,156,132,1,17],"tags":[],"class_list":["post-1909","post","type-post","status-publish","format-standard","hentry","category-linux","category-mount","category-ntfs","category-storage","category-switching-from-windows","category-uncategorized","category-windows"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=1909"}],"version-history":[{"count":4,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1909\/revisions"}],"predecessor-version":[{"id":2964,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1909\/revisions\/2964"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=1909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=1909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=1909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}