WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to setup NFS persistent mountpoints?  (Read 3204 times)

Offline soundcheck

  • Newbie
  • *
  • Posts: 46
How to setup NFS persistent mountpoints?
« on: July 10, 2009, 12:18:18 PM »
Hi there.

How do you setup your mountpoints under /mnt, so that you're able to mount e.g. your NFS shares during bootup?
Do you have to make them persistent? Or do you create them somewhere before fstab tries to mount the shares ( and make this process persistent).

How are you doing this?

THX.




« Last Edit: July 10, 2009, 12:21:09 PM by soundcheck »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to setup NFS persistent mountpoints?
« Reply #1 on: July 10, 2009, 12:56:51 PM »
Pretty much here is how I do it.  Have the nfs-utils extension loaded at boot, and then use the bootlocal.sh file to do the rest.  Though there are other ways of doing this, it is how I do it.

bootlocal.sh:

mkdir /mnt/nfs
/usr/local/etc/init.d/nfs-client start
mount 192.168.0.10:/mnt/sda3 /mnt/nfs

Of course this assumes you have your nfs server set up accordingly. 

Offline soundcheck

  • Newbie
  • *
  • Posts: 46
Re: How to setup NFS persistent mountpoints?
« Reply #2 on: July 10, 2009, 03:27:41 PM »

Cool. You run the entire process at one place. That's probably the easiest and safest way .

THX a lot.