Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Ubuntu - NFS

  • 11-05-2011 8: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