View previous topic :: View next topic |
Author |
Message |
doralsoral Tux's lil' helper
Joined: 12 May 2004 Posts: 127
|
Posted: Mon Dec 30, 2019 10:23 am Post subject: cifs shares in fstab dont get mounted on boot |
|
|
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 |
|
|
Banana Veteran
Joined: 21 May 2004 Posts: 1420 Location: Germany
|
|
Back to top |
|
|
doralsoral Tux's lil' helper
Joined: 12 May 2004 Posts: 127
|
Posted: Mon Dec 30, 2019 10:56 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54409 Location: 56N 3W
|
Posted: Mon Dec 30, 2019 11:23 am Post subject: |
|
|
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
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 |
|
|
doralsoral Tux's lil' helper
Joined: 12 May 2004 Posts: 127
|
Posted: Mon Dec 30, 2019 11:39 am Post subject: |
|
|
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
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 |
|
|
|