WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: NFS entry missing in Services file in TC v5.3  (Read 2620 times)

Offline rojopony

  • Newbie
  • *
  • Posts: 2
NFS entry missing in Services file in TC v5.3
« on: July 17, 2014, 08:12:57 PM »
In order to load the extensions necessary for PXE booting TC clients to have a GUI it was necessary for my TC PXE boot server to also be an NFS server to facilitate loading of extensions that can resolve dependencies. After several days of frustration I discovered that TC 5.3 does not have the necessary entries in the /etc/services file to allow the NFS server to operate.

Symptoms of the NFS server not operating was the client reporting the following when attempting to mount the share from the command line:
Code: [Select]
sudo mount -t 192.168.1.254:/nfs-share /mnt/nfs
mount: 192.168.1.254:/nfs-share on /mnt/nfs failed: Connection refused

Syslog on the server reports the following on the mount attempt:
Code: [Select]
Jul 16 01:01:00 box daemon.notice rpc.mountd[5034]: authenticated mount request from 192.168.1.1:696 for /nfs-share (/nfs-share)
After tearing apart the nfs-server startup file and then launching the rpc.nfsd daemon started manually I found that the NFS daemon could not connect to a socket. Adding the following lines to the /etc/services file corrected the issue.

Code: [Select]
nfs 2049/tcp # Network File System
nfs 2049/udp # Network File System

So now the custom script I use to start terminal services is checking for NFS entries in the /etc/services file before launching the NFS server until the baseline TC file gets the necessary NFS entries added.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14848
Re: NFS entry missing in Services file in TC v5.3
« Reply #1 on: July 18, 2014, 03:14:19 AM »
In fact a modification was made recently to /etc/services:

Original:
Code: [Select]
sunrpc 111/tcp portmapper # RPC 4.0 portmapper TCP
sunrpc 111/udp portmapper # RPC 4.0 portmapper UDP

Modified:
Code: [Select]
rpcbind 111/tcp portmapper # RPC 4.0 portmapper TCP
rpcbind 111/udp portmapper # RPC 4.0 portmapper UDP

..which enabled the latest version of the nfs-utils extension to work as a client at least.

Could you confirm you have this mod and that it doesn't work for you?

Offline rojopony

  • Newbie
  • *
  • Posts: 2
Re: NFS entry missing in Services file in TC v5.3
« Reply #2 on: July 19, 2014, 04:20:26 PM »
The modifications you posted are in my TC ISO. Client NFS mounts will work from this image under two conditions:

1) When nfsmount boot parameter is given at boot time.
2) When nfs-utils extension is loaded after boot.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14848
Re: NFS entry missing in Services file in TC v5.3
« Reply #3 on: July 21, 2014, 07:22:37 AM »
OK - changes queued for next version - thanks

http://git.tinycorelinux.net/index.cgi?url=Core-scripts.git/