{"revision": {"id": "f3b66f81-2f95-11f1-98d9-e86a64d24d78", "node_id": "f3b58cf8-2f95-11f1-a0c0-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "How to configure autofs to mount an NFS filesystem\r\n========================================================\r\n\r\nInstall the needed packages:\r\n\r\n.. code-block:: bash\r\n\r\n sudo apt-get install autofs nfs-client:\r\n\r\nEnable auto-mount to search network\r\n\r\n.. code-block:: bash\r\n\r\n sudo vim /etc/auto.master\r\n\r\nUn-comment the */net* line:\r\n\r\n.. code-block:: bash\r\n\r\n #/net    -hosts\r\n /net    -hosts\r\n\r\nRestart autofs:\r\n\r\n.. code-block:: bash\r\n\r\n sudo service autofs restart\r\n\r\nTest:\r\n\r\n.. code-block:: bash\r\n\r\n cd /net/[nfs server hostname]\r\n cd /net/guile.foxhop.net\r\n\r\nSuccess!\r\n\r\nNow I would suggest creating a link in your home directory.\r\n\r\nThis is how I made the link:\r\n\r\n.. code-block:: bash\r\n\r\n ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror\r\n\r\ntemporary NFS mount\r\n========================\r\n\r\n::\r\n # as root\r\n apt-get install nfs-common\r\n mkdir /mnt/temp-mount/\r\n mount -o soft,intr,rsize=8192,wsize=8192 server:/data/NbClient /mnt/temp-mount/\r\n\r\n # when finished, clean up mount\r\n umount /mnt/temp-mount/\r\n\r\n ", "source_format": "rst", "revision_number": 4, "created": 1376057070000}}