fstab settings for "not always there" share

Soldato
Joined
14 Mar 2011
Posts
5,439
Hey all,

I'm relatively experienced as a linux user but not had to do a lot of admin stuff before, and I'm trying to work out what I would need to put in my /etc/fstab in order to make it so an NFS share I have on my Microserver will always be mounted to a particular location...

However, I want it to be in such a way that if for any reason I switch on my laptop and the NFS share is unreachable (network trouble, server not on, etc etc) it won't cause the system to hang on startup and it'll just not be accessible at the mount point... but then any time I try to access it there it would try to connect again

I think this is called a "sloppy" mount (hew hew hew) but what exactly do I have to put in fstab for that?
 
That sounds right to me - I'll have a read on automount/autofs and give it a shot later

Update (for the benefit of anyone finding this thread through search etc):

Automount was absolutely the right call, thanks again :)

I just installed automount, then had to add a file at /etc/auto.nfs and point my /etc/auto.master file at it, providing a suitable root for the mount... then inside the file I created entries for each of the shares I wanted to be mountable, i.e.

share1 host:/path/to/share1
share2 host:/path/to/share2

Restarted the service and all works as it should
 
Last edited:
Back
Top Bottom