|
|
| ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror | | ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror |
| | | |
| t | | t | temporary NFS mount |
| | | ======================== |
| | | |
| | | :: |
| | | # as root |
| | | apt-get install nfs-common |
| | | mkdir /mnt/temp-mount/ |
| | | mount -o soft,intr,rsize=8192,wsize=8192 server:/data/NbClient /mnt/temp-mount/ |
| | | |
| | | # when finished, clean up mount |
| | | umount /mnt/temp-mount/ |
| | | |
| | | |
|
|
| Install the needed packages: | | Install the needed packages: |
| | | |
| n | ..code-block:: bash | n | .. code-block:: bash |
| | | |
| sudo apt-get install autofs nfs-client: | | sudo apt-get install autofs nfs-client: |
| Enable auto-mount to search network | | Enable auto-mount to search network |
| | | |
| n | ..code-block:: bash | n | .. code-block:: bash |
| | | |
| sudo vim /etc/auto.master | | sudo vim /etc/auto.master |
| Un-comment the */net* line: | | Un-comment the */net* line: |
| | | |
| n | ..code-block:: bash | n | .. code-block:: bash |
| | | |
| #/net -hosts | | #/net -hosts |
| Restart autofs: | | Restart autofs: |
| | | |
| n | ..code-block:: bash | n | .. code-block:: bash |
| | | |
| sudo service autofs restart | | sudo service autofs restart |
| Test: | | Test: |
| | | |
| n | ..code-block:: bash | n | .. code-block:: bash |
| | | |
| cd /net/[nfs server hostname] | | cd /net/[nfs server hostname] |
| This is how I made the link: | | This is how I made the link: |
| | | |
| t | ..code-block:: bash | t | .. code-block:: bash |
| | | |
| ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror | | ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror |
|
|
| ======================================================== | | ======================================================== |
| | | |
| n | Install the needed packages:: | n | Install the needed packages: |
| | | |
| n | sudo apt-get install autofs nfs-client | n | ..code-block:: bash |
| | | |
| n | | n | sudo apt-get install autofs nfs-client: |
| | | |
| Enable auto-mount to search network:: | | Enable auto-mount to search network |
| | | |
| | | ..code-block:: bash |
| | | |
| sudo vim /etc/auto.master | | sudo vim /etc/auto.master |
| | | |
| n | Un-comment the */net* line:: | n | Un-comment the */net* line: |
| | | |
| | | ..code-block:: bash |
| | | |
| #/net -hosts | | #/net -hosts |
| /net -hosts | | /net -hosts |
| | | |
| n | Restart autofs:: | n | Restart autofs: |
| | | |
| | | ..code-block:: bash |
| | | |
| sudo service autofs restart | | sudo service autofs restart |
| | | |
| n | Test:: | n | Test: |
| | | |
| | | ..code-block:: bash |
| | | |
| cd /net/[nfs server hostname] | | cd /net/[nfs server hostname] |
| Now I would suggest creating a link in your home directory. | | Now I would suggest creating a link in your home directory. |
| | | |
| t | This is how I made the link:: | t | This is how I made the link: |
| | | |
| | | ..code-block:: bash |
| | | |
| ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror | | ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror |
|
|
| t | | t | How to configure autofs to mount an NFS filesystem |
| | | ======================================================== |
| | | |
| | | Install the needed packages:: |
| | | |
| | | sudo apt-get install autofs nfs-client |
| | | |
| | | Enable auto-mount to search network:: |
| | | |
| | | sudo vim /etc/auto.master |
| | | |
| | | Un-comment the */net* line:: |
| | | |
| | | #/net -hosts |
| | | /net -hosts |
| | | |
| | | Restart autofs:: |
| | | |
| | | sudo service autofs restart |
| | | |
| | | Test:: |
| | | |
| | | cd /net/[nfs server hostname] |
| | | cd /net/guile.foxhop.net |
| | | |
| | | Success! |
| | | |
| | | Now I would suggest creating a link in your home directory. |
| | | |
| | | This is how I made the link:: |
| | | |
| | | ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror |
| | | |
| | | |