I had trouble mounting windows share. I wanted to auto mount so that my Ubuntu 12.04 computer would connect to my windows server on my home network. I spent a lot of time in the last several days trying to get it to work.
If it helps anyone, since I have seen a few posting here with the same problem, this is how I finally got it working.
Go to this doc
and follow the instructions, in my case I am using "Mounting unprotected (guest) network folders" so I used the entry in fstab, all one line,
//servername/sharename /media/windowsshare cifs guest,uid=1000,iocharset=utf8,codepage=unicode,uni code 0 0
I changed //servername/sharename to my system which is //storage/public
This did not work until I made my servername "storage" capitals so that my fstab entry startes //SERVERNAME/sharename etc
It works all the time now