linux系統掛載windows文件夾
首先啊,我在網上查了,都是直接mount或者mount.cifs 用戶密碼目錄就行了,但是我死活都掛載不上,各種無語,
網上查了好多的前輩的掛載方法,但是我就是掛在不上,報錯如下:
[[email protected] tuxiang]# mount.cifs //10.10.32.201/file /mnt/server -o user=administrator,pass=hxy123
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page
[[email protected] tuxiang]# mount.cifs //192.168.10.1/file /mnt/server -o user=administrator,pass=hxy123
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[[email protected] tuxiang]# ping 10.10.32.201
PING 10.10.32.201 (10.10.32.201) 56(84) bytes of data.
64 bytes from 10.10.32.201: icmp_seq=1 ttl=64 time=14.3 ms
64 bytes from 10.10.32.201: icmp_seq=2 ttl=64 time=18.0 ms
我試著看下網絡也沒問題
最後想到,既然是共享文件夾,那是不是需要windows也是設置共享呢?
說做就做,
文件夾共享OK了
再次嘗試
[[email protected] tuxiang]# mount.cifs //192.168.10.1/file /mnt/server -o user=administrator,pass=hxy123
[[email protected] tuxiang]# cd /mnt/server/
[[email protected] server]# ls
MicrosoftOffice_2007_XiTongZhiJia.zip Total_Control_6.2.0.2886.exe wftpd32.exe
OK成功了.
還有過程中出現的一個插曲
我做好共享目錄後向這是不是要絕對路徑才能唄掛載,於是加上了
mount.cifs //192.168.10.1/software/file /mnt/server -o user=administrator,pass=hxy123
這樣也不行,應為software不是共享目錄,測試完成.
本文出自 “Forand” 博客,請務必保留此出處http://853056088.blog.51cto.com/12966870/1931767
linux系統掛載windows文件夾