20

'exportfs -r' returns me this error when I'm trying to export /home/user/share (ext4):

exportfs: Warning: /home/user/share does not support NFS export.

/etc/exports:

/home/user/share 192.168.1.3 (rw,no_subtree_check)

The system is Ubuntu 10.04 with nfs-kernel-server package. Any ideas why this is happening? Is it because of ext4?

user9517
  • 114,104
  • 20
  • 206
  • 289
Talis
  • 209
  • 1
  • 2
  • 3
  • This may be a related bug. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602956 Have you considered using a user-space NFS server? – Zoredache Jan 05 '11 at 03:35
  • Same problem on ubuntu 11.04. Can't export dir in encrypted home dir, but if i create a new dir e.g. /exports it works fine with nfs. –  Jul 17 '11 at 19:19
  • 1
    OP can you accept my five years old anwser as the correct one? Cheers. – Giovanni Toraldo Nov 22 '17 at 07:57

5 Answers5

29

nfs-kernel-server cannot work with a FUSE folder like an encrypted ecryptfs home directory.

Giovanni Toraldo
  • 2,557
  • 18
  • 27
4

After some time I think I have solution. Due to NFS doesn't work under encrypted directory and this is probably only your home folder, you must move your directory to unencrypted space. In my case I've move vangrat project dir from /home/me/vagrant/project > /var/www/vagrant/porject. And boom, is working!

Also you can try play around and turn off encryption in your home folder but this is up to you.

Hope this is useful.

sobi3ch
  • 873
  • 1
  • 7
  • 11
2

Had this problem due to a space in the path. Renaming the folder to remove all spaces resolved the issue for me.

0

For me the problem was I was trying to use NFS with an external disk that was formatted with exfat.

Reformatting the disk to ext4 worked.

DanielM
  • 137
  • 1
  • 7
0

Having a similar issue with 10.10. I believe it has something to do with having your export file system encrypted.

Zero
  • 9
  • 1