Results 1 to 6 of 6

Thread: Unable to mount NFS4 driver

  1. #1
    Join Date
    Dec 2010
    Beans
    5

    Unable to mount NFS4 driver

    I tried this command in a Ubuntu 10.10 server

    $ sudo mount -t nfs4 -o port=99 xxx.xxx.xxx.xxx:/home /mnt/tmp

    The server returns an error message "mount.nfs4: Protocol family not supported" and I have installed nfs-common.

    Could anyone tell me what I did wrong? Thanks!

  2. #2
    Join Date
    Sep 2007
    Location
    England
    Beans
    1,103

    Re: Unable to mount NFS4 driver

    NFSv4 is different from v3

    Have you setup a root export directory on the server, and bind mounted your individual exports to the root export directory?
    Code:
    while [ true ]; do CY=$(date +%y); CM=$(date +%m); if [ -n "$PY" ] && [ -n "$PM" ]; then echo "Ubuntu ${CY}.${CM} is the worst release ever"; echo "I'm going back to ${PY}.${PM}"; fi; PY="$CY"; PM="$CM"; sleep 182d; done

  3. #3
    Join Date
    Dec 2010
    Beans
    5

    Re: Unable to mount NFS4 driver

    I follow this page (https://help.ubuntu.com/community/NFSv4Howto) and have binded my home directory to "/export/me"

    /etc/export in the server
    Code:
    /export       client_ip/24(rw,fsid=0,insecure,no_subtree_check,async)
    /export/me  client_ip/24(rw,nohide,insecure,no_subtree_check,async)
    In the client
    Code:
    $ sudo mount -t nfs4 -o proto=tcp,port=99 server_ip:/ /mnt/tmp
    mount.nfs4: Protocol family not supported

  4. #4
    Join Date
    Sep 2007
    Location
    England
    Beans
    1,103

    Re: Unable to mount NFS4 driver

    Quote Originally Posted by kamiru View Post
    In the client
    Code:
    $ sudo mount -t nfs4 -o proto=tcp,port=99 server_ip:/ /mnt/tmp
    mount.nfs4: Protocol family not supported
    Assuming it's not a copy/paste error, you've missed off the share directory

    Code:
    sudo mount -t nfs4 -o proto=tcp,port=99 server_ip:/me /mnt/tmp
    *edit*
    also, what's with the port 99?
    NFS is 2049 by default
    Last edited by amauk; December 14th, 2010 at 06:53 AM.
    Code:
    while [ true ]; do CY=$(date +%y); CM=$(date +%m); if [ -n "$PY" ] && [ -n "$PM" ]; then echo "Ubuntu ${CY}.${CM} is the worst release ever"; echo "I'm going back to ${PY}.${PM}"; fi; PY="$CY"; PM="$CM"; sleep 182d; done

  5. #5
    Join Date
    Dec 2010
    Beans
    5

    Re: Unable to mount NFS4 driver

    Thank you very much for your prompt reply first.

    I have created a folder "/export/me" and blind it to my home directory in the server. So that the path "/me" can be mounted from the client computer.

    Since port 2049 is blocked by my company, I changed the default port to 99 by editing /etc/default/nfs-kernel-server

    Code:
    RPCMOUNTDOPTS="--manage-gids --port 99"
    I still have no idea why it shows this error message "mount.nfs4: Protocol family not supported" to me? I did search from Google and this forum and get no idea how to solve it.
    Last edited by kamiru; December 14th, 2010 at 08:12 AM.

  6. #6
    Join Date
    Dec 2010
    Beans
    5

    Re: Unable to mount NFS4 driver

    mount.nfs4: Protocol family not supported

    I did search again from Google and found the same error message in an early version of Fedora. However, the solution doesn't apply to Ubuntu 10.10.

    Can anyone share the proper steps of mounting a NFS4 driver?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •