Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-27-2017, 01:38 PM   #1
steve francis
LQ Newbie
Registered: Apr 2010
Distribution: Linux Mint 17
Posts: 18

Rep: Reputation: 0
Problem with booting when network drive NOT connected

I have a laptop running Linux and Windows in a dual boot configuration.

I have configured the Linux boot up to automatically mount a network drive (nfs) on start up by adding a line to the /etc/fstab/ file. All works well.

However, when I take the laptop to another location (i.e. where the network drive is not physically connected), it takes an age to boot up. Eventually it does, but I have to wait over a minute. (Presumably it's spending this time looking for the network drive before giving up.)

Am I stuck with this? Ideally, at the boot menu, I would like options that say
1. Linux (ignore network drives at start up)
2. Linux
3. Windows

At the moment, the boot menu only gives me options 2 and 3 to choose from.
Old 01-27-2017, 01:54 PM   #2
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142

The "menu" you're referring to is probably the boot menu, right?

If yes, then in that menu you'll be able to configure only stuff related to the kernel and its modules.
The "mount" of nfs happens only later, once the rootfs has been mounted and the options of /etc/fstab have been read and are being executed.
Therefore, most probably you cannot fix your problem by creating an additional menu-entry or changing how the existing ones work.

To cut it short you might be able to fix your problem by specifying in /etc/fstab some additional options for your nfs-mount. Basically what you want is that it shall not "block" if there are "problems" mounting the remote share.
The options that might be relevant for your are e.g. "bg" and "soft".
More informations e.g. in this thread.

Fyi, if at a certain point you'll have to manage more remote "stuff", then you might want to have a look at "glusterfs" - it has e.g. great non-blocking management of remote shares that (for any reason) keep on get offline and then back online.

Old 01-27-2017, 02:10 PM   #3
Registered: Aug 2002
Posts: 25,839

Rep: Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972Reputation: 5972
Other options are to not mount the network drive i.e. use noauto,users so it can be manually mounted as desired.

Use autofs or auto.systemd to only mount the network drive when you access its mount point. After a timeout period it is automatically unmounted.
Old 01-27-2017, 07:32 PM   #4
steve francis
LQ Newbie
Registered: Apr 2010
Distribution: Linux Mint 17
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for your suggestions.

The nobootwait option in /etc/fstab didn't work for me. I shall experiment with the other solutions that you have proposed
Old 01-27-2017, 10:06 PM   #5
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think the noauto option works. I get the same problem with USB drives in fstab.
Old 01-28-2017, 11:24 AM   #6
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Originally Posted by AwesomeMachine View Post
I think the noauto option works. I get the same problem with USB drives in fstab.
I can confirm that the solution mentioned by both michaelk and AwesomeMachine is what you're looking for : the noauto option in fstab. I solved the exact same problem you had 5 years ago that way and I still use that option for network shares in my fstab on laptops that are sometimes out of the house. The only thing you must remember is that the shares will be unmounted at boot, even when you are connected to your network, until you access them. I prefer this in any case, personally.

Cheers :-)

Last edited by Rickkkk; 01-28-2017 at 11:33 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
network manager shows connected to wifi but ifconfig show connected to ethernet mia_tech Linux - General 10 12-16-2015 10:23 AM
[SOLVED] Mounting a drive that isn't yet connected on the network veeruk101 Linux - Newbie 2 07-16-2011 01:16 PM
[SOLVED] How can I find the IP address of connected network drive? giddensg Linux - Networking 3 04-01-2011 12:43 AM
booting problem with adaptec 3805 raid connected m_kane Linux - Server 1 11-18-2010 08:48 AM
Mounting a windows drive on a Linux machine (connected via an ethernet network) eddydw Linux - Networking 13 01-03-2009 03:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration