0

I installed NFS on a new Debian7 install. I did:

apt-get install nfs-kernel-server

add folder to share to /etc/exports: /home/share *(rw,sync,no_root_squash)

service nfs-kernel-server start

But after this I get this error:

[warn] Not starting NFS kernel daemon: no support in current kernel. ... (warning).

I googled for this, but didn't find the solution yet. Some say the check /proc/config.gz, but I haven't this file in /proc

Jakuje
  • 9,715
  • 2
  • 42
  • 45
brasileric
  • 111
  • 1
  • 2

2 Answers2

1

Maybe the NFS module is not loaded. Try modprobe nfs and restart the nfs service.

shodanshok
  • 47,711
  • 7
  • 111
  • 180
  • Tried modprobe nfs, but get this error: libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.2.41-042stab111.12/modules.dep.bin' – brasileric Jan 16 '16 at 19:36
  • Your kernel modules directory seems to have some problem. Try `depmod -a`, then retry with `modprobe nfs` – shodanshok Jan 16 '16 at 19:54
  • depmod -a gives: ERROR: could not open directory /lib/modules/3.2.41-042stab111.12: No such file or directory FATAL: could not search modules: No such file or directory – brasileric Jan 17 '16 at 08:22
  • You had serious problems with your installed kernel. Try to uninstall and reinstall it via `apt-get` – shodanshok Jan 17 '16 at 08:51
0

In addition to the answer of shodanshok and the comments:

  • It seems your hosting provider removed the nfs modules in the version you've installed. Maybe they want to prevent that users exporting "by accident" their / or /home to the public internet.

  • Not sure if this is a dedicated, virtualized or containerized server and if you're able to switch to / install a different kernel: If so, install a vanilla Debian kernel, otherwise, speak to the support of your hoster.

gxx
  • 5,591
  • 2
  • 22
  • 42
  • it is a vps. Maybe better try with samba, I thought nfs was simple, but for me costs me too much time and fustration. Thanks for help! – brasileric Jan 17 '16 at 11:37