Mounting with /etc/fstab

Mental note (ok — actually a rather unnecessary duplication of already existing how-to’s):

One method to mount a NFS file system of another machine, is to add a line to /etc/fstab.

So instead of doing

me@myserver:~> umount server:/usr/local/pub
me@myserver:~> mount -t nfs server:/usr/local/pub /pub

all the time, just add the following line to your fstab

server:/usr/local/pub    /pub   nfs    rsize=8192,wsize=8192,timeo=14,intr

Leaving you in the comfy situation that the system knows what you are talking about if you just shout

me@myserver:~> mount /pub

One Response to “Mounting with /etc/fstab”

  1. This has also the advantage that it will be there on the next reboot. If you don’t want that you can add „noauto“ to the flags.

Leave a Reply

You must be logged in to post a comment.