您的位置:首页 > 运维架构 > Linux

linux下远程挂载windows共享目录

2013-12-16 13:53 357 查看

linux下远程挂载windows共享目录

环境:windows 7 旗舰版、CentOS 6.3

远程windows IP:192.168.5.60 (user/password:administrator/123456) 共享目录为D:\Source

操作:

挂载位置:

#mkdir -p /mnt/source

必须设置D:\Source为共享目录,然后进入centos下操作

#mount -t cifs -o username=administrator,password=123456 192.168.5.60:Source /mnt/source

挂载完成,通过ls /mnt/source可以查看共享目录

取消相应挂载:

#umount /mnt/source
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: