[haiku] Re: NFS issue

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Thu, 17 Mar 2016 14:53:48 -0700

On Thu, Mar 17, 2016 at 10:52:16AM -0500, Glenn Holmer wrote:


You will want to try using NFS4 instead, mount_nfs is only for the
antique NFS2 client.

You need to use mount -t nfs4 but I don't remember the exact syntax.

~> mount -t nfs4 greyhand:/mnt/common gcommon
mount: No such file or directory

~> mount greyhand:/mnt/common gcommon
mount: No such file or directory

~> man mount
No manual entry for mount

What does he mean by "No such file or directory"? ./gcommon (in current
directory, /boot/home) exists.

There seems to be a marked lack of documentation on that command (:-/),
but someone must have supplied me with the right details sometime,
because I have a working command-line.

Here is what works for me, connecting to my Pi with a shared directory
/var/shared, and a Haiku directory ~/sharedpi for it to be mounted on:

  mount -t nfs4 -p "192.168.1.8:/var/shared" ~/sharedpi

Note the '-p' option.  If I omit that I also get "No such file or directory".

Not sure how it all works.  "mount --help" says
   -p      specifies parameters to pass to the file system

which isn't exactly helpful.  No man page that I can find, and the
one on the Pi seems to have quite a different meaning for "-p".

Anyway, adding that will probably work for you, too.  You should
probably also use a full path to the local directory as I do above.

        -- Pete --

Other related posts: