Announcement

Collapse
No announcement yet.

setup NFS

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

    setup NFS

    Hello,

    I am following this guide here: http://littlergirl.googlepages.com/NFSHowToKubuntu.html
    I got it working both ways.

    Only, in Sally's pc I have two additional drives I like to share.
    What are the extra steps I need to take?
    My guess is that I should add them in step 7, adding them to /etc/exports in Sally's machine.
    But before trying and messing up I thought I'd ask here.

    Thanks, Jean (almost done setting up file/webserver in ubuntu in stead of xp)
    Greetings from Groningen Netherlands

    #2
    Re: setup NFS

    Wow, that is one of the best written guides I've seen! I don't know anything about NFS networking, but I will when I finish reading that!

    Comment


      #3
      Re: setup NFS

      Hey dibl, yes the guide is nice but there are still fools like me who don't get it.

      When I try to copy a file (sudo cp) from Dave to Sally I get 'permission denied' and I have no idea why.

      cp: cannot create regular file `serverc/in/test.txt': Permission denied

      Somebody can help please?
      Greetings from Groningen Netherlands

      Comment


        #4
        Re: setup NFS

        How are you mounting the remote directories? Do you have an fstab entry, or are you mounting them manually? Either way, you need to have the options, "users" and "rw" on the mount command. For example here is my fstab entry for mounting the remote files on my other computer.

        192.168.1.11:/home/gina /mnt/Microtel nfs users,rsize=8192,wsize=8192,timeo=14,intr,atime,au to,rw,dev,suid 0 0


        See man mount and man nfs.

        If you don't specify "users" then only root can manipulate the files. The option "rw" makes the directory read and write.

        Comment


          #5
          Re: setup NFS

          Hey Detonate thanks.

          Through fstab.
          I didn't have the 'users' in there, it now reads:

          192.168.1.10:/home/jean /home/jean/serverc nfs users,rw,hard,intr 0 0

          After the change I did a sudo mount -a, but still get permission denied.

          On both machines I am 'jean'. 192.168.1.10 is the remote.

          FWIW I copied your exact fstab options but no go.
          Greetings from Groningen Netherlands

          Comment


            #6
            Re: setup NFS

            Have you done the proper setup on the remote computer to "share" the folder? Right click on the folder on the remote machine, click on Properties. Open the Share tab. Make sure the block to share with NFS is checked and the Public and Writable blocks are checked.

            Comment


              #7
              Re: setup NFS

              And let me add, when you get it working, you will find that NFS is the best way to go for networking Linux computers. I've tried all the other methods. FTP was painfully slow. Samba is a PITA. SSL works ok, and if security on your network is an issue, that's the way to go. But NFS, with the remote directories mounted at boot with fstab is painless. You can install both the server and client on all of you machines so that they can have access to each other.

              Comment


                #8
                Re: setup NFS

                The public box was not checked, checking it removed the ip 192.168.1.11 from the 'name' field, this is how it was setup according to that guide I followed.
                Writeable is checked.

                It makes no difference if I check 'public', I can read but not write.
                If I find out what it is I'll report.

                What do you have in /etc/exports on your server?

                Btw I had file sharing working when that machine had xp running, I mounted the drives with cifs through fstab and it worked pretty good yes.


                Originally posted by Detonate
                Have you done the proper setup on the remote computer to "share" the folder? Right click on the folder on the remote machine, click on Properties. Open the Share tab. Make sure the block to share with NFS is checked and the Public and Writable blocks are checked.
                Greetings from Groningen Netherlands

                Comment


                  #9
                  Re: setup NFS

                  This is my /etc/exports, not the remote machine.

                  Code:
                  /home/gramps/Pictures/ *(rw,async,all_squash)
                  /etc/cups/ *(async,all_squash)
                  /home/gramps/ (rw,no_root_squash,async)
                  The other thing you want to check is the permissions on the remote directory. Even though you have it set to be shared, you have to change the permissions to enable others to read and write to the directory. Right click on the directory, click on Properties, then Permissions, change it to allow others to View and Modify Content, and check the block to include all subfolders.

                  Comment


                    #10
                    Re: setup NFS

                    Getting closer.

                    By changing permisson on /home/jean I could copy a file!
                    But the recurse is giving me troubles, if I tell krusader, my filemanager, to apply to subdirs it encounters files which it cannot process and then it bails out, it also tries to process a share and bails out. So I have to invest this some more, but we are on the right track!
                    Thank you so much.
                    Greetings from Groningen Netherlands

                    Comment


                      #11
                      Re: setup NFS

                      That means you have files in you directory that do not belong to you. Probably belong to root. Run your file manager as root and try again. That should do it. Or, as root, find the sub directories or files and modify the permissions and ownership of those files.

                      Comment


                        #12
                        Re: setup NFS

                        I did use root mode, it complained anyway.

                        But doing chmod +rw on maps will let me write to them over the share.

                        Thanks so far, I've learned again.

                        Now on to my 2 other problems.. the mysql problem and the extra shares, but it's making progress at last. A little help can sometimes be such a blessing.

                        Btw I hope I can share /var/www from the server to this machine, not only home/maps
                        Greetings from Groningen Netherlands

                        Comment


                          #13
                          Re: setup NFS

                          In an attempt to share a ntfs formatted drive on the server I got a message (from exportfs -ar)

                          exportfs: Warning: /media/data1 does not support NFS export.

                          Does that mean an ntfs formatted drive can't be shared with nfs?

                          I use to share this drive with cifs when they were on a xp box.
                          confused...
                          Greetings from Groningen Netherlands

                          Comment


                            #14
                            Re: setup NFS

                            Originally posted by Jean
                            Does that mean an ntfs formatted drive can't be shared with nfs?

                            I use to share this drive with cifs when they were on a xp box.
                            confused...
                            Yes, NFS does not work with NTFS. Linux only.

                            Comment


                              #15
                              Re: setup NFS

                              According to this: http://www.ntfs-3g.org/support.html#nfs it can.
                              Only need to find out how.
                              Otherwise I can always reformat them to ext3.

                              Enough for today.. Thanks Detonate.
                              Greetings from Groningen Netherlands

                              Comment

                              Working...
                              X