View previous topic :: View next topic |
Author |
Message |
doralsoral Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 May 2004 Posts: 127
|
Posted: Sat Apr 18, 2015 9:55 pm Post subject: fstab tries to mount CIFS shares before net comes up |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
eccerr0r Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 01 Jul 2004 Posts: 9891 Location: almost Mile High in the USA
|
Posted: Sat Apr 18, 2015 10:53 pm Post subject: |
|
|
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
doralsoral Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 May 2004 Posts: 127
|
Posted: Sun Apr 19, 2015 12:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23093
|
Posted: Sun Apr 19, 2015 4:48 pm Post subject: |
|
|
For completeness, the mount option _netdev is the traditional way to achieve this on non-systemd systems. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
doralsoral Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 May 2004 Posts: 127
|
Posted: Mon Dec 30, 2019 11:23 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23093
|
Posted: Tue Dec 31, 2019 1:57 am Post subject: |
|
|
No. Please show the /etc/fstab entry that you tried to use. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|