{"id":12492,"date":"2012-10-03T08:54:00","date_gmt":"2012-10-03T07:54:00","guid":{"rendered":"https:\/\/touk.pl\/blog\/?guid=6d5ede7bf59f6d57a238bea2274ddc21"},"modified":"2022-08-02T15:13:06","modified_gmt":"2022-08-02T13:13:06","slug":"mount-ntfs-high-cpu-ubuntu","status":"publish","type":"post","link":"https:\/\/touk.pl\/blog\/2012\/10\/03\/mount-ntfs-high-cpu-ubuntu\/","title":{"rendered":"mount.ntfs high cpu ubuntu"},"content":{"rendered":"<p>My computer suffers from sudden and continous hard drive load strokes. Sometimes it lasts for a few minutes and hence work is impossible because everything goes very slow.<br \/>\nI&#8217;m trying to locate the cause because it makes me nervous :)<\/p>\n<p>Today I found one of the causes. It&#8217;s\u00a0<i>updatedb.mlocate<\/i> script which is responsible for scanning hard drives and build locate (a location of files) database. But due to some NTFS driver limitations that poor thing thinks that NTFS share is always new and needs to be rescan at every scheduled scan.<\/p>\n<p>How to make sure that you have the same problem? When hard drive starts to choke check all IO processes with<\/p>\n<p><i>sudo iotop<\/i><\/p>\n<p>and look for\u00a0<i>updatedb.mlocate <\/i>or\u00a0<i>mount.ntfs<\/i>\u00a0processes with high IO load. If this is the case try to fix it.<br \/>\nThe solution is to point NTFS shares as non-scannable. To do this edit<\/p>\n<p><i>\/etc\/updatedb.conf<\/i><\/p>\n<p>and add your NTFS mount paths to\u00a0PRUNEPATHS list. Although NTFS is listed in PRUNEFS entry that dummy <i>mlocate<\/i> script still would scan NTFS shares.<\/p>\n<p>All that I found on <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=1653598\">Ubuntu forum<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"My computer suffers from sudden and continous hard drive load strokes. Sometimes it lasts for a few minutes and hence work is impossible because everything goes very slow.I&#8217;m trying to locate the cause because it makes me nervous :)Today I found one of&#8230;\n","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":{"0":"post-12492","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-development-design"},"_links":{"self":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/12492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/comments?post=12492"}],"version-history":[{"count":2,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/12492\/revisions"}],"predecessor-version":[{"id":12494,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/12492\/revisions\/12494"}],"wp:attachment":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/media?parent=12492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/categories?post=12492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/tags?post=12492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}