Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, I'm having trouble using nfs to mount a remote filesystem (all of it, from /) on my local machine. Here is what I tried: Code: controls@UTAEngineer:/bin$ sudo mount ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12

    mount.nfs: access denied by server while mounting


    Hi all,

    I'm having trouble using nfs to mount a remote filesystem (all of it, from /) on my local machine. Here is what I tried:

    Code:
    controls@UTAEngineer:/bin$ sudo mount Engineer:/ /Engineer.home/
    mount.nfs: access denied by server while mounting Engineer:/
    Here is the output of my /etc/exports file

    Code:
    controls@UTAEngineer:/bin$ cat /etc/exports 
    # /etc/exports: the access control list for filesystems which may be exported
    #		to NFS clients.  See exports(5).
    #
    # Example for NFSv2 and NFSv3:
    # /srv/homes       hostname1(rw,sync) hostname2(ro,sync)
    #
    # Example for NFSv4:
    # /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)
    # /srv/nfs4/homes  gss/krb5i(rw,sync)
    #
    /home Engineer(rw,no_subtree_check,no_root_squash)
    /home UTAEngineer(rw,no_subtree_check,no_root_squash)
    / Engineer(rw,no_subtree_check,no_root_squash)
    / UTAEngineer(rw,no_subtree_check,no_root_squash)
    Any suggestions? Please let me know if you need more info.

  2. #2
    Linux Newbie Geeth's Avatar
    Join Date
    Apr 2008
    Location
    Brisbane Aus
    Posts
    176
    Last time I played with nfs was on a bsd server. I had to setup a /etc/allow and deny file.

    Could be the same thing here.

    It looks like you are using the pc names in the /etc/exports/ file. I think that you need to be using either a domain name or a ip address for this.


    NFS Server and Client Configuration in Ubuntu -- Ubuntu Geek

    Have a look through that. Should provide some more insight for you.
    ~~Geek Is Sexy~~
    Desktops - Ubuntu Hardy
    Server FreeBSD

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12
    Quote Originally Posted by Geeth View Post
    Last time I played with nfs was on a bsd server. I had to setup a /etc/allow and deny file.

    Could be the same thing here.

    It looks like you are using the pc names in the /etc/exports/ file. I think that you need to be using either a domain name or a ip address for this.


    NFS Server and Client Configuration in Ubuntu -- Ubuntu Geek

    Have a look through that. Should provide some more insight for you.
    Thanks for that link. I read through it, and I had to change the domain name (UTAEngineer) to an IP address (192.168.1.6). Then I had to run :
    Code:
    sudo /etc/init.d/nfs-kernel-server restart
    to restart the nfs daemon so that it could use the newly edited /etc/exports file. It works now!!!

    Thanks!

Posting Permissions

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