Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fstab tries to mount CIFS shares before net comes up[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
doralsoral
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2004
Posts: 118

PostPosted: Sat Apr 18, 2015 9:55 pm    Post subject: fstab tries to mount CIFS shares before net comes up[SOLVED] Reply with quote

I have a cifs share listed in fstab that should be mounted on boot. However it looks like it tries to mount it before my nic comes up so it never gets mounted. I am using systemd and i havent been able to find much about how to tell it to wait until the network comes up before mounting it that is specific to gentoo. is this possible?

Last edited by doralsoral on Sun Apr 19, 2015 12:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7241
Location: almost Mile High in the USA

PostPosted: Sat Apr 18, 2015 10:53 pm    Post subject: Reply with quote

Found something like this:

# systemctl enable systemd-networkd-wait-online.service

This supposedly serializes mounting after network is brought up...

But from https://flexion.org/posts/2014-07-nfs-and-cifs-mounts-with-systemd.html,

It looks like you can tag you fstab with options x-systemd.automount,_netdev so that systemd won't mount until net is up and accessed...

See if this works... this looks pretty interesting if it works, then systemd can parallelize non-network mounts and serialize network-required mounts...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
doralsoral
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2004
Posts: 118

PostPosted: Sun Apr 19, 2015 12:53 pm    Post subject: Reply with quote

adding x-systemd,automount seems to work, I remember having to do this in archlinux now but it didnt turn up in my search. Thanks!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14185

PostPosted: Sun Apr 19, 2015 4:48 pm    Post subject: Reply with quote

For completeness, the mount option _netdev is the traditional way to achieve this on non-systemd systems.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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