View previous topic :: View next topic |
Author |
Message |
Spiros Apprentice
Joined: 11 Mar 2008 Posts: 189 Location: Zurich
|
Posted: Wed Oct 12, 2011 7:40 am Post subject: Mounting with -F at boot time |
|
|
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 |
|
|
causality Apprentice
Joined: 03 Jun 2006 Posts: 236
|
Posted: Wed Oct 12, 2011 8:58 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|