Hello, I just dd'ed the latest archlinux image available and I'd like to set up an nfs server on my raspberry pi. I installed the nfs-tools package and enabled the nfsd.service and rpcbind.service. My /etc/exports look like this:
$this->bbcode_second_pass_code('', '[root@alarmpi ~]# cat /etc/exports
# /etc/exports
#
# List of directories exported to NFS clients. See exports(5).
# Use exportfs -arv to reread.
#
# Example for NFSv2 and NFSv3:
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 hostname1(rw,sync,fsid=0)
# /srv/nfs4/home hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/home gss/krb5i(rw,sync,nohide)
#
/media/Anime 192.168.0.0/24(rw,sync,no_root_squash)')
and rpcinfo -p prints the following:
$this->bbcode_second_pass_code('', ' program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 54696 nlockmgr
100021 3 udp 54696 nlockmgr
100021 4 udp 54696 nlockmgr
100021 1 tcp 39517 nlockmgr
100021 3 tcp 39517 nlockmgr
100021 4 tcp 39517 nlockmgr
')
However, when I try to mount the exported directory on my Sabayon laptop I get:
$this->bbcode_second_pass_code('', '[root@localhost ~]# mount -t nfs 192.168.0.14:/media/Anime /media/iso/
mount.nfs: requested NFS version or transport protocol is not supported')
I tried a lot of different combinations (-o nolock,nfsvers=3,proto=tcp etc.), also from an ubuntu machine, but I couldn't get it to work. Can somebody help me with this please?
Other info that might be needed:
$this->bbcode_second_pass_code('', '[root@alarmpi ~]# uname -a
Linux alarmpi 3.2.27-6-ARCH+ #1 PREEMPT Thu Sep 20 15:32:18 UTC 2012 armv6l GNU/Linux
[root@alarmpi ~]# systemctl status nfsd.service [0m# systemctl
nfsd.service - NFS server
Loaded: loaded (/usr/lib/systemd/system/nfsd.service; enabled)
Active: active (exited) since Wed, 26 Sep 2012 13:24:46 +0100; 11min ago
Process: 200 ExecStartPost=/usr/sbin/exportfs -a (code=exited, status=0/SUCCESS)
Process: 183 ExecStart=/usr/sbin/rpc.nfsd $NFSD_OPTS $NFSD_COUNT (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/nfsd.service
Sep 26 13:24:46 alarmpi exportfs[200]: exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified ...Anime".
Sep 26 13:24:46 alarmpi exportfs[200]: Assuming default behaviour ('no_subtree_check').
Sep 26 13:24:46 alarmpi exportfs[200]: NOTE: this default has changed since nfs-utils version 1.0.x
[root@alarmpi ~]# exportfs -arv
exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.0/24:/media/Anime".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
exporting 192.168.0.0/24:/media/Anime
')
$this->bbcode_second_pass_code('', '[root@localhost ~]# nmap -sS 192.168.0.14
Starting Nmap 6.01 ( http://nmap.org ) at 2012-09-26 14:35 CEST
Nmap scan report for 192.168.0.14
Host is up (0.0035s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
2049/tcp open nfs
MAC Address: 48:02:2A:70:44:9E (B-Link Electronic Limited)
Nmap done: 1 IP address (1 host up) scanned in 9.77 seconds')