You are not logged in.

#1 2018-07-15 11:39:28

philipW
Member
Registered: 2017-03-21
Posts: 145

[SOLVED]Mounting a smb share automatically on wifi

Hello,
I have a media server with some samba shares.
I would like them to automatically mount  when i am in my home wifi network.
This is the line i put in my fstab:

//192.168.1.100/documents  /home/philip/smb-docs   cifs uid=philip,credentials=/etc/smbcredentials,iocharset=utf8,noauto,x-systemd.automoun,x-systemd.device-timeout=3,_netdev 0 0

And when i do:

sudo mount -a

It mount fine but i want my laptop to check automatically if the share is available an mount it if it is. Thats why i added the

,noauto,x-systemd.automoun,x-systemd.device-timeout=3,_netdev

But it seems like network manager only connects me to the wifi when i login/start X.
Does anyone know how to resolve this issue?
Thanks in advance.

Last edited by philipW (2018-07-15 12:38:58)

Offline

#2 2018-07-15 12:16:47

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED]Mounting a smb share automatically on wifi

You lack a "t".

Offline

#3 2018-07-15 12:38:30

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED]Mounting a smb share automatically on wifi

Thanks allot! funny how i didnt see that. the shares auto mount like i want with cable and wifi!

Offline

Board footer

Powered by FluxBB