Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cifs shares in fstab dont get mounted on boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
doralsoral
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2004
Posts: 127

PostPosted: Mon Dec 30, 2019 10:23 am    Post subject: cifs shares in fstab dont get mounted on boot Reply with quote

I have a cifs share listed in fstab. On boot it tries to mount before its connected to the network so it doesnt get mounted. How can i tell it to wait util the network starts to mount. I know ive done this in the past on other distros but i havent really needed to deal with this in a while so I am not sure where to look now.
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1407
Location: Germany

PostPosted: Mon Dec 30, 2019 10:38 am    Post subject: Reply with quote

I think this comment from NeddySeagoon may help: https://forums.gentoo.org/viewtopic-p-7899152.html#7899152

Also have a fresh look at here: https://wiki.gentoo.org/wiki/Fstab
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
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 10:56 am    Post subject: Reply with quote

Banana wrote:
I think this comment from NeddySeagoon may help: https://forums.gentoo.org/viewtopic-p-7899152.html#7899152

Also have a fresh look at here: https://wiki.gentoo.org/wiki/Fstab


That option seems to only work on nfs shares. It seems on other distros I would use the systemd automount option to do this but I am not using systemd.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54325
Location: 56N 3W

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

doralsoral,

If cifs does not provide an equivalent of the nfs bg option don't mount it in /etc/fstab.
/etc/fstab is read by localmount, which is in the boot runlevel.
Networking is started in the default runlevel.

Write a one liner to perform the mount and put it into
Code:
/etc/local.d/

See the README that is already there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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:39 am    Post subject: Reply with quote

NeddySeagoon wrote:
doralsoral,

If cifs does not provide an equivalent of the nfs bg option don't mount it in /etc/fstab.
/etc/fstab is read by localmount, which is in the boot runlevel.
Networking is started in the default runlevel.

Write a one liner to perform the mount and put it into
Code:
/etc/local.d/

See the README that is already there.


I figured it out. add _netdev to the options in fstab and then add my net interface to the default runlevel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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