加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

如何使用mount挂载一个windows的共享

发布时间:2016-11-02 07:49:55 所属栏目:Linux 来源:网络整理
导读:1,共享windows的文件夹 2,linux挂载windows共享 [root@test2 ~]# mkdir /mnt/cifs [root@test2 ~]# mount -t cifs -o username=administrator,password=123 //

1,共享windows的文件夹

如何使用mount挂载一个windows的共享

2,linux挂载windows共享

[root@test2 ~]# mkdir /mnt/cifs

[root@test2 ~]# mount -t cifs  -o username=administrator,password=123  //192.168.137.107/LINUX  /mnt/cifs

3,注意

使用cifs(CommonInternetFileSystemcifs),也就是说在这以后的系统直接使用mount加参数cifs就可直接挂载Windows的共享了

挂在的时候一定要设置windows的用户名和密码

要不然的话就会出现如下错误

mounterror5=Input/outputerror

Refertothemount.cifs(8)manualpage(e.g.manmount.cifs)

当然,我们还可以共享我们的windows的分区,但是一定要是英文

[root@test2~]#umount/mnt/cifs/

[root@test2~]#mount-tcifs-ousername=administrator,password=123//192.168.137.107/e/mnt/cifs

[root@test2~]#cd/mnt/cifs/

360Rec/ORACLE/

LINUX/$RECYCLE.BIN/

MySQL系列培训视频/SystemVolumeInformation/

本文出自 “好好活着” 博客,请务必保留此出处http://wolfword.blog.51cto.com/4892126/1290531

查看本栏目更多精彩内容:http://www.bianceng.cn/OS/Linux/

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读