CIFS/SMB Mount on boot

There’s tons of misinformation all over the internet on how to properly do this with OSMC.

What is the correct way to get an SMB network mount to automount on boot? I was previously using /etc/fstab to mount the share but since it ignores the “_netdev” option, I have to manually mount the share everytime it boots.

Thank you

And just as soon as I posted this, I found the correct fstab options:


Could you show/explain the whole process for setting up and auto-mounting the file share?

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):

// /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