I am trying to automatically mount a CIFS share on a Synology NAS during boot time. I am on a 14.04 LTS Workstation.
Everything works fine when I manually mount the share using the fstab
entry, however, I have to repeat this step every time I am logged in.
I installed the cifs-utils
and amended the fstab
as follows:
//192.168.0.xxx/share /Volumes/share cifs iocharset=utf8,credentials=/var/xxx/.smb 0 0
.smb contains the username= and passwd= settings, different locations were tried.
The entry seems to work as I can either use mount -a
or mount /Volumes/share
to successfully mount the share.
Any ideas, why the automount during boot fails? So far I've tried various solutions including the _netdev option, which does however seem to break the entry.
TIA for your answers.
Best Answer
thanks zhongfu, this was the path to the solution.
I had to change the arch-script to this to work:
location of the script:
Owner: root, mode 755
Now it works like a charm :-)
BTW: it could be related to my system booting off an SSD, the network actually is started after the login prompt is displayed
thanks again :-)