[haiku] Re: NFS issue

  • From: Glenn Holmer <shadowm@xxxxxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Sat, 19 Mar 2016 08:58:41 -0500

On 03/17/2016 04:24 PM, Jessica Hamilton wrote:

On 18 March 2016 at 04:52, Glenn Holmer <shadowm@xxxxxxxxxxxx> wrote:
On 02/02/2016 01:09 PM, François Revol wrote:
On 01/02/2016 15:23, Glenn Holmer wrote:

If I try to mount an NFS export from Haiku on the test machine with the
main machine as the server, there's a long pause followed by "mount
failed (No route to host)". I can, however, ping greyhand from Haiku.
The command line is:

mount_nfs greyhand:/mnt/common gcommon 1002 10002

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

The nfs4 mount command uses quite an odd syntax :p You want something
along the lines of `mount -t nfs4 -p "server_address:path flags"
directory`

See 
https://www.haiku-os.org/blog/pawe%C5%82_dziepak/2013-03-15_nfsv4_client_finally_merged
for all the details.

Yes, I have to search for the syntax every single time I want to try
use NFS4, which is sadly still very buggy in my experience.

This worked for me:

mount -t nfs4 -p "greyhand:/mnt/common" gcommon

and I'm listening to MOD files that way as we speak :)

But clearly the documentation needs some love. There has got to be a man
page for mount, obviously. For example, what are the possible values for
"-t"?

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."

Other related posts: