Issue mounting SMB drive

Hi all, hope you doing well
after searching for a appropiate OS, I just installed dietpi on my raspberry pi 4, and decided to mount a disk from my personal computer (with windows) in order to transfer files easily, but I had some problems:

I firstly tried to mount it via DietPi-Drive_Manager, and putting the information in this order:

  • add SMB server
  • enter fileserver IP adress (192.168.x.x ,normal ip, also tried with fileserver’s name, it didn’t work either)
  • entered fileservers’s folder or path (as it’s windows, i put \computer-name\shared-folder)
  • fileserver’s username (in my case , ADMIN)
  • password for ADMIN (I put the one with the user, idk if it’s correct or I have to put another)
  • path (/mnt/samba/sharedfolder)
    after trying a little, it returned me this error:
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

then I tried to do it via console, and it happened me the same:

root@dietpi:~# sudo mount.cifs //computer-name/sharedfolder /root/sharedname -o user=ADMIN            
mount error: could not resolve address for computer-name: Unknown error (idk why this happened, so I tried with IP)

root@dietpi:~#  sudo mount.cifs //192.168.x.xx/sharedfolder /root/hookgate -o user=ADMIN
Password for ADMIN@//192.168.x.xx/GanxoDiskShared2.0:

aaand, it returned me the same error:

mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

Can someone please help me? I hadn’t find anything about it and I don’t know if I have done something wrong or whatever

Thank you for your help!! :grinning:

Hello and welcome to the forum.
I’ve tried just right now to mount a windows 10 share and it worked for me.
Are you able to ping the server from the RPi?

Hi, thanks for your response.
Idk if you’re talking about the command ping, if that’s the case I can’t get any response (I supose because putting a computer’s IP into pinging wouldn’t need to work) If not, could you please be more specific abput the procedure?

Yes, I talking about pinging your windows machine from your RPi. It works also with IPs.
ping 192.168.x.x -c 5

If you do not get a response then the windows machine with the samba share is not reachable for some reason.

Ok I saw this just now, but I entered the IP, as you did, and as folder/path only the shares name (in my case Musik), without any computername or absolute path.

These are just the username and password from the windows machine user/admin.

It didn’t work, doesn’t got any response

--- 192.168.x.xx ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4092ms

I’ll try with your latest response, if not then I’ll try to reshare the folder

I tried as you did, but nothing happened and I got the same error

mount error(115): Operation now in progress                                  │
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log  │
│ messages (dmesg)

Yeah Windows might not react on ping :slight_smile:

Question: Did you setup SAMBA server on your Windows box or on DietPi?

On Windows.
Thank you all for the help, I finally managed to solve it.
it seems that my windows antivirus (ESET) was blocking any kind of connection, so that made impossible to mount any kind of drive.
I changed some things and identify the devide as “trusted”, so that made me able to ping and mount anything correctly
Again, thank you all for your support and time!! :grin:

1 Like