windows共享目录挂载到linux下
2016-10-28 13:20
417 查看
mount -t cifs -o username="WEB",password="1qaz2wsx" //192.168.10.209/svnbackup//mnt/svnbackup
注:windows共享一定要以用户名密码访问的方式,共享用户一定要有完全权限
username:用户名
password:密码
-t cifs:linux挂载时选择的挂载类型
//192.168.10.209/svnbackup:挂载源
/mnt/svnbackup:挂载点
/etc/fstab的写法:
//192.168.10.209/svnbackup /mnt/svnbackup cifs username=WEB,password=1qaz2wsx 0 0
问题1:
挂载时出现:mount is not a valid block device
问题原因:这是由于系统中没有安装cifs工具所导致的
解决办法:yum install cifs-utils -y
问题2:
挂载时会出现:mount cannot allocate memory
问题原因:这是由于windows系统限制,当挂载到Linux中的文件过大时,会造成内存分配不足
解决办法:
用regedit打开注册表后,进行如下修改
1. “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” 设置为 “1″.
2. “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” 设置为 “3″.
3.修改注册表后,需要重启服务器
注:windows共享一定要以用户名密码访问的方式,共享用户一定要有完全权限
username:用户名
password:密码
-t cifs:linux挂载时选择的挂载类型
//192.168.10.209/svnbackup:挂载源
/mnt/svnbackup:挂载点
/etc/fstab的写法:
//192.168.10.209/svnbackup /mnt/svnbackup cifs username=WEB,password=1qaz2wsx 0 0
问题1:
挂载时出现:mount is not a valid block device
问题原因:这是由于系统中没有安装cifs工具所导致的
解决办法:yum install cifs-utils -y
问题2:
挂载时会出现:mount cannot allocate memory
问题原因:这是由于windows系统限制,当挂载到Linux中的文件过大时,会造成内存分配不足
解决办法:
用regedit打开注册表后,进行如下修改
1. “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” 设置为 “1″.
2. “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” 设置为 “3″.
3.修改注册表后,需要重启服务器
相关文章推荐
- ubuntu等linux挂载windows的共享目录的命令
- Linux操作系统下挂载远程Windows共享目录
- Linux下挂载Windows共享目录
- linux 下挂载windows的共享目录
- Linux挂载windows 共享目录
- linux下挂载windows共享目录
- linux 挂载windows共享文件夹到linux指定目录
- Linux下挂载windows下的共享目录
- 日常积累小结(一) Linux挂载windows共享目录
- linux下挂载windows上的共享目录,并设置所有者为非root用户
- linux中自动挂载windows 共享目录
- linux如何挂载windows共享目录
- Linux挂载Windows共享目录
- linux系统下挂载windows共享目录
- linux下访问windows共享目录并挂载到linux本地文件夹
- 在linux上挂载windows的共享目录
- linux访问windows共享目录开机自动挂载
- linux挂载windows共享目录
- linux下挂载windows的共享文件目录ftp文件夹到/root/wind目录
- Linux下挂载Windows共享目录