View Full Version : [ubuntu] NFS Network Mount - Connection Refused

April 27th, 2008, 11:14 PM
Host Computer with files located at "/share/Musik" on ip

I am trying to add this to fstab so it will be mounted on boot to /share/Musik (it's the same structure). I have added this line to fstab: /share/Musik nfs defaults 0 0

When I try to sudo mount -a, I get this error.

mount.nfs: mount to NFS server '' failed: System Error: Connection refused

Any ideas on how to fix this?


April 28th, 2008, 01:22 AM
What's in the /etc/exports file on and what's the IP address of the client machine?

April 28th, 2008, 01:42 AM
My client machine is There is nothing written in /etc/exports or /etc/exportfs. Should there be?

April 28th, 2008, 01:53 AM
My client machine is There is nothing written in /etc/exports or /etc/exportfs. Should there be?

On the server ( you should install...

sudo aptitude install nfs-kernel-server nfs-common portmap

The etc/exports file should contain the following line if you want just one client to have access to the share...


OR if you want all clients to have access to the share...


Then restart the server with...

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

On the client ( you should be able to mount the share with...

sudo mount /share/Musik

Edit: Instead of using IP addresses you can use host names. If the server host name is server1 and the client host name is client1 then you should be able to use server1.local and client1.local instead of IP addresses.

April 28th, 2008, 02:40 AM
Thanks for the help. I got it shared and now I'm listening to music on the client pc.

April 28th, 2008, 02:52 AM
That's great :)

Just remember the client has to be connected to your network before you can start the server. If you connect the client afterwards, you'll have to restart the server.