How to Resolve “mount error(12): Cannot allocate memory” on a Windows Share

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, but the solution is to make two registry edits and then restart a service:

Set “HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache” to “1″.
Set “HKLMSYSTEMCurrentControlSetServicesLanmanServerParametersSize” to “3″.
Restart the “server” service.
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.


Tunnel / Encrypt web traffic

-Firefox > Preferences > Manual Proxy configuration > Socks Host: localhost Port: 9999, socksv5.


Next open linux terminal and setup up tunneling.

$ssh -CND 9999


Follow these screen shots…

*Leave terminal window open.

To verify web traffic is coming from the host go to and the server ip should be listed from where data is being tunnelled through!