Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fstab tries to mount CIFS shares before net comes up
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: 127

PostPosted: Sat Apr 18, 2015 9:55 pm    Post subject: fstab tries to mount CIFS shares before net comes up 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 Mon Dec 30, 2019 11:29 am; edited 2 times in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7483
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: 127

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: 15436

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
doralsoral
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2004
Posts: 127

PostPosted: Mon Dec 30, 2019 11:23 am    Post subject: Reply with quote

Hu wrote:
For completeness, the mount option _netdev is the traditional way to achieve this on non-systemd systems.


I just tried this and it still did not work. Do i still need to edit /etc/conf.d/netmount?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15436

PostPosted: Tue Dec 31, 2019 1:57 am    Post subject: Reply with quote

No. Please show the /etc/fstab entry that you tried to use.
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