mount -t cifs失败

来源:互联网 发布:淘宝美工工具 编辑:程序博客网 时间:2024/06/04 20:09

          将本地Windows上的的共享文件挂载到虚拟平台上的Linux系统上,老是失败,捣鼓了很久,发现原来要加个参数,记录一下,以做备忘。

          [root@localhost /]# mount -t cifs -o username=administrator,password=caodin1990729 //192.168.6.194/program /mnt
          mount error(13): Permission denied
          Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
         [root@localhost /]# mount -t cifs -o username=administrator,password=caodin1990729,sec=ntlm //192.168.6.194/program /mnt
         [root@localhost /]# cd /mnt

 

        mount error(12): Cannot allocate memory

       Windows vision >= 6.0

       solution:

      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 server name "server".

0 0