Announcement

Collapse
No announcement yet.

mount.nfs: access denied by server while mounting

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mount.nfs: access denied by server while mounting

    A couple of months ago, I setup NFS using the instructions here: https://help.ubuntu.com/community/SettingUpNFSHowTo
    I did not set up any automounting, I've just been manually mounting. 2 days ago, it worked fine. I went to bed, and while I was sleeping there was a power outage. I turned on both computers when I woke up, and now I get this:

    Code:
    will@keta:~$ sudo mount 192.168.1.100:/home/cori/Music /home/will/remoteMusic
    [sudo] password for will:
    mount.nfs: access denied by server while mounting 192.168.1.100:/home/cori/Music
    Since I didn't change anything, I have no idea why it stopped working. I'd really appreciate any help, as it's very quiet without my music!
    Last edited by Snowhog; Nov 02, 2013, 11:47 PM.

    #2
    Re: mount.nfs: access denied by server while mounting

    be sure the server is running the nfs-kernel-server
    [code=run in konsole/terminal]sudo /etc/init.d/nfs-kernel-server start[/code] it will either start the service or it will tell you its already running (if running try /etc/init.d/nfs-kernel-server restart)

    good luck.
    Mark Your Solved Issues [SOLVED]
    (top of thread: thread tools)

    Comment


      #3
      Re: mount.nfs: access denied by server while mounting

      It was already running, I restarted it, still get the same error message.

      Comment


        #4
        Re: mount.nfs: access denied by server while mounting

        best i could tell you is to check your servers exports file be sure that you either allow access to everybody , or at very least the client your trying to connect., also check your portmap config.. looks like something got messed up in a conf file. check it all over good(go back through the same steps). be sure its correct.. then try again , my nfs sever has been on for over a year w/ no complaints, (started as a 8.04 machine now its 9.04), once it was set up it worked... (much as yours did for those 2 weeks). maybe your just missing a service running. also check on the client that its using the proper method of login to your nfs.
        Mark Your Solved Issues [SOLVED]
        (top of thread: thread tools)

        Comment


          #5
          Re: mount.nfs: access denied by server while mounting

          server's /etc/exports:

          Code:
          /home 192.168.0.0/192.168.1.149(rw,sync,no_subtree_check)
          /usr/local 192.168.0.0/192.168.1.149(rw,sync,no_subtree_check)
          client's /etc/hosts.allow:
          Code:
          portmap : 192.168.1.100
          clients /etc/hosts.deny:
          Code:
          portmap : ALL
          All the same as it was before, nothing's been changed, but I still get access denied.

          Comment


            #6
            Re: mount.nfs: access denied by server while mounting

            Incidentally, I just checked and the UIDs are the same for both client and server

            Comment


              #7
              Re: mount.nfs: access denied by server while mounting

              bump

              Comment


                #8
                Re: mount.nfs: access denied by server while mounting

                have you made any progress on this ?
                Mark Your Solved Issues [SOLVED]
                (top of thread: thread tools)

                Comment


                  #9
                  Re: mount.nfs: access denied by server while mounting

                  My exports look a little differently than yours. I export them to all machines on my network as follows:

                  Code:
                  /music 192.168.1.0/24(rw,async)
                  I'm not sure if the way you specified works?

                  Comment


                    #10
                    Re: mount.nfs: access denied by server while mounting

                    the way above shares only to one client, you can share more by adding the ip w/ options after or doing a range such as your music share appears.
                    Mark Your Solved Issues [SOLVED]
                    (top of thread: thread tools)

                    Comment


                      #11
                      Re: mount.nfs: access denied by server while mounting

                      Originally posted by sithlord48
                      have you made any progress on this ?
                      No, none at all.

                      Comment


                        #12
                        Re: mount.nfs: access denied by server while mounting

                        have you tried on the server as root entering the command exportfs -a

                        then try to connect

                        Just curious since you had a power failure just as another try. If it fails check the syslog and dmesg for messages

                        Comment


                          #13
                          Re: mount.nfs: access denied by server while mounting

                          exportfs -a didn't work.

                          Where can I find the logs you mentioned?

                          Comment


                            #14
                            Re: mount.nfs: access denied by server while mounting

                            Here's my notes on how to make NFS work, including the original links I used to get it working. May want to take a look at these:

                            Code:
                            Server
                            sudo vi /etc/exports
                            sudo exportfs -ra
                            showmount -e
                            if updated portmap
                            	sudo /etc/init.d/portmap restart
                            	sudo /etc/init.d/nfs-kernel-server restart
                            http://ubuntuforums.org/showthread.php?t=249889
                            https://help.ubuntu.com/community/SettingUpNFSHowTo

                            Comment


                              #15
                              Re: mount.nfs: access denied by server while mounting

                              in /var/log/ is the syslog

                              you can type dmesg at the command prompt.

                              Comment

                              Working...
                              X