{"id":856,"date":"2012-08-08T20:21:56","date_gmt":"2012-08-08T19:21:56","guid":{"rendered":"http:\/\/www.fbcs.co.uk\/wp\/?p=856"},"modified":"2012-08-08T20:21:56","modified_gmt":"2012-08-08T19:21:56","slug":"how-to-resolve-mount-error12-cannot-allocate-memory-on-a-windows-share","status":"publish","type":"post","link":"https:\/\/wp.fbcs.co.uk\/how-to-resolve-mount-error12-cannot-allocate-memory-on-a-windows-share\/","title":{"rendered":"How to Resolve \u201cmount error(12): Cannot allocate memory\u201d on a Windows Share"},"content":{"rendered":"

[Copied from http:\/\/jlcoady.net\/windows\/how-to-resolve-mount-error12-cannot-allocate-memory-windows-share<\/a> because it's so useful.]<\/p>\n

If you mount a Windows 7 share using Samba\/CIFS you may run into “mount error(12): Cannot allocate memory” if you are using very large files on the Windows machine. Looks like in certain situations Windows needs to be told to run as a file server and to expect large files. You can read more details at Large Files are locking up Windows 7 32 bit and 64 bit<\/a>, but the solution is to make two registry edits and then restart a service:<\/p>\n

    \n
  1. Set “HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache” to “1″.<\/li>\n
  2. Set “HKLMSYSTEMCurrentControlSetServicesLanmanServerParametersSize” to “3″.<\/li>\n
  3. Restart the “server” service.<\/li>\n<\/ol>\n

    Once you have done that you should be able to mount the share using a command like “sudo mount -a” or just reboot the Linux machine.<\/p>\n","protected":false},"excerpt":{"rendered":"

    [Copied from http:\/\/jlcoady.net\/windows\/how-to-resolve-mount-error12-cannot-allocate-memory-windows-share because it's so useful.] If you mount a Windows 7 share using Samba\/CIFS you may run into “mount error(12): Cannot allocate memory” if you are using very large files on the Windows machine. Looks like in certain situations Windows needs to be told to run as a file server and to expect […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,51,3],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/posts\/856"}],"collection":[{"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/comments?post=856"}],"version-history":[{"count":0,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/posts\/856\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/media?parent=856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/categories?post=856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.fbcs.co.uk\/wp-json\/wp\/v2\/tags?post=856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}