[SOLVED] CIFS mounts not mounting during boot

If none of the more specific forums is the right place to ask

[SOLVED] CIFS mounts not mounting during boot

Postby BoredStudent » 2019-01-02 19:03

So I have NAS at home which I use for backups and some other files. I want to mount some shared folders on my PC via CIFS in fstab, but I'm running into some problems. When I boot my PC, I see some error messages as pictured below:
Image
This message repeats for the other 3 shares I mount using CIFS as well. The weirdest thing is though, when I run sudo mount -a in a terminal after boot, the shares mount just fine...

Pictured below are the lines in /etc/fstab which I use to mount the shares:
Image
As some additional info: The NAS shares via SMB using SMB2 as a minimum protocol and SMB3 as a maximum. It is also setup as a Local Master Browser.
I hope I have provided you with enough information, please tell me if you need more.
Last edited by BoredStudent on 2019-01-03 14:30, edited 1 time in total.
My PC's setup:
Image
Note: This PC also runs Microsoft Windows.
BoredStudent
 
Posts: 2
Joined: 2019-01-02 18:30
Location: The Netherlands

Re: CIFS mounts not mounting during boot

Postby pendrachken » 2019-01-02 21:41

Your init system**, whichever one you are using, is trying to mount the fstab entries before the network becomes available. There is information out there that you can search for that will help you set up the behavior as you want.


** by default SystemD on modern Debian installs. It doesn't really matter WHAT init system you use, the issue will remain unless you resolve the problem of the network not being up before the fstab network share are attempted to be mounted. The only thing that will change is HOW you go about getting the network up before the mounts.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1334
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: CIFS mounts not mounting during boot

Postby Head_on_a_Stick » 2019-01-03 14:11

Have you tried the x-systemd.automount option for the fstab lines? That should allow systemd to contol the mount ordering.
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8590
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: CIFS mounts not mounting during boot

Postby BoredStudent » 2019-01-03 14:30

Head_on_a_Stick wrote:Have you tried the x-systemd.automount option for the fstab lines? That should allow systemd to contol the mount ordering.

I tried this and it worked immediately, thank you very much!
My PC's setup:
Image
Note: This PC also runs Microsoft Windows.
BoredStudent
 
Posts: 2
Joined: 2019-01-02 18:30
Location: The Netherlands


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable