Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Windows share not mounting at boot

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Mafamaticks
Posts: 3
Joined: 2017-11-26 13:04

Windows share not mounting at boot

#1 Post by Mafamaticks »

I'm generally new to Linux.

I'm running Debian 9.2 with LXDE inside of a Windows Hyper-v host
My /etc/fstab entry looks like the following:

Code: Select all

//servername/sharename  /media/windowsshare  cifs  username=username,password=password,uid=1000,gid=1000      0     0
When I run mount -a it mounts properly and I'm able to read and write to it.

When I restart, it fails to mount at boot and gives me a quick flash of check systemctl.

I'm thinking it's trying to mount too early but I'm not sure.

Any ideas?

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: Windows share not mounting at boot

#2 Post by 4D696B65 »

Mafamaticks wrote:Any ideas?
yes
Mafamaticks wrote:check systemctl.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Windows share not mounting at boot

#3 Post by p.H »

You may try to add _netdev to the option list in fstab.

From man mount :
_netdev
The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).

Mafamaticks
Posts: 3
Joined: 2017-11-26 13:04

Re: Windows share not mounting at boot

#4 Post by Mafamaticks »

4D696B65 wrote:
Mafamaticks wrote:Any ideas?
yes
Mafamaticks wrote:check systemctl.

Okay. How? What do I look for? When should I do it?

I'm new to Linux so would you mind going in depth?

Mafamaticks
Posts: 3
Joined: 2017-11-26 13:04

Re: Windows share not mounting at boot

#5 Post by Mafamaticks »

p.H wrote:You may try to add _netdev to the option list in fstab.

From man mount :
_netdev
The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).
I'm googling it now. Am I supposed to add that to the .conf file?

edit.

Looks like the line should read

Code: Select all

//servername/sharename  /media/windowsshare  cifs  _netdev,username=username,password=password,uid=1000,gid=1000      0     0

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Windows share not mounting at boot

#6 Post by p.H »

Guess so, but I have never used it. Does it work ?
Which .conf file were you talking about ?

Post Reply