Can't mount FreeNAS NFS share onto Ubuntu 20.04

Hominid999

Cadet
Joined
Jan 24, 2020
Messages
4
Built a new Ubuntu server, but can't mount my Freenas share... I get the error message:

root@pollux-3:/# mount -a
mount.nfs: access denied by server while mounting 192.168.2.1:/mnt/tank


Been working fine for years from my older 16.04 server. Installed nfs-common on the new one. Here's the fstab entry (same as the 16.04 server...):

192.168.2.1:/mnt/tank /tank nfs defaults,nfsvers=3,noacl,rsize=32768,wsize=32768 0 0

If I force it to use version 4, it'll mount, but I get an input/out error on any operation in the mount point:
ls: reading directory '/tank': Input/output error

Here is the exports file on the FreeNAS server:
V4: / -sec=sys
/mnt/tank -alldirs -maproot="root":"" -sec=sys 192.168.1.215 192.168.2.4 192.168.2.5 192.168.3.2 192.168.1.212 192.168.1.216


Been down many google rabbit holes - seems like a common issue with no clear resolution.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
You can't share out the root dataset in a pool; it's reserved for system use. Please create a daughter dataset for NFS sharing.

 

OzBarge

Cadet
Joined
Feb 8, 2021
Messages
6
You can't share out the root dataset in a pool; it's reserved for system use. Please create a daughter dataset for NFS sharing.

I've created 4 datasets under the pool.

shared from Truenas: /mnt/Media Pool/4K-Movies

Media Pool is the Pool
4K-Movies is the dataset
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Your pool name has a space. This will cause problems sharing. Your client system may need an fstab entry like this:

<your TrueNAS IP>:/mnt/Media\ Pool/4K-Movies <local mount path> nfs defaults,nfsvers=3 0 0
 

OzBarge

Cadet
Joined
Feb 8, 2021
Messages
6
I was using:
192.168.1.9:/mnt/Media\040Pool/4K-Movies /media/Truenas-4K-Movies nfs defaults,nfsvers=3 0 0

Let me change it around
 

OzBarge

Cadet
Joined
Feb 8, 2021
Messages
6
I was using:
192.168.1.9:/mnt/Media\040Pool/4K-Movies /media/Truenas-4K-Movies nfs defaults,nfsvers=3 0 0

Let me change it around
Removing the \040 and replacing with just \ errors out, parse error.

I know the space is probably a headache, i've already copied over data via SMB so I don't want to recreate the pool if I don't have to.

Thank you for helping me with this - and quick replies. amazing!
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
In your case \040 was correct. I've always avoided spaces in any share paths because they lead to headaches like this.
 
Top