LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2021, 09:17 AM   #1
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Rep: Reputation: Disabled
trying to mount nas drive on raspi 4


I am running the Raspberry Pi OS on a Raspi 4 8GB using a SATA SSD.
I am trying to get access to my files which sit on a Synology DS414 NAS drive on the same wi-fi network.

At the suggestion of another forum user, I have successfully installed the nfs-common and portmap packages on the RasPi and can ping the NAS drive successfully.

However, when I use the "showmount" command, I receive the message:

Quote:
clnt_create: RPC: Unable to receive
What I find from searching on this error is that the NAS drive may not be properly mounted on the system.

Any help you can provide, in newbie terms (!), would be most appreciated, as I can't work effectively on the RasPi until I can get access to office docs and other files.

Many thanks in anticipation

David R
 
Old 08-03-2021, 09:37 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Did you specify the IP address or hostname of your NAS?

showmount -e diskstation (without local DNS you might need to specify its IP address)
 
Old 08-03-2021, 10:01 AM   #3
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks for the suggestion Michael,
I have now tried:

Code:
showmount -e nasname
and

Code:
showmount -e IP address of nas
and get respectively:

Quote:
clnt_create: RPC: Unknown host
and
Quote:
clnt_create: RPC: Unable to receive
Is this what you were suggesting to try or have I misinterpreted it?

David
 
Old 08-03-2021, 10:13 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Yes, make sure that rpcbind is actually running

ps ax | grep rpcbind

If not try starting via

sudo systemcl start rpcbind

Last edited by michaelk; 08-03-2021 at 10:23 AM.
 
Old 08-03-2021, 10:23 AM   #5
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
OK this is what the output of the process list command was:

Quote:
ps ax | grep rpcbind
340 ? Ss 0:00 /sbin/rpcbind -f -w
4034 pts/0 S+ 0:00 grep --color=auto rpcbind
Does this help?

David
 
Old 08-03-2021, 10:26 AM   #6
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Not sure whether this is helpful or not, but when I try to access the files on the NAS through LibreOffice Writer, for example, the programme sees the first level directories on the NAS (documents, music, photos, etc) but when I click on one of these, the response is "Documents is not a directory"
David
 
Old 08-03-2021, 10:54 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
If your Pi is running a firewall is it blocking incoming ports 2049 or 111?
 
Old 08-03-2021, 11:22 AM   #8
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks, there was no firewall installed, but I have taken the opportunity to install ufw, enable it, and then allow those two ports which you list.
Still the same responses from the showmount command, I'm afraid.
David
 
Old 08-03-2021, 12:11 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Quote:
Originally Posted by David@ROOTT.co.uk View Post
Not sure whether this is helpful or not, but when I try to access the files on the NAS through LibreOffice Writer, for example, the programme sees the first level directories on the NAS (documents, music, photos, etc) but when I click on one of these, the response is "Documents is not a directory"
David
Not really because I do not know how your NAS or shares are configured. From your original post I assumed you had nfs working with other clients. The firewall should allow traffic on both tcp/udp for ports 111 and 2049
 
Old 08-03-2021, 12:30 PM   #10
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Yes, the NAS drive works fine with Windows laptops and my MacBook, just not seeing it on the RasPi. LibreOffice Writer is also on the Pi, btw.
I will take a look at the tcp/udp point you make, but I am still not connecting with the firewall disabled.
David
 
Old 08-03-2021, 12:43 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
On Windows are you using the nfs client or just mapping the share?
 
Old 08-03-2021, 01:06 PM   #12
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,638

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Being a linux device it SHOULD support NFS and SSHFS, but I only see documentation for CIFS and ISCSI. I prefer ISCSI of those two, but for an RPi it might be easier to use the SAMBA client to get the CIFS mount. (CIFS is the Microsoft standard, if you did not know.)
 
Old 08-03-2021, 01:56 PM   #13
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thank you both for your replies.
In answer to yours Michael: on Windows, the different top-level folders of the NAS drive are just mapped as the X:, Y: and Z: drives. I do occasionally use the nas client locally, when Windows misbehaves, but I tend to use that only when I am out and about and want remote access.

Regarding the other response, forgive me but your answer has gone waaaaay above my head, so I will do some serious research in the morning to give you a more intelligent reply!!

Best
David
 
Old 08-03-2021, 02:21 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Unless you have installed a Windows nfs client you are using SMB/CIFS to connect i.e map the shares as remote drives. SMB/CIFS is the default windows sharing protocol.
As posted you can use SMB/CIFS (samba) on the Pi.

Go look at your NAS share setup to see if nfs is also configured.
 
Old 08-03-2021, 02:21 PM   #15
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Some progress, I am pleased to say.
After rebooting the RasPi, I can now access the nas drive and its sub directories through File Manager.
It allows me to access the photo and music files in their respective folders and even the pdf files in the document folder, no problem.
When I try to open a docx file, however, I get an error message from LibreOffice:

Quote:
General input/output error while accessing /run/user/1000/gvfs/afp-volume:host=[nasname].local,volume=[full path and file name]
Does this make it a LibreOffice problem now, do you think?
Best
David
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mount Point Does Not Exist ~ Trying to Mount a NAS Shiseiji1958 Linux - Newbie 9 11-19-2020 01:31 PM
Linksys WRT54GS2 Router forward port 22 to RasPi as Proxy Server: Problem doni49 Linux - Networking 3 06-14-2013 08:43 PM
Mount error 13:permission denied while trying to mount Buffalo NAS to RHEL grendle65 Linux - Newbie 4 05-06-2013 05:39 PM
error trying to install lsb on fedora raspi remis frieza Fedora 4 01-09-2013 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration