PDA

View Full Version : NFS server in Knoppix problem



mariang
06-24-2006, 08:15 PM
Hi, I try to setup NFS server and then test if it works by local mount. Till now I found out, Knoppix 4 and higher give me Oops when starting nfs-kernel-server, it looks broken.
However when I try 3.9 I get no Oops but it just doesn't work and I have no idea what is wrong

cat /etc/exports
/tmp *(ro,sync)

cat /etc/hosts.allow
ssh sshd : ALL@ALL : ALLOW
ALL : 127.0.0.1 LOCAL : ALLOW
ALL : ALL@ALL : ALLOW

I remove /etc/hosts.deny

root@0[~]# /etc/init.d/portmap start
Starting portmap daemon: portmap.


root@0[~]# /etc/init.d/nfs-kernel-server start
/etc/init.d/nfs-kernel-server: line 46: mountpoint: command not found
Exporting directories for NFS kernel daemon...exportfs: failed to lock /var/lib/nfs/etab
done.
Starting NFS kernel daemon: nfsd mountd.

root@0[~]# mount -t nfs localhost:/tmp /mnt
mount: localhost:/tmp failed, reason given by server: Permission denied

Could anybody help please ? Thank you

mariang
06-25-2006, 10:26 PM
I love to answer myself :)

nfs-kernel-server has to be started with restart not start command.

/tmp cannot be exported to NFS, real fs on hdd or /cdrom works just fine