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
\\100.179.180.90\MyShare\TempFolder
Username =<USER>
Password =<Pass>
Then, I start to use this command in pi.
sudo mount -t cifs -o username=<USER> //100.179.180.90/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
username=<USER>
password=<Pass>
and fstab using sudo nano /etc/fstab
.
//100.179.180.90/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 //100.179.180.90/MyShare/TempFolder /mnt/test -o user=<USER>,vers=3
Password for CIM_ADMIN@//100.179.180.90/MyuShare/TempFolder:
I thought it is root access issue but I am not sure.
I can ping the ipaddress(100.179.180.90) from (\\100.179.180.90\MyShare\TempFolder
)) from pi and it works.
But mounting window shared folder is giving me headache.
/media
which is used for automount use normal/mnt
(or a dedicated directory.