Ubuntu – fstab won’t mount SMB/CIFS share in Ubuntu 14.04 (after upgrade from 12.04 LTS)

14.04cifssmbupgrade

I have a NAS network file server which under Ubuntu 12.04LTS I used to automatically mount using the following entry in my fstab file:

//nas-A0-B9-AF/public /opt/Z cifs credentials=/home/user/.smbcredentials,uid=1000,iocharset=utf8 0 0

I upgraded to 14.04 (big mistake) and the share does not mount! Nothing has changed on the server side.
Although I can manually mount the partition by the following command, I no longer have read write access

sudo mount  192.168.1.103:/c/public /opt/Z

I hope someone can help me; this is causing me a great deal of stress and lot of wasted time.

Just one thing: During the upgrade process I opted for my samba configuration to be left as it was under 12.04LTS.

Best Answer

Through an insane number of trial and error experiments and scouring different discussion fora (not forums, fora) I found the following works

//192.168.1.103/public /opt/Z cifs username=,password=,_netdev,uid=1000,iocharset=utf8,sec=ntlm 0 0

I have no idea what sec=ntlm means, but it appears to solve my problem. Could someone please do a post-mortem on this for me? (Neon_overload: Thank you for trying to help anyway.)

Related Question