如何使用mount挂载一个windows的共享
|
1,共享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/ (编辑:佛山站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |


