I tried to mount window shared folder on raspberry pi but it is not successful yet. Every time I run the command to mount, it just keeps showing
mount error:Host is down.
Here is what I have tried to achieve mount shared folder on Pi
First, I get the window shared folder. In my case, it is
\\220.127.116.11\MyShare\TempFolder Username =<USER> Password =<Pass>
Then, I start to use this command in pi.
sudo mount -t cifs -o username=<USER> //18.104.22.168/MyShare/TempFolder /media/mountName
However, I have got this error.
mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Then I edit .smbcredentials using sudo nano ~/.smbcredentials
and fstab using
sudo nano /etc/fstab.
//22.214.171.124/MyShare/TempFolder /media/mountName cifs credentials=/home/pi/.smbcredentials,uid=1000,gid=1000,vers=3.0,nounix 0 0
Then I put
sudo mount -a then the error is still the same.
Host is down.
But then when I check FileManager,
mount: /media/mountName: operation permitted for root only.
Even though I use
/mnt/test it keeps showing me error of
host is down.
I have used different versions of SMB protocols stated in pi documentation. For example,
sudo mount.cifs //126.96.36.199/MyShare/TempFolder /mnt/test -o user=<USER>,vers=3 Password for CIM_ADMIN@//188.8.131.52/MyuShare/TempFolder:
I thought it is root access issue but I am not sure.
I can ping the ipaddress(184.108.40.206) from (
\\220.127.116.11\MyShare\TempFolder)) from pi and it works.
But mounting window shared folder is giving me headache.