Find the answer to your Linux question:
Results 1 to 5 of 5
hiya, I have never worked with NFS shares before, so im new to NFS Anyway, a share has been created for me on another PC, but i dont know the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284

    Mounting NFS shares - how do i do it?


    hiya,

    I have never worked with NFS shares before, so im new to NFS

    Anyway, a share has been created for me on another PC, but i dont know the command to "mount" it locally?

    Both machines are debian (woody).

    I have googled, but didnt find an answer

    Any ideas?

    Cheers,

    Jason

  2. #2
    Just Joined!
    Join Date
    Mar 2003
    Location
    UK
    Posts
    82
    hmm... it would be done liek this i belive....


    mount 192.168.2.2:/usr/local /mnt/nfs

  3. #3
    Just Joined!
    Join Date
    Jul 2003
    Posts
    4
    mount -t nfs nameofcomputer:/directory_on_that_machine /directory_you_should_have_already_created



    So for example, if you want to mount a directory from a machine named Google, and the directory (on Google) is called "/work-google" then you would first make a directory on your machine:

    > mkdir /stuff (or whatever you want to call it)

    Then mount it:

    > mount -t nfs google:/work-google /stuff

    That's a manuall mount. If you want to mount it automatically everytime your machine boots, you'll need to edit your /etc/fstab file.

    Following the above example, your fstab should look similar to:

    google:/work-google /stuff nfs defaults 0 0

    (Please check with the person who's allowing you to share to see what type of settings you need for the drive. "defaults" may not be correct)

    Hope that helps ya

  4. #4
    Just Joined!
    Join Date
    Oct 2006
    Posts
    1

    Wink

    hi,
    here is the link that can give you more than one way:

    http://www.redhat.com/docs/manuals/l...nfs-mount.html

  5. #5
    Just Joined!
    Join Date
    Jul 2013
    Location
    Silicon Valley
    Posts
    1
    Quote Originally Posted by jasonlambert View Post
    hiya,

    I have never worked with NFS shares before, so im new to NFS

    Anyway, a share has been created for me on another PC, but i dont know the command to "mount" it locally?

    Both machines are debian (woody).

    I have googled, but didnt find an answer

    Any ideas?

    Cheers,

    Jason
    Hi Jason,

    Your question has been answered, but here's a little extra. I am working with WinNFSd on my windows machine, which supports NFS versions 2 and 3, but not 4. My fedora normally goes for NFS version 4, which broke the code, so to speak. I did fix this and I might suggest that you may need something similar when you try to mount using NFS. The command line I used was as follows:

    mount -t nfs -o nfsvers=3 123.456.123.123:/c/stuff /mount/mydir

    You have to create a directory reference to which the mount command can attach the nfs directory tree. In my case my created directory was "/mount/mydir". The " -t nfs " parameters inform mount to attach to an NFS resource. The " -o nfsvers=3" forces the mount to use the NFS version 3 protocol. And of course, 123.456.123.123:/c/stuff is my remote NFS server and remote directory.

    Hope this is informative.

Posting Permissions

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