Can't connect to share on NAS - Long time since I was on pure Arch -

See topic. Thunar sees the NAS, but I cannot connect to it. Manjaro had everything neccesary already installed and I can’t find what is missing to do it…

Exact error is: Cannot resolve Leonard.local (leonard being the name of the NAS).

List out the contents of your /etc/hosts file. should look something like this:
$ cat /etc/hosts

127.0.0.1 localhost
::1 localhost
127.0.1.1 yourEndeavourHostName.localdomain yourEndeavourHostName
192.168.0.XXX Leonard.localdomain Leonard

The 192.168.0.XXX is the IP address of your NAS Leonard. This line defines the “Route” to your NAS

There may be other problems as well, but since the error is “Cannot resolve Leonard.local”
check /etc/hosts first.

1 Like

Seems Thunar can find it but not “linux itself”? No mention of it in that list:

127.0.0.1 localhost
127.0.1.1 endeavour-xfce
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

hello, did you watch gvfs software installed?

No… I don’t think so.

Samba client is installed, but I cannot connect to anything on the network. I shouldn’t have to install the actual samba server, so what is missing?

EDIT: Yes gvfs package is installed.

Anyone having an idea?
Thunar sees the NAS by name under browse network, but I cannot interact with it in any way. It does not show up when following these instructions and trying to add location manually thunar does not work.

The gvfs package and samba client is installed.

Sorry, In my first post, the error code listed led me to believe that you were trying to access the NAS with ssh. I didn’t realize you were trying to use Samba.

Is the NAS a commercial unit or is it something that you installed such as FreeNAS? Can you connect to Leonard with other Windows or Linux machines? Try this in a terminal window. See if you get something similar. This will at least tell if you can talk to it or not

$ smbclient -L Leonard
directory_create_or_exist: mkdir failed on directory /var/lib/samba/lock/msg.lock: Permission denied
Unable to initialize messaging context
Enter SAMBA\don’s password: Enter the SAMBA password for Leonard
Anonymous login successful

Sharename       Type      Comment
---------       ----      -------
print$          Disk      Printer Drivers
SMBshare        Disk      Samba Share 
IPC$            IPC       IPC Service (Samba 4.10.5)

Reconnecting with SMB1 for workgroup listing.
Anonymous login successful

Server               Comment
---------            -------

Workgroup            Master
---------            -------
MYWORKGROUP          Leonard

lines like xxxxxxxxxx Disk Samba Share lists what shares are available.

It’s a commercial product, works in Windows, works in Manjaro and Suse xfce. Arch Gnome (last time I used pure arch) was fine when manually entering smb share info in Nautilus.

I’ll try your suggestion when back home from work.

Well there’s a lot of errors there, but the NAS is visible:

smbclient -L Leonard
Unable to initialize messaging context
smbclient: Can’t load /etc/samba/smb.conf - run testparm to debug it
directory_create_or_exist: mkdir failed on directory /var/cache/samba: Permission denied
directory_create_or_exist: mkdir failed on directory /var/cache/samba: Permission denied
directory_create_or_exist: mkdir failed on directory /var/cache/samba: Permission denied
Enter WORKGROUP\beardedgeek’s password:

Sharename       Type      Comment
---------       ----      -------
Public          Disk      The Main NAS
IPC$            IPC       IPC Service (WD Mycloud NAS)

Reconnecting with SMB1 for workgroup listing.
directory_create_or_exist: mkdir failed on directory /var/cache/samba: Permission denied
directory_create_or_exist: mkdir failed on directory /var/cache/samba: Permission denied
directory_create_or_exist: mkdir failed on directory /var/cache/samba: Permission denied

Server               Comment
---------            -------

Workgroup            Master
---------            -------
WORKGROUP            LEONARD

GOT IT:
For some reason gvfs-smb was not installed. Fixed.

2 Likes