Mount NFS + smb shares during boot

On NFS Server

1. Add the client ip address to the permission list

On Client

1. Install nfs-common

apt-get install nfs-common

2. Add to /etc/fstab

SERVERIP://FOLDER/SUBFOLDER    /mnt/mountpoint  nfs flags                       0 0  /mnt/nfs         nfs auto,nolock,noatime,_netdev 0 0

//SERVERIP/SHARE               /mnt/mountpoint  cifs username=user,password=password,domain=Group1,vers=1.0,auto,_netdev 0 0
//           /mnt/smb         cifs username=john,password=12345678,domain=Group1,vers=1.0,auto,_netdev 0 0

3. Dirty workaround if shares won't get mounted after reboot

Create and edit file: /etc/network/if-up.d/fstab

mount -a

and make it executable:

sudo chmod +x /etc/network/if-up.d/fstab