ubuntu mount windos share目录,遇到mount error(12): Cannot allocate memory
2015-01-23 14:16
591 查看
转载自: http://blog.chinaunix.net/uid-9185047-id-2973258.html
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 “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” to “1″.
Set “HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” 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.
这个问题太纠结了,有时挂载成功了,解压或者编译什么的,有时遇到Cannot allocate memory,就看不到你mount的目录,然后重启ubuntu还是没有,重新手动挂载就报这个错。 有时又没有,说不准这个问题的出现原因。 看来这个才明白。
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 “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” to “1″.
Set “HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” 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.
这个问题太纠结了,有时挂载成功了,解压或者编译什么的,有时遇到Cannot allocate memory,就看不到你mount的目录,然后重启ubuntu还是没有,重新手动挂载就报这个错。 有时又没有,说不准这个问题的出现原因。 看来这个才明白。
相关文章推荐
- Ubuntu mount error(12): Cannot allocate memory 的解决方法
- mount CIFS return ERR -12 and report Cannot allocate memory
- mount CIFS return ERR -12 and report Cannot allocate memory
- Mount.cifs cannot allocate memory mounting Windows share
- mount error 12 = Cannot allocate memory
- mount mount error:cannot allocate memory (12) 处理
- mount CIFS return ERR -12 and report Cannot allocate memory
- mount error 12 = Cannot allocate memory
- mount error(12): Cannot allocate memory解决办法
- mount error 12 = Cannot allocate memory
- mount mount error:cannot allocate memory (12) 处理
- mount error(12): Cannot allocate memory解决办法
- win7 下虚拟机资源挂载失败,报错mount: Cannot allocate memory
- TIP: system errno 12 Cannot allocate memory
- Ora-27102: Out Of Memory: Linux Error: 12: Cannot Allocate Memory with LOCK_SGA=TRUE[ID 401077.1]
- win7 mount到Linux下无法分配内存的问题(Cannot allocate memory)
- 编译安装php时遇到virtual memory exhausted: Cannot allocate memory
- 执行Runtime.exec异常: error=12,Cannot allocate memory
- system() 函数执行遇到 Cannot allocate memory
- Suddenly error='Cannot allocate memory' (errno=12) [closed]