使用mount挂载一个windows的共享
使用mount掛載一個(gè)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),也就是說在這以后的系統(tǒng)直接使用mount加參數(shù)cifs就可直接掛載Windows的共享了
掛在的時(shí)候一定要設(shè)置windows的用戶名和密碼
要不然的話就會(huì)出現(xiàn)如下錯(cuò)誤
mounterror5=Input/outputerror
Refertothemount.cifs(8)manualpage(e.g.manmount.cifs)
當(dāng)然,我們還可以共享我們的windows的分區(qū),但是一定要是英文
[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系列培訓(xùn)視頻/SystemVolumeInformation/
本文轉(zhuǎn)自陳仲陽(yáng)0 51CTO博客,原文鏈接:http://blog.51cto.com/wolfword/1290531
總結(jié)
以上是生活随笔為你收集整理的使用mount挂载一个windows的共享的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: AutoMapper在ABP框架中的使用
- 下一篇: rhel 4/oracle linux