Find the answer to your Linux question:
Results 1 to 4 of 4
Hello all, i have a fc-7 machine kernel version (2.6.21-1.3194.fc7). i am able to mount the nfs share form a server. but every time when i reboot my machine. share ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Location
    Bangalore, IN
    Posts
    9

    Question Permanently Mounting The NFS Directory


    Hello all,
    i have a fc-7 machine kernel version (2.6.21-1.3194.fc7).
    i am able to mount the nfs share form a server. but every time when i reboot my machine. share will go off and again i have to mount the share..
    is there a way to Permanently mount The NFS Directory , i mean after reboot share should not go....

    Thanks
    Tanuj

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,390
    Add an appropiate line to /etc/fstab.
    This is easy, but has one downside: The nfs server *needs* to be available at booting.

    A more elegant way is to add a autofs configuration to the same effect.
    This will not only make sure, that booting succeeds, but only mounts the nfs share, if it is really needed (and unmounts it afterwards)


    But I am not sure, if autofs is available in fc7, as this is a very out-dated distribution.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Location
    Bangalore, IN
    Posts
    9
    @Irithori: Thanks
    i tried with editing /etc/fstab with the following line
    server:/var/ftp/pub /media/nfs nfs rw 0 0

    and it worked fine for me.
    can you please share some more information regarding how to do autofs configuration . i would like to try this as well

    Thanks
    tanuj

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,390
    12.3.2.*autofs Configuration
    Ive a autofs setup (although for CIFS) for various CentOS 5 machines, and it works reliably.

    Seems, you are lucky. Fedora 7 does have autofs
    http://archive.fedoraproject.org/pub...0.1-9.i386.rpm

    But still, you might want to consider an upgrade.
    You must always face the curtain with a bow.

Posting Permissions

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