LXC SMB share doesn't automount

unf0rg0tt3n

Well-Known Member
Sep 28, 2016
42
0
46
32
Netherlands
Hi All,

I can't figure out how to get my SMB share automount with the fstab inside of LXC.
I have several LXC running with automount shares, but I can't get one specific LXC (new) to automount.
Tried:
/share /folder cifs _netdev,x-systemd.automount,credentials=/root/.creds,uid=www-data,gid=www-data,iocharset=utf8 0 0

Also tried:
To test the automount, unmount your share if it's currently mounted:
> $ sudo umount /mnt/storage

And then restart the remote-fs systemd unit:
> $ sudo systemctl daemon-reload
> $ sudo systemctl restart remote-fs.target

But it simply wont work.
When I punch in mount -a everything works fine. Anyone a idea?
Because the whole point of /etc/fstab is the automatic mount at boot right?

Thanks,
Dennis