使用mount挂载一个windows的共享
生活随笔
收集整理的這篇文章主要介紹了
使用mount挂载一个windows的共享
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
使用mount掛載一個windows的共享
1,共享windows的文件夾
2,linux掛載windows共享
| 1 2 | [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/
本文轉自陳仲陽0 51CTO博客,原文鏈接:http://blog.51cto.com/wolfword/1290531
總結
以上是生活随笔為你收集整理的使用mount挂载一个windows的共享的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: AutoMapper在ABP框架中的使用
- 下一篇: java信息管理系统总结_java实现科