NFS mount in /etc/fstab of my QNap shares

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Thomsterdam
Level 1
Level 1
Posts: 42
Joined: Wed Apr 06, 2016 9:53 am

NFS mount in /etc/fstab of my QNap shares

Post by Thomsterdam »

Is there anyone who has successfully mounted a number of QNap shares via /etc/fstab? I have done this:
* turn on NFS access in QNap,
* configure NFS access for all shares from all computers in the network
* add lines in the computer's firewall config for connecting between the computer and the NAS
* add this line to my /etc/fstab :
* [ipadresofmyQNapNAS]/Backup /home/[myusername]/NAS/Backup nfs _netdev,auto 0 0

Then I enter: sudo mount -a
I get this error message:

Code: Select all

mount.nfs: access denied by server while mounting [ipadresofmyQNapNAS]:/Backup
So why does the QNap still deny access?
I hope there are Linux Mint users who have tackled this. It is driving me insane.
(BTW: I'm not interested in SMB/CIFS, I need NFS).

Thanx in advance,

Peter
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: NFS mount in /etc/fstab of my QNap shares

Post by catweazel »

Thomsterdam wrote: Thu Jun 21, 2018 5:32 pm

Code: Select all

mount.nfs: access denied by server while mounting [ipadresofmyQNapNAS]:/Backup
All we know is that you get that message, and we won't know anything more until you post your fstab, or at least the line in fstab that's causing the error.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: NFS mount in /etc/fstab of my QNap shares

Post by altair4 »

* add this line to my /etc/fstab :
* [ipadresofmyQNapNAS]/Backup /home/[myusername]/NAS/Backup nfs _netdev,auto 0 0
I haven't used NFS since the Boer Wars but I don't think that is the right syntax for an NFS mount in fstab. In fact it looks like a cifs mount syntax except for the "nfs" entry.

Shouldn't the syntax be more like:
[ipadresofmyQNapNAS]:/Backup /home/[myusername]/NAS/Backup nfs <options> 0 0
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: NFS mount in /etc/fstab of my QNap shares

Post by catweazel »

altair4 wrote: Fri Jun 22, 2018 6:25 am Shouldn't the syntax be more like:
[ipadresofmyQNapNAS]:/Backup /home/[myusername]/NAS/Backup nfs <options> 0 0
lol - my old eyes don't see code unless it's [ⅽoded]
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
Thomsterdam
Level 1
Level 1
Posts: 42
Joined: Wed Apr 06, 2016 9:53 am

Re: NFS mount in /etc/fstab of my QNap shares

Post by Thomsterdam »

Hi Catweazel, altair,
Thanx for your replies.
As you can see in the initial message, I had put this line in my fstab:

Code: Select all

[ipadresofmyQNapNAS]/Backup /home/[myusername]/NAS/Backup nfs _netdev,auto 0 0 
I hadn't put it between

Code: Select all

code
but it was all there.
Perhaps you could elaborate on the options that I should include and how I should change it to get it to work?
The problem is: it worked before with my NetGear NAS and it worked with my QNap NAS until I did a factory reset. So do you know how this works specifically with a Qnap NAS?
Thanx,

Thom
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: NFS mount in /etc/fstab of my QNap shares

Post by catweazel »

Thomsterdam wrote: Fri Jun 22, 2018 7:10 am Hi Catweazel, altair,
it worked with my QNap NAS until I did a factory reset.
The first thing to check is that you're exporting NFS shares to the correct IP addresses.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
Thomsterdam
Level 1
Level 1
Posts: 42
Joined: Wed Apr 06, 2016 9:53 am

Re: NFS mount in /etc/fstab of my QNap shares

Post by Thomsterdam »

Yes it is :shock:
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: NFS mount in /etc/fstab of my QNap shares

Post by catweazel »

Thomsterdam wrote: Sat Jun 23, 2018 6:01 am Yes it is :shock:
Try mounting a share manually.

Code: Select all

mount -o vers=3 IP.Add.ress:/Network/Share/Name /mount.point

Code: Select all

[ipadresofmyQNapNAS]/Backup /home/[myusername]/NAS/Backup nfs _netdev,auto 0 0
There should be a colon after [ipadresofmyQNapNAS]. Try this:

Code: Select all

[ipadresofmyQNapNAS]:/Backup /home/[myusername]/NAS/Backup nfs defaults 0 0
Of course, /home/[myusername]/NAS/Backup must also exist.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
Thomsterdam
Level 1
Level 1
Posts: 42
Joined: Wed Apr 06, 2016 9:53 am

Re: NFS mount in /etc/fstab of my QNap shares

Post by Thomsterdam »

Unfortunately I get the same result:

Code: Select all

mount.nfs: access denied by server while mounting 192.168.178.44:/Backup
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: NFS mount in /etc/fstab of my QNap shares

Post by catweazel »

Thomsterdam wrote: Sat Jun 23, 2018 7:04 am Unfortunately I get the same result:

Code: Select all

mount.nfs: access denied by server while mounting 192.168.178.44:/Backup
Well, apart from double-checking your machine's IP address against the shares and IP addresses that are exported on your server, I can't offer anything else, except perhaps asking you to post /etc/exports from the server.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
Thomsterdam
Level 1
Level 1
Posts: 42
Joined: Wed Apr 06, 2016 9:53 am

Re: NFS mount in /etc/fstab of my QNap shares

Post by Thomsterdam »

Hey Catweazel,
Thanx for your efforts. I was hoping there might be someone on this forum who is familiar with both QNap NASs and Linux Mint.
Anyone?

Thanx.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: NFS mount in /etc/fstab of my QNap shares

Post by catweazel »

Thomsterdam wrote: Sat Jun 23, 2018 7:26 am I was hoping there might be someone on this forum who is familiar with both QNap NASs and Linux Mint.
It's linux. Familiarity with QNAP NAS isn't required.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: NFS mount in /etc/fstab of my QNap shares

Post by altair4 »

Have you seen these:

This one about how to set up the QNAP: Mount Qnap NFS Share on Linux OS

And this one from QNAP: Mounting an NFS share on Ubuntu
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Networking”