Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-20-2013, 04:54 PM
|
#1
|
Member
Registered: Aug 2005
Distribution: Fedora 13, RHEL 5.3, Ubuntu 10.04, Debian Lenny
Posts: 128
Rep:
|
Skip waiting for iSCSI targets during boot if not in known network
Hello everybody,
on my Notebook I have installed Ubuntu 13.04 and configured two iSCSI-targets to mount during boot using fstab.
This works fine, as long as I am within a network-environment that is either my home-network or my companys network.
However, I am traveling quite a lot and every time I connect to a network where I need to get my VPN client running first (Hotels, Airports, etc.), the boot-process gets interrupted until the connection-timeout is being reached.
The mount-option _netdev is set, however this seems to be ignored by the bare presence of any WiFi network.
Is there a way to skip this process unless there is an actual connection with internet-access or a "known" network?
any idea is greatly appreciated!
|
|
|
10-21-2013, 03:54 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
You could remove the entries from fstab and write a script that checks for the home/company network presence, if so mount the iSCSI targets. The script can be run from rc.local (don't forget to background it).
Pseudo code:
Code:
if specific network is up
then
mount .....
mount .....
fi
Possible drawback: rc.local is run after all the other rc related stuff, iSCSI related mount points aren't available at that time.
|
|
|
10-21-2013, 10:31 AM
|
#3
|
Member
Registered: Aug 2005
Distribution: Fedora 13, RHEL 5.3, Ubuntu 10.04, Debian Lenny
Posts: 128
Original Poster
Rep:
|
Thanks.
I was hoping for a more "genuine" possibility - however, I'll probably just follow your advice 
|
|
|
All times are GMT -5. The time now is 07:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|