今天囧了啊,在ubuntu挂载的文件夹里面解压数据库,结果linux嫌太大挂掉了直接mount error(12): Cannot allocate memory折腾了好久,终于发现解决办法:

方法一:

------------------------------------------------------------------------------------------------------------------------------------------

http://blog.csdn.net/strategycn/article/details/7917082

当通过mount.cifs命令对windows下的文件进行映射时,若文件太大,便会产生这种错误,解决方法是:

修改注册表 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize项的值大于等于15,若IRPStackSize项不存在,就新建一个DWORD值,点击弹出窗口的的进制为十进制,值写个18就ok了,还要重启一下。

-------------------------------------------------------------------------------------------------------------------------------------------

--------------------------------------------------------detail-----------------------------------------------------------------------------------

http://linux.derkeiler.com/Newsgroups/comp.os.linux.networking/2006-10/msg00629.html

Check the Event Log on the Windows machine(

  1. 单击“开始”,然后单击“控制面板”。单击“性能和维护”,再单击“管理工具”,然后双击“计算机管理”。或者,打开包含事件查看器管理单元的 MMC。
  2. 在控制台树中,单击“事件查看器”。

    应用程序日志、安全日志和系统日志显示在“事件查看器”窗口中。

) that fails to allow it's share
to be mounted under System. Look for a red X, and the word Error. The
Source is Srv. The error will be:

The server's configuration parameter "irpstacksize" is too small for the
server to use a local device. Please increase the value of this
parameter.

If you have this error on the Windows machine that fails to have it's
share mounted, then do the following...

This key in the system registry must be modifed or created:(这个运行regedit)

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer
\Parameters\IRPStackSize

If the key is there, increase it a bit to say 15 or 18. If the key does
not exist, as in my case, create a new DWORD Valute. Name it
IRPStackSize. Double click on it to edit the value, put a check on the
Decimal radio button for the Base so that you can see the parameter value
as a decimal value and not a hexidecimal value. Give the new key a value
of 15 and reboot. If that is not enough, raise it a litte to let's say 18
and then reboot again. The problem is solved. Go mount your samba shares.

方法二

------------------------------------------------------------------------------------------------------------------------------------------

http://cplusplus2012.blog.163.com/blog/static/206676268201322054621392/

转载自: 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还是没有,重新手动挂载就报这个错。 有时又没有,说不准这个问题的出现原因。 看来这个才明白。

------------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------details-----------------------------------------------------------------------------------------

还有其他办法没有试过:祝大家好运!

http://jlcoady.net/windows/how-to-resolve-mount-error12-cannot-allocate-memory-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:

  1. Set “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” to “1″.
  2. Set “HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” to “3″.
  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.

mount cifs出现cannot allocate memory解决方法相关推荐

  1. mount.nfs: Stale file handle的解决方法

    mount.nfs: Stale file handle的解决方法 参考文章: (1)mount.nfs: Stale file handle的解决方法 (2)https://www.cnblogs. ...

  2. Ubuntu 17.10/内核4.13.0 vmware 提示 Not Enough Physical Memory 解决方法

    Ubuntu 17.10/内核4.13.0 vmware 提示 Not Enough Physical Memory 解决方法 ubuntu 从17.04升级到17.10后 vmware出现了物理内存 ...

  3. mount error 12 = Cannot allocate memory

    当通过mount.cifs命令对windows下的文件进行映射时,若文件太大,便会产生这种错误,解决方法是: 修改注册表 HKEY_LOCAL_MACHINE\System\CurrentContro ...

  4. mount gives unknown filesystem type 'vboxsf' 解决方法

    综述 mount gives unknown filesystem type 'vboxsf' 挂载的时候报错! 解决方法 安装virtual box的增强件: sudo apt-get instal ...

  5. 电脑重启出现蓝屏提示“beginning dump of physical memory”解决方法

    最近有微软用户反映,电脑很经常重启后出现蓝屏,并提示错误代码"beginning dump of physical memory",用户不知道这是怎么回事,也不知道该怎么办,为此非 ...

  6. IDEA编译项目报错Error:OutOfMemoryError: insufficient memory解决方法

    tomcat启动时设置 -DEWAY_HOME=G:\东华\workspace\idea\SOAR\dhcc-home -Xms128m -Xmx2048m -XX:PermSize=128M -XX ...

  7. pycharm 报错 out of memory 解决方法

    最近在跑程序,然后Pycharm就跳出out of memory 的错误提示,可能是由于读取的数据太多导致的,Pycharm有一个默认内存的最大容量上线,跳出提示的是1024M,也就是分配给Pycha ...

  8. fork: Cannot allocate memory 解决

    解决的方法是扩大最大进程数目 查看当前的最大进程数 #systemctl kernel.pid_max kernel.pid_max = 32768 #echo 65536 > /proc/sy ...

  9. 工作遇坑-Cannot allocate memory问题解决方法

    1.vi /etc/sysctl.conf 修改以下参数 vm.overcommit_memory = 1 2.执行 sysctl -p 更新配置 做完这两部,你再回去启动你的服务或者执行你的脚本就会 ...

最新文章

  1. 4月《程序员》上我讲HTML5的文章---激动人心的HTML5之美
  2. ai画面怎么调大小_怎么使用pr(adobe premiere)裁剪视频画面的大小
  3. XXX管理平台系统——概要
  4. 硬盘安装Linux救援系统,硬盘安装linux系统
  5. [python opencv 计算机视觉零基础到实战] 十一找到图片中指定内容
  6. vue mysql webapp_基于Laravel+VueJS实战开发WebAPP
  7. Zookeeper原理和实战开发经典视频教程 百度云网盘下载
  8. 无限级分类限定层级_王者荣耀:s20战令该不该买?战令限定星元皮肤实测真香...
  9. Java获取数据类型
  10. MYSQL问题解决方案:Access denied for user ‘root‘@‘localhost‘ (using password:YES)
  11. Delphi2007企业版破解
  12. java font 字体 隶书_font-style字体设置
  13. 调用百度图像识别api处理网络图片(文字识别)
  14. SPI专题(二)——STM32驱动FLASH(W25Q64)
  15. WIFI、路由器、猫、AP管理
  16. php开发天气可视化,R语言天气可视化应用 | 粉丝日志
  17. 当谈论研发效能时,我们到底在谈什么?|大咖圆桌精华回顾
  18. Artifact xxx:war exploded: Error during artifact deployment.See server log for details.
  19. [软工导论①]复习题库
  20. 算法学习之实现二维矩阵的顺时针遍历

热门文章

  1. http学习笔记(三):报文
  2. 想做个手机app,大家帮忙提些建议~thx
  3. [公告]我的Live Spaces - 读书空间
  4. 关于python语言、下列说法不正确的是-关于 Python字符串,下列说法错误的是_学小易找答案...
  5. python自学平台-怎么自学python,大概要多久?
  6. python语言命令大全-python常用命令
  7. python3菜鸟教程-python3入门教程之hello world
  8. 会计学python有用吗-会计转到数据分析值得吗?
  9. python百度百科api-python使用API
  10. python是中国的吗-使用Python实现画一个中国地图