centos7挂载windows磁盘

时间:2020-06-28 13:01:38   收藏:0   阅读:150

1. 设置windows共享磁盘或者文件夹

2.使用命令 mount -t cifs -o username=yxs,password=123456 //192.168.1.105/d /home/code 进行挂载

可能会出现 mount: \\192.168.1.105\d 写保护,将以只读方式挂载 mount: 无法以只读方式挂载 \\192.168.1.105\d

解决办法:检查windows账户密码是否正确 或者 在windows新添加个账户

3.在使用命令 mount -t cifs -o username=ad,password=123456 //192.168.1.105/d /home/yxs/code 

完美解决

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!