How To Set Up a Home Network With Ubuntu, Part 3

This is the 3rd part of my Ubuntu home networking howto. In Part 1 I covered how to configure your home network with static IP addresses. Part 2 was about client and server configuration for NFS file sharing over the network. In Part 3 I’ll show how to automatically mount the shared folders at boot time. This is done by editing the file system table in /etc/fstab. Log in to one of your client computers, open a terminal, and enter the following.

sudo nano /etc/fstab

Append the following line to the end of this file and save it.

192.168.2.10:/home/username/Music /home/username/media nfs timeo=14,intr,rsize=8192,wsize=8192 0 0

This change will mount your server’s Music folder to your local media folder when you boot your client computer. This assumes, of course, that your server machine was booted prior to starting your client machine. If you boot your server after your client machines, you can force the /etc/fstab file to be reloaded by using the following command.

sudo mount -a

You may find that you have to issue this command occasionally if the network has trouble while the client computer is booting.

2 thoughts on “How To Set Up a Home Network With Ubuntu, Part 3

  1. Howard

    Hilary’s comment is true and if possible the guide should be re-written. If you do the following you will be ok.

    1. Substitute rpcbind for portmap when you see it in this guide (install it, reconfigure it where told and use the daemon start/stop)
    2. Realize the nfs-common no longer has (or needs) a daemon start/stop
    3. modify the /etc/exports file instead of Nautilus for identifying the server shared folder(s) (google /etc/exports examples NFS configuration, etc)
    4. Realize the starting nfs-kernel-server also runs exportfs

    Reply
  2. Hilary

    the issue is that since this article was written this has changed and portmap has apparently been changed with rpc so even if the users follows this exactly it doesnt work.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.