Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting with -F at boot time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Spiros
Apprentice
Apprentice


Joined: 11 Mar 2008
Posts: 189
Location: Zurich

PostPosted: Wed Oct 12, 2011 7:40 am    Post subject: Mounting with -F at boot time Reply with quote

I just discovered the -F switch of mount, which does the job on the background and does not block mounts even in case of an NFS timeout. This would help me; I would like to automatically mount at least my external partition with this options in order to speed up the boot and to avoid blocks when the external storage server is down. How could I do that? I don't see an option that I can add into fstab.
_________________
Spiros
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 236

PostPosted: Wed Oct 12, 2011 8:58 pm    Post subject: Reply with quote

The NFS man page (a copy can be found here) describes a "bg" mount option you can place in /etc/fstab.

The problem is, it sounds like that option will potentially time-out once before doing subsequent attempts in the background.

If this is really important, then you may be better off removing the /etc/fstab entry and adding your own "mount" command line to a script in the /etc/local.d/ directory. To do this, check that the "local" service is among your active bootup scripts (i.e. see if it shows up in the output of the "rc-update" command; if not, you can run "rc-update add local default"). From there, the contents of /etc/local.d/README will show you how to get started.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum