WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help: NFS mount error  (Read 48 times)

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Help: NFS mount error
« on: October 27, 2014, 10:46:49 AM »
Hi,

I installed nfs-utils and its deps extensions. My goal is to mount a directory on an remote NFS server (an embedded system with busybox).

Here is the error I got:

tc@xxx:~$ sudo mount <nfs-server-ip>:/root/test ./mnt/
mount.nfs: an incorrect mount option was specified
mount: mounting <nfs-server-ip>:/root/test on ./mnt/ failed: Connection refused

On the remote server, I got this line in /var/log/messages:
Oct 27 18:45:15 daemon.notice mountd[30895]: authenticated mount request from <tc-ip-address>:981 for /root/test (/root/test)

Nothing unusual there!

When I googled around, I found someone mentioned that using -o nfsvers=3 might solve this problem. However this is not an option in the nfs command extension.

Any ideas how to work around this?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 3424
Re: Help: NFS mount error
« Reply #1 on: October 27, 2014, 11:00:32 AM »
1. Do not mount anything directly on /mnt.  It is a directory that contains mount points for your devices.
2. It sounds like you did not start the client which includes the lock daemon.. Add the command "/usr/local/etc/init.d/nfs-client start"  to your /opt/bootlocal.sh and do a backup.

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Re: Help: NFS mount error
« Reply #2 on: October 27, 2014, 12:33:33 PM »
1. Do not mount anything directly on /mnt.  It is a directory that contains mount points for your devices.
2. It sounds like you did not start the client which includes the lock daemon.. Add the command "/usr/local/etc/init.d/nfs-client start"  to your /opt/bootlocal.sh and do a backup.

It works now! Didn't know I need to start nfs-client this way.
Thanks