ubuntu-auto-mount-nfs-using-autofs

JSON

rev 4  |  foxhop  |  1376057070000  |  JSON

rev 3
rev 4
44 ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror44 ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror
4545
tt46temporary NFS mount
47========================
48 
49::
50 # as root
51 apt-get install nfs-common
52 mkdir /mnt/temp-mount/
53 mount -o soft,intr,rsize=8192,wsize=8192 server:/data/NbClient /mnt/temp-mount/
54 
55 # when finished, clean up mount
56 umount /mnt/temp-mount/
57 
46 58 
rev 3  |  foxhop  |  1342302498000  |  JSON

rev 2
rev 3
4Install the needed packages:4Install the needed packages:
55
n6..code-block:: bashn6.. code-block:: bash
77
8 sudo apt-get install autofs nfs-client:8 sudo apt-get install autofs nfs-client:
10Enable auto-mount to search network10Enable auto-mount to search network
1111
n12..code-block:: bashn12.. code-block:: bash
1313
14 sudo vim /etc/auto.master14 sudo vim /etc/auto.master
16Un-comment the */net* line:16Un-comment the */net* line:
1717
n18..code-block:: bashn18.. code-block:: bash
1919
20 #/net    -hosts20 #/net    -hosts
23Restart autofs:23Restart autofs:
2424
n25..code-block:: bashn25.. code-block:: bash
2626
27 sudo service autofs restart27 sudo service autofs restart
29Test:29Test:
3030
n31..code-block:: bashn31.. code-block:: bash
3232
33 cd /net/[nfs server hostname]33 cd /net/[nfs server hostname]
40This is how I made the link:40This is how I made the link:
4141
t42..code-block:: basht42.. code-block:: bash
4343
44 ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror44 ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror
rev 2  |  foxhop  |  1342302458000  |  JSON

rev 1
rev 2
2========================================================2========================================================
33
n4Install the needed packages::n4Install the needed packages:
55
n6 sudo apt-get install autofs nfs-clientn6..code-block:: bash
77
nn8 sudo apt-get install autofs nfs-client:
9 
8Enable auto-mount to search network::10Enable auto-mount to search network
11 
12..code-block:: bash
913
10 sudo vim /etc/auto.master14 sudo vim /etc/auto.master
1115
n12Un-comment the */net* line::n16Un-comment the */net* line:
17 
18..code-block:: bash
1319
14 #/net    -hosts20 #/net    -hosts
15 /net    -hosts21 /net    -hosts
1622
n17Restart autofs::n23Restart autofs:
24 
25..code-block:: bash
1826
19 sudo service autofs restart27 sudo service autofs restart
2028
n21Test::n29Test:
30 
31..code-block:: bash
2232
23 cd /net/[nfs server hostname]33 cd /net/[nfs server hostname]
28Now I would suggest creating a link in your home directory.38Now I would suggest creating a link in your home directory.
2939
t30This is how I made the link::t40This is how I made the link:
41 
42..code-block:: bash
3143
32 ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror44 ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror
rev 1  |  foxhop  |  1342302362000  |  JSON

empty
rev 1
tt1How to configure autofs to mount an NFS filesystem
2========================================================
3 
4Install the needed packages::
5 
6 sudo apt-get install autofs nfs-client
7 
8Enable auto-mount to search network::
9 
10 sudo vim /etc/auto.master
11 
12Un-comment the */net* line::
13 
14 #/net    -hosts
15 /net    -hosts
16 
17Restart autofs::
18 
19 sudo service autofs restart
20 
21Test::
22 
23 cd /net/[nfs server hostname]
24 cd /net/guile.foxhop.net
25 
26Success!
27 
28Now I would suggest creating a link in your home directory.
29 
30This is how I made the link::
31 
32 ln -s /net/guile.foxhop.net/mnt/mirror /home/fox/mirror
33 
34