Helping Mount SMB share on linux system.

DenisInternet

Dabbler
Joined
Jun 14, 2022
Messages
28
Hello!

I am having trouble mounting my SMB share on my linux system running PopOS. Runs fine on my Mac but on my linux box I keep running into this message "connection refused".

I can ping the IP address and that works just fine, but for whatever reason the SMB share won't mount.

I am new to linux, and have tried a few different things from other posts on the forums but so far no luck. I am probably missing something obvious

Code:
 sudo mount -a root@//192.168.2.251/mnt/Nautilus_01/DPOP 


I get mount error (111) could not connect, unable to find suitable address.
Code:
 smbclient -NL //192.168.2.251
Connection to to 192.168.2.251 failed. (Error NT_STATUS_CONNECTION_REFUSED)​


I believe all my permissions and ACL for the user and group are setup correctly?

*UPDATE
Finally got SMB to mount using the PopOS GUI.
I needed to add this line in bold to my address to mount it correctly:

Code:
smb://192.168.2.251/Post_Main/


I am still not getting the right speeds on my smb share when testing with iperf3. Should be getting 1000MB+ currently getting significantly less.

Code:
Accepted connection from 192.168.2.251, port 32984
[  5] local 192.168.2.253 port 5201 connected to 192.168.2.251 port 32986
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  46.3 MBytes   388 Mbits/sec
[  5]   1.00-2.00   sec  48.5 MBytes   407 Mbits/sec
[  5]   2.00-3.00   sec  48.7 MBytes   409 Mbits/sec
[  5]   3.00-4.00   sec  48.4 MBytes   406 Mbits/sec
[  5]   4.00-5.00   sec  48.0 MBytes   402 Mbits/sec


It looks like my network switch is setup correctly. Hardware offload, auto-negotiation off, speed 25G baseCR, but for whatever reason speeds aren't correct. Any advice as always is very my appreciated :) thanks!


Thank you for your help!
 

Attachments

  • Screenshot 2024-01-02 at 10.28.20 PM.png
    Screenshot 2024-01-02 at 10.28.20 PM.png
    31.3 KB · Views: 785
  • Screenshot 2024-01-02 at 10.28.28 PM.png
    Screenshot 2024-01-02 at 10.28.28 PM.png
    13.1 KB · Views: 694
  • Screenshot 2024-01-02 at 10.28.40 PM.png
    Screenshot 2024-01-02 at 10.28.40 PM.png
    27.1 KB · Views: 531
  • Screenshot 2024-01-02 at 10.30.33 PM.png
    Screenshot 2024-01-02 at 10.30.33 PM.png
    68.5 KB · Views: 525
Last edited:

beagle

Explorer
Joined
Jun 15, 2020
Messages
91
Hi Denis,

A couple of suggestions.

You need to use the user denispop to mount the shares. You cannot use root. Also, you need to use the share name instead of the path and provide a mountpoint.

To test your connectivity and credentials, please try:

smbclient --list=192.168.2.251 -U denispop

This will prompt for the password of user denispop and then list all the shares available on your SMB server.

To mount the share, I'm assuming you have a directory /mnt/DPOP[CODE] on your Pop OS machine. [ICODE]sudo mount -t cifs -o user=denispop //192.168.2.251/DPOP /mnt/DPOP

These tutorials also provide some examples on how to manually mount the shares and how to set them up on /etc/fstab to be mounted automatically.

 

DenisInternet

Dabbler
Joined
Jun 14, 2022
Messages
28
To test your connectivity and credentials, please try:

smbclient --list=192.168.2.251 -U denispop

This will prompt for the password of user denispop and then list all the shares available on your SMB server.

Thank you for the detailed reply, reading the links you've attached as well. Right now, I am still getting stuck on this first step above. I immediately get a connection refused error.
 

DenisInternet

Dabbler
Joined
Jun 14, 2022
Messages
28
If you go to System Settings > Services. Is the SMB service running?

View attachment 74165
1) Yep, SMB service is running.

2) After restarting TrueNAS. Now when running the command:
Code:
 smbclient -L //192.168.2.251 - U denismac 
I get the prompt to login and on login I get the following result:
Code:
Password for [WORKGROUP\denismac]:​
Sharename Type Comment​
--------- ---- -------​
IPC$ IPC IPC Service (TrueNAS Server)​
Post_Main Disk​
SMB1 disabled -- no workgroup available​

When I try to login using the PopOS GUI, I get the correct prompt but I get the following error.

Screenshot from 2024-01-03 11-32-44.png
Screenshot from 2024-01-03 11-34-41.png


Ok finally got it working using the PopOS GUI , this is probably very obvious for experienced users on here ha! My bad.

I needed to add this line in bold to my address to mount it correctly:
Code:
 smb://192.168.2.251/Post_Main/ 
Also I was wrong earlier, my workgroup is just that "workgroup" and not denismac (user group).

I am still not getting the right speeds on my smb share when testing with iperf3. Should be getting 1000MB+ currently getting significantly less.
Code:
Accepted connection from 192.168.2.251, port 32984​
[ 5] local 192.168.2.253 port 5201 connected to 192.168.2.251 port 32986​
[ ID] Interval Transfer Bitrate​
[ 5] 0.00-1.00 sec 46.3 MBytes 388 Mbits/sec​
[ 5] 1.00-2.00 sec 48.5 MBytes 407 Mbits/sec​
[ 5] 2.00-3.00 sec 48.7 MBytes 409 Mbits/sec​
[ 5] 3.00-4.00 sec 48.4 MBytes 406 Mbits/sec​
[ 5] 4.00-5.00 sec 48.0 MBytes 402 Mbits/sec​

It looks like my network switch is setup correctly. Hardware offload, auto-negotiation off, speed 25G baseCR, but for whatever reason speeds aren't correct. Any advice as always is very my appreciated :) thanks!
 
Last edited:
Top