WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline soundcheck

  • Newbie
  • *
  • Posts: 46
How to setup NFS persistent mountpoints?
« on: July 10, 2009, 09:18:18 AM »
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, 09:21:09 AM by soundcheck »

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: How to setup NFS persistent mountpoints?
« Reply #1 on: July 10, 2009, 09:56:51 AM »
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, 12:27:41 PM »

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

THX a lot.