This question already has an answer here:
I’m using Ubuntu 18.04 LTS with 3 hard drive partitions.
I installed Samba and shared a folder in the network from the second partition, worked fine but after reboot, I cannot access that folder from the network. I have to mount and share every time I reboot.
I first installed Samba and gave all the necessary permissions by following the installation steps.