This is what I got on server:
manuel@server ~ $ cat /etc/exports
/var/share 192.168.178.20(rw, sync)
manuel@server ~ $ cat /etc/hosts.allow
portmap: 192.168.178.20
manuel@server /etc $ cat /proc/filesystems | grep nfs
nodev nfs
nodev nfs4
This is what I get on my machine:
manuel@Timeline:~$ sudo mount -t nfs 192.168.178.2:/var/share /media/share/
mount: wrong fs type, bad option, bad superblock on 192.168.178.2:/exports/var/share,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
Manchmal liefert das Syslog wertvolle Informationen – versuchen
Sie dmesg | tail oder so
server is Raspbian (Debian Wheezy)
Timeline is Ubuntu 12.04
Best Answer
Run
exportfs -a
on theserver
machine.Also both machines have all of the needed NFS support packages and have nfs support? You can find if the kernel supports a specific filesystem by examining the output of
cat /proc/filesystems
.And yes, the filename of the export file needs to be
/etc/exports
Finally, check to see if you have enabled the NFS daemons during startup.