CIFS/SMB Mount on boot

Sorry this is late but for anyone still wondering. Here’s how I created a CIFS automount folder:

mkdir /home/osmc/cifs

sudo vi /etc/fstab

add the following line (modify with your options):

//1.2.3.4/sharename /home/osmc/cifs/ cifs nobrl,uid=xxxx,sec=ntlmv2,user=xxxx,pass=xxxx,noauto,x-systemd.automount 0 0

sudo mount /home/osmc/cifs

1 Like