Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: jls on October 08, 2013, 07:01:59 AM

Title: (5.x) nfs server doesn't to work
Post by: jls on October 08, 2013, 07:01:59 AM
 :'(
Title: Re: (5.x) nfs server doesn't to work
Post by: Juanito on October 08, 2013, 07:14:00 AM
I don't find the post at the moment, but I recall that somebody confirmed it worked...

Do you have any error messages?
Title: Re: (5.x) nfs server doesn't to work
Post by: jls on October 08, 2013, 07:48:43 AM
Code: [Select]
jls@pc2:~$ sudo /usr/local/etc/init.d/nfs-server start
nodev   nfsd
/usr/local/sbin/rpc.statd is already running
6762
/usr/local/sbin/rpc.mountd is already running
6780
nfs-server utilities are started.

but looking at services nfs-server is not on
Title: Re: (5.x) nfs server doesn't to work
Post by: jls on October 08, 2013, 08:55:03 AM
Actually I don't care about nfs since I managed to use openssh
Title: Re: (5.x) nfs server doesn't to work
Post by: makoto on October 09, 2013, 12:22:20 PM
It's a bug that I've already posted. Patch is here:
Code: [Select]
--- /usr/local/etc/init.d/nfs-server
+++ /usr/local/etc/init.d/nfs-server
@@ -12,7 +12,7 @@
    fi
 
  if grep nfsd /proc/filesystems 2> /dev/null; then
-      if grep nfsd /proc/mounts 2> /dev/null; then
+      if [ -z "`grep nfsd /proc/mounts`" 2> /dev/null ]; then
          mount -t nfsd nfsd /proc/fs/nfs 2> /dev/null
        fi
      fi
Title: Re: (5.x) nfs server doesn't to work
Post by: gerald_clark on October 09, 2013, 02:53:03 PM
Simpler:
grep -q nfsd /proc/mounts || mount -t nfsd nfsd /proc/fs/nfs 2> /dev/null
Title: Re: (5.x) nfs server doesn't to work
Post by: jls on October 09, 2013, 04:16:46 PM
Hi
I've tried both awabimakoto and gerald_clark solution, but nothing chaged
Title: Re: (5.x) nfs server doesn't to work
Post by: dentonlt on October 13, 2013, 06:40:00 AM
jls_legalize: did you install the filesystems-`uname -r` extension?