你出現這錯誤的時候我相信你心中也有很多????
你服務端的上下文做了,分享文件有了,防火牆關了,,服務組件都有,系統也重啓了,也hostname查看當前域名了,也確定當前網絡是正常的。
你客戶端能正常讀取到客戶端掛載的內容,/etc/fstab中格式配置沒問題,域名換成ip也試過了,不可能存在地址不存在,客戶端也能ssh到服務器。
但是就是掛載不上。
報錯如下;
[root@desktop0 ~]# mount -a
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)
我知道你心中有很多???
故障原因:服務器 /etc/samba/smb.conf
共享的名字和客戶端/etc/fstab
設置的服務器路徑名不符
就會導致報錯:
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)
解決方法:
去服務端的配置文件中 /etc/samba/smb.conf
查看你共享的名字,[ 這裏面的名字]
。
然後去客戶端/etc/fstab
中,查看你設置的服務端名字,如下面的/common
//server0/common /mnt/multiuser cifs multiuser,username=brian,password=redhat,sec=ntlmssp 0 0