Announcement

Collapse
No announcement yet.

NFS Shares initally worked, after reboot don't connect anymore.

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

    NFS Shares initally worked, after reboot don't connect anymore.

    Recently I followed a tutorial I found to allow my desktop and Notebook to connect and share files via NFS.

    After following the tutorial, everything worked, and I was able to share files!

    Since then both computers have rebooted, and now neither will connect.

    Looking at the drives in Dolphin, I can see that the share on the other computer is disconnected. When I go to click on it, I get the following error -

    Code:
    An error occurred while accessing '/home/scott on 192.168.1.68', the system responded: mount: only root can mount 192.168.1.68:/home/scott on /home/scott/Notebook
    First I verified that the notebook was still at 192.168.1.68 and it is.

    Next I opened dolphin in root to see of that worked. When I click on the drive while in Dolphin (root) I get this error message..

    Code:
    An error occurred while accessing '/home/scott on 192.168.1.68', the system responded: mount.nfs: access denied by server while mounting 192.168.1.68:/home/scott
    The connectivity is good, for I can still connect to both drives via SAMBA.

    Both computers are giving the same errors.

    The tutorial I followed is located here: http://mostlylinux.wordpress.com/net.../#introduction
    Last edited by Snowhog; Nov 02, 2013, 08:54 PM.

    #2
    check your hosts allow/deny files and exports ,,,,,,,and lets see them and the fstab line

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Desktop -

      Allow -
      Code:
      rpcbind mountd nfsd statd lockd rquotad : 127.0.0.1 192.168.1.68
      Deny -
      Code:
      rpcbind mountd nfsd statd lockd rquotad : ALL
      fstab
      Code:
      192.168.1.68:/home/scott /home/scott/Notebook nfs rw,hard,intr,noexec 0 0
      Notebook is the same, with the exception of 192.168.1.99 instead of 192.168.1.68
      Last edited by ScottyK; Nov 01, 2013, 07:17 PM.

      Comment


        #4
        Whats the output of:

        sudo showmount -e <IP_OF_OTHER_COMPUTER>

        Please Read Me

        Comment


          #5
          you're probably running ito the nfsV4 vs. nfsV3 issues. exports are different and that tutorial is getting long in the tooth.

          Please Read Me

          Comment


            #6
            Notebook -

            Code:
            sudo showmount -e
            clnt_create: RPC: Port mapper failure - Authentication error

            Desktop -

            Code:
            sudo showmount -e
            clnt_create: RPC: Port mapper failure - Authentication error

            Comment


              #7
              You have to provide an IP address to 'another' PC for the command to work.
              Using Kubuntu Linux since March 23, 2007
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Placing the IP address at the end of the command generates the same error.

                It's been a long day at work, I'm probably missing the obvious.

                Comment


                  #9
                  On the laptop that I want to be able to access the other laptop, this is the fstab entry:

                  # shared
                  192.168.xx.xxx:/home/paul /home/paul/shared nfs rw,hard,intr,noexec,users 0 0
                  (my actual IP masked for this post)

                  I followed the same tutorial you cited, and it works perfectly here.
                  Using Kubuntu Linux since March 23, 2007
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    If the mounts aren't showing, you can't mount them because they aren't exported. What are the contents of /etc/exports

                    Please Read Me

                    Comment


                      #11
                      /home/scott 192.168.1.99(rw,sync,no_subtree_check)

                      Comment


                        #12
                        Hmmm, run this on both ends and try again:

                        sudo exportfs -ra

                        Please Read Me

                        Comment


                          #13
                          Originally posted by oshunluvr View Post
                          Hmmm, run this on both ends and try again:

                          sudo exportfs -ra
                          Seems to have no effect.

                          However the Samba share in /home/public suddenly showed up, and I can now transfer files using Samba

                          Comment


                            #14
                            Maybe you could try autofs with nfs v4. I have it working perfectly on Kubuntu 13.10 and 12.04 over Nas4Free and FreeNas nfs shares.

                            auto.master only needs :
                            /net -hosts

                            Then restart autofs : service autofs restart

                            Then simply : ls /net/<nfs-server-name>

                            The share names won't appear until you try to use them.

                            It got issues trying to use nfs v3 as I did before with Kubuntu 8.04 and 10.04.

                            Hope this helps...

                            Comment

                            Working...
                            X