mount CIFS return ERR -12 and report Cannot allocate memory

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mount CIFS return ERR -12 and report Cannot allocate memory相关的知识,希望对你有一定的参考价值。

When I mount CIFS on board, it encountered error as below:

# mount -t cifs //192.168.1.28/98share /tmp -o user=name,pass=code
CIFS VFS: Send error in SessSetup = -12
mount: mounting //192.168.1.28/98share on /tmp failed: Cannot allocate memory

 

The OS of remote PC is WIN7.

Get the solution from internet,  it says:

Modify the register:

Set “HKLM_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” to “1″.
Set “HKLM_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” to “3″.

And then restart the PC.

 

You‘ll find it works.

以上是关于mount CIFS return ERR -12 and report Cannot allocate memory的主要内容,如果未能解决你的问题,请参考以下文章

如何使用mount挂载一个windows的共享文件夹

centos7 使用mount -t cifs 挂载windows共享目录方法与问题解决

mount: /bak: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<t

linux通过cifs挂载windows共享目录

linux挂载文件报错mount error(13): Permission denied

linux和window是文件挂载