There are hundreds of entries for this - and as far as I can tell I am doing it right.
But it is not working...
I run a latest Raspbian (Debian Wheezy) Distribution on a Raspberry Pi. I have configured a fstab entry for a Samba share on my NAS
//medienzimmer/Qmultimedia/Musik /mnt/Musik cifs username=XXX,password=XXX,iocharset=utf8,file_mode=0777,dir_mode=0777,auto 0 0
I can easily to "sudo mount -a" and the share gets mounted. But It will never happen persistent after the system boots.
The Raspberry Pi is connected via WLAN to the network. I have cifs-utils installed. Any clues what I am missing here (must be something basic ;)
Edit:
This seems to be a prevailing Debian Bug/Regression. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643651
My fix was using a simple init script:
sudo touch /etc/network/if-up.d/mountnas && chmod u+x /etc/network/if-up.d/mountnas
Content:
#!/bin/bash
mount /mnt/Musik