首先啊,我在网上查了,都是直接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 (e.g. man mount.cifs)
[[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不是共享目录,测试完成.