Find the answer to your Linux question:
Results 1 to 4 of 4
I have an nfs at 192.168.1.10:/home/vm1/Desktop/nfs and will like to mount locally to /home/vm1/Desktop/nfs-mount using automounter...need help doing do What i did $cat /etc/auto.master Code: /home/vm1/Desktop /etc/auto.nfs $cat /etc/auto.nfs Code: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2013
    Posts
    9

    How to mount nfs using automounter(autofs)


    I have an nfs at 192.168.1.10:/home/vm1/Desktop/nfs and will like to mount locally to /home/vm1/Desktop/nfs-mount using automounter...need help doing do

    What i did


    $cat /etc/auto.master
    Code:
    /home/vm1/Desktop    /etc/auto.nfs
    $cat /etc/auto.nfs
    Code:
    nfs-bind     -fstype=nfs    192.168.1.34:/home/vm1/Desktop/nfs
    And yes autofs is running and is reloaded

    Code:
    [root@vm1 ~]# service autofs status
    automount (pid  3534) is running...
    [root@vm1 ~]# service autofs reload
    Reloading maps
    Is that the correct way to do that? If yes then why is it that its not working...nothing got mounted..nothing

  2. #2
    Just Joined!
    Join Date
    Jan 2011
    Location
    Hyderabad, India
    Posts
    24
    Try using manual mounting on the client side i.e.,

    mount 192.168.1.10:/home/vm1/Desktop/nfs /home/vm1/Desktop/nfs-mount

  3. #3
    Just Joined!
    Join Date
    Mar 2013
    Posts
    7
    see man 5 autofs ... manual file
    then through that configure /etc/auto.misc file
    In this file enter
    * 192.168.1.10:/path.../&
    then startt the service
    mount ip:/path /path- give the path of directory to be shared
    if again getting the problem then check the permission of file.......

  4. #4
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    218
    Not sure if it is still needed but back in the day, the /etc/exports file needed to show which directories were to be made available to other boxes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •