SAMBA-CIFS mount flags configuration

Mount flags configuration for not working SAMBA-CIFS shares

Posted on July 04, 2015 by @lorenzoferrara

If you can't get your shared Samba/Cifs volume working in Moode, RuneAudio or Volumio, try setting this line in the Mount flags options:

ro,soft,nosuid,uid=1000,gid=1000,sec=lanman,dir_mode=0777,file_mode=0777
ro,soft,nosuid,uid=1000,gid=1000,sec=lanman,dir_mode=0555,file_mode=0444

The following image is a screenshot from Moode, you can see that the Mount flags options at the bottom:

A good way to debug problems mounting Samba shares can be trying to do it via shell. The general command is something like:

sudo mount -t cifs //172.16.41.198/ZooeyTwo /mnt/NAS/ -o user=readonlyuser,password=readonlypass,ro,soft,nosuid,uid=1000,gid=1000,sec=lanman

The -o parameter specifies the comma separated options passed to the mount command.

For reference, this is the default value in Moode:

cache=strict,ro,dir_mode=0777,file_mode=0777