Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Ubuntu - NFS

  • 11-05-2011 09:20PM
    #1
    Registered Users, Registered Users 2 Posts: 297 ✭✭


    Hi there,

    I'm trying to set up NFS between two machines and have used the following as guides

    http://maestric.com/doc/unix/ubuntu_104/nfs

    http://huuah.com/debian-nfs-server-ubuntu-nfs-client/

    However when I try to mount the folder on the client I'm getting the following error

    home@home-desktop:~$ sudo mount /media/share
    mount.nfs: rpc.statd is not running but is required for remote locking.
    mount.nfs: Either use '-o nolock' to keep locks local, or start statd.

    Any idea what I'm doing wrong?

    Thank you.


Comments

  • Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭GreenHell


    From your client do this

    1. sudo showmount -e nfsserver

    If you have successfully exported your directory on your nfs server it will be listed here.

    2. sudo mount nfsserver:/path/goes/here /path/on/client/side


  • Registered Users, Registered Users 2 Posts: 297 ✭✭markyboy


    Thanks GreenHell

    home@home-desktop:~$ sudo showmount -e nfsserver
    clnt_create: RPC: Unknown host

    The reason I'm trying to do this is my Samba shares stopped working a few weeks ago (Hard drive made some funny noises). I can SSH in the directory (see earlier thread of mine further down) but would prefer to use NFS as that will work with my XBMC setup and SSH won't.

    Mark.


  • Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭GreenHell


    You did change "nfsserver" to the name of your nfs server right :)


  • Registered Users, Registered Users 2 Posts: 297 ✭✭markyboy


    Why yes, yes I did, after you pointed it out to me :D

    home@home-desktop:~$ sudo showmount -e 192.168.1.5
    clnt_create: RPC: Port mapper failure - RPC: Timed out


  • Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭GreenHell


    :D very good. Looks like your nfs server isn't started btw

    On your nfs server..

    [redhat/centos/fedora]

    service nfs restart

    [ubuntu]

    sudo /etc/init.d/nfs-kernel-server restart

    Check /etc/export

    Your export path should be listed there..

    if not

    vi /etc/exports and add the path you are exporting with a * at the end (that is good enough for home networking imho)

    Then do this..

    exportfs -a That will export the file system. Do a showmount -e localhost on your nfs server to see if it has been exported.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 297 ✭✭markyboy


    GreenHell wrote: »

    exportfs -a That will export the file system. Do a showmount -e localhost on your nfs server to see if it has been exported.

    I edited /etc/exports and did what you suggested

    home@home-desktop:~$ showmount -e localhost
    Export list for localhost:
    /export *
    /home/home/SHARE 192.168.1.4

    As you can see it's showing an IP address which I probably manually added a few weeks ago and can't for the life of me remember how I did it.

    Mark.


  • Registered Users, Registered Users 2 Posts: 297 ✭✭markyboy


    Remembered! Installed Webmin and used that to specify the IP address.


Advertisement