This has been tested on Jessie with the PIXEL Desktop. I haven’t tested it in previous versions. Substitute the IP address in fstab and the share name, as appropriate!
# Make a directory in /mnt sudo mkdir /mnt/DataDisk # Edit fstab: sudo nano /etc/fstab # Add a line with a similar format as below //192.168.178.240/DataDisk /mnt/DataDisk cifs guest,iocharset=utf8,_netdev,x-systemd.automount 0 0 # Reboot and check that things mount OK after a reboot sudo shutdown -r now