1. Install dependencies
sudo aptitude install cifs-utils
2. Create mountpoints
mkdir /media/mordor
3. Create a credentials file (optional)
vim /home/user_name/.smb
user = user_name password = mySecretPassword domain = myDomain
4. Edit /etc/fstab
vim /etc/fstab
//isengard/mordor /media/mordor cifs uid=0,credentials=/home/user_name/.smb,iocharset=utf8,vers=3.0,noperm 0 0
5. Manually mount the share for testing
sudo mount -a
Źródło: https://timlehr.com/auto-mount-samba-cifs-shares-via-fstab-on-linux/