Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] automounting freenas samba share in /etc/fstab fails (Read 673 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] automounting freenas samba share in /etc/fstab fails

Hello there,

I have a problem with s6 that is i cannot automount the samba shares of my freenas box on system startup.
The line in /etc/fstab is:
Code: [Select]
//freenas.box/multimedia        /mnt/freenas/multimedia         cifs    _netdev,rw,credentials=/etc/samba/credentials/mycreds,uid=myuser,gid=users,auto,nofail     0 0

when I boot up the system, the share is not mounted. However a
Code: [Select]
sudo mount -a
fixes that.
I guess this is a dependency issue in s6 where the mount-net oneshot fires before ethernet is connected.
How could I setup s6 such that this would work?

with Best Regards

Re: automounting freenas samba share in /etc/fstab fails

Reply #1
You should remove mount-net from the default bundle if it is still there. Instead, add mount-net to the "network" bundle and it should work correctly. The only reason this is not the default in s6-scripts is because the s6-rc-update command could fail if you upgrade from an old version of s6-scripts. The plan is for this to be the default when new stable isos are released.

 

Re: automounting freenas samba share in /etc/fstab fails

Reply #2
That fixed it, thanks